{"version":3,"sources":["../node_modules/react/jsx-runtime.js","../node_modules/react/index.js","../node_modules/node-forge/lib/forge.js","../node_modules/safe-buffer/index.js","../node_modules/inherits/inherits_browser.js","../node_modules/node-forge/lib/util.js","../node_modules/buffer/index.js","../../modules/createNameContext.js","../../modules/HistoryContext.js","../../modules/RouterContext.js","../../modules/Router.js","../../modules/MemoryRouter.js","../../modules/Lifecycle.js","../../modules/matchPath.js","../../modules/Route.js","../../modules/StaticRouter.js","../../modules/Switch.js","../../modules/withRouter.js","../../modules/hooks.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/webpack/buildin/global.js","../node_modules/process/browser.js","../node_modules/google-spreadsheet/node_modules/axios/lib/utils.js","../node_modules/tiny-invariant/dist/tiny-invariant.esm.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/minimalistic-assert/index.js","../node_modules/elliptic/lib/elliptic/utils.js","../node_modules/resolve-pathname/esm/resolve-pathname.js","../node_modules/value-equal/esm/value-equal.js","../node_modules/history/esm/history.js","../node_modules/node-forge/lib/random.js","../node_modules/hash.js/lib/hash/utils.js","../node_modules/node-forge/lib/asn1.js","../node_modules/webpack/buildin/module.js","../node_modules/elliptic/node_modules/bn.js/lib/bn.js","../node_modules/node-forge/lib/md.js","../../modules/BrowserRouter.js","../../modules/HashRouter.js","../../modules/utils/locationUtils.js","../../modules/Link.js","../../modules/NavLink.js","../node_modules/cipher-base/index.js","../node_modules/prop-types/index.js","../node_modules/util/util.js","../node_modules/readable-stream/lib/_stream_duplex.js","../node_modules/node-forge/lib/aes.js","../node_modules/node-forge/lib/oids.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/objectSpread2.js","../node_modules/es-errors/type.js","../node_modules/randombytes/browser.js","../node_modules/stream-browserify/index.js","../node_modules/sha.js/hash.js","../node_modules/node-forge/lib/pem.js","../node_modules/google-spreadsheet/index.js","../node_modules/events/events.js","../node_modules/create-hash/browser.js","../node_modules/core-util-is/lib/util.js","../node_modules/buffer-xor/index.js","../node_modules/hash.js/lib/hash/common.js","../node_modules/asn1.js/lib/asn1.js","../node_modules/asn1.js/lib/asn1/base/index.js","../node_modules/google-auth-library/build/src/auth/oauth2client.js","../node_modules/node-forge/lib/hmac.js","../node_modules/node-forge/lib/sha1.js","../Survey/webpack/universalModuleDefinition","../Survey/webpack/bootstrap","../Survey/node_modules/signature_pad/dist/signature_pad.mjs","../Survey/node_modules/sortablejs/modular/sortable.esm.js","../Survey/src/action-bar.ts","../Survey/src/base.ts","../Survey/src/calculatedValue.ts","../Survey/src/choicesRestful.ts","../Survey/src/conditionProcessValue.ts","../Survey/src/conditions.ts","../Survey/src/conditionsParser.ts","../Survey/src/defaultCss/cssbootstrap.ts","../Survey/src/defaultCss/cssbootstrapmaterial.ts","../Survey/src/defaultCss/cssmodern.ts","../Survey/src/defaultCss/cssstandard.ts","../Survey/src/dxSurveyService.ts","../Survey/src/entries/chunks/localization.ts","../Survey/src/entries/chunks/model.ts","../Survey/src/entries/core.ts","../Survey/src/entries/react-ui.ts","../Survey/src/entries/react.ts","../Survey/src/error.ts","../Survey/src/expressionItems.ts","../Survey/src/expressions/expressionParser.ts","../Survey/src/expressions/expressions.ts","../Survey/src/flowpanel.ts","../Survey/src/functionsfactory.ts","../Survey/src/helpers.ts","../Survey/src/itemvalue.ts","../Survey/src/jsonobject.ts","../Survey/src/list.ts","../Survey/src/localizablestring.ts","../Survey/src/localization/arabic.ts","../Survey/src/localization/bulgarian.ts","../Survey/src/localization/catalan.ts","../Survey/src/localization/croatian.ts","../Survey/src/localization/czech.ts","../Survey/src/localization/danish.ts","../Survey/src/localization/dutch.ts","../Survey/src/localization/english.ts","../Survey/src/localization/estonian.ts","../Survey/src/localization/finnish.ts","../Survey/src/localization/french.ts","../Survey/src/localization/georgian.ts","../Survey/src/localization/german.ts","../Survey/src/localization/greek.ts","../Survey/src/localization/hebrew.ts","../Survey/src/localization/hindi.ts","../Survey/src/localization/hungarian.ts","../Survey/src/localization/icelandic.ts","../Survey/src/localization/indonesian.ts","../Survey/src/localization/italian.ts","../Survey/src/localization/japanese.ts","../Survey/src/localization/korean.ts","../Survey/src/localization/latvian.ts","../Survey/src/localization/lithuanian.ts","../Survey/src/localization/macedonian.ts","../Survey/src/localization/norwegian.ts","../Survey/src/localization/persian.ts","../Survey/src/localization/polish.ts","../Survey/src/localization/portuguese-br.ts","../Survey/src/localization/portuguese.ts","../Survey/src/localization/romanian.ts","../Survey/src/localization/russian.ts","../Survey/src/localization/simplified-chinese.ts","../Survey/src/localization/spanish.ts","../Survey/src/localization/swahili.ts","../Survey/src/localization/swedish.ts","../Survey/src/localization/tajik.ts","../Survey/src/localization/thai.ts","../Survey/src/localization/traditional-chinese.ts","../Survey/src/localization/turkish.ts","../Survey/src/localization/ukrainian.ts","../Survey/src/localization/welsh.ts","../Survey/src/martixBase.ts","../Survey/src/page.ts","../Survey/src/panel.ts","../Survey/src/popup.ts","../Survey/src/question.ts","../Survey/src/questionCustomWidgets.ts","../Survey/src/question_baseselect.ts","../Survey/src/question_boolean.ts","../Survey/src/question_checkbox.ts","../Survey/src/question_comment.ts","../Survey/src/question_custom.ts","../Survey/src/question_dropdown.ts","../Survey/src/question_empty.ts","../Survey/src/question_expression.ts","../Survey/src/question_file.ts","../Survey/src/question_html.ts","../Survey/src/question_image.ts","../Survey/src/question_imagepicker.ts","../Survey/src/question_matrix.ts","../Survey/src/question_matrixdropdown.ts","../Survey/src/question_matrixdropdownbase.ts","../Survey/src/question_matrixdynamic.ts","../Survey/src/question_multipletext.ts","../Survey/src/question_paneldynamic.ts","../Survey/src/question_radiogroup.ts","../Survey/src/question_ranking.ts","../Survey/src/question_rating.ts","../Survey/src/question_signaturepad.ts","../Survey/src/question_text.ts","../Survey/src/questionfactory.ts","../Survey/src/questionnonvalue.ts","../Survey/src/react/boolean-checkbox.tsx","../Survey/src/react/boolean.tsx","../Survey/src/react/components/action-bar/action-bar-item-dropdown.tsx","../Survey/src/react/components/action-bar/action-bar-item.tsx","../Survey/src/react/components/action-bar/action-bar-separator.tsx","../Survey/src/react/components/action-bar/action-bar.tsx","../Survey/src/react/components/default-title/default-title.tsx","../Survey/src/react/components/list/list.tsx","../Survey/src/react/components/matrix-actions/detail-button/detail-button.tsx","../Survey/src/react/components/matrix-actions/remove-button/remove-button.tsx","../Survey/src/react/components/popup/popup.tsx","../Survey/src/react/components/svg-icon/svg-icon.tsx","../Survey/src/react/components/title-actions/title-actions.tsx","../Survey/src/react/components/title-content/title-content.tsx","../Survey/src/react/custom-widget.tsx","../Survey/src/react/drag-drop-td.tsx","../Survey/src/react/element-factory.tsx","../Survey/src/react/flow-panel.tsx","../Survey/src/react/image.tsx","../Survey/src/react/imagepicker.tsx","../Survey/src/react/page.tsx","../Survey/src/react/panel-base.tsx","../Survey/src/react/panel.tsx","../Survey/src/react/reactSurvey.tsx","../Survey/src/react/reactSurveyNavigation.tsx","../Survey/src/react/reactSurveyNavigationBase.tsx","../Survey/src/react/reactSurveyProgress.tsx","../Survey/src/react/reactSurveyProgressButtons.tsx","../Survey/src/react/reactSurveyWindow.tsx","../Survey/src/react/reactquestion.tsx","../Survey/src/react/reactquestion_checkbox.tsx","../Survey/src/react/reactquestion_comment.tsx","../Survey/src/react/reactquestion_custom.tsx","../Survey/src/react/reactquestion_dropdown.tsx","../Survey/src/react/reactquestion_element.tsx","../Survey/src/react/reactquestion_empty.tsx","../Survey/src/react/reactquestion_expression.tsx","../Survey/src/react/reactquestion_factory.tsx","../Survey/src/react/reactquestion_file.tsx","../Survey/src/react/reactquestion_html.tsx","../Survey/src/react/reactquestion_matrix.tsx","../Survey/src/react/reactquestion_matrixdropdown.tsx","../Survey/src/react/reactquestion_matrixdropdownbase.tsx","../Survey/src/react/reactquestion_matrixdynamic.tsx","../Survey/src/react/reactquestion_multipletext.tsx","../Survey/src/react/reactquestion_paneldynamic.tsx","../Survey/src/react/reactquestion_radiogroup.tsx","../Survey/src/react/reactquestion_ranking.tsx","../Survey/src/react/reactquestion_rating.tsx","../Survey/src/react/reactquestion_text.tsx","../Survey/src/react/reactsurveymodel.tsx","../Survey/src/react/reacttimerpanel.tsx","../Survey/src/react/row.tsx","../Survey/src/react/signaturepad.tsx","../Survey/src/react/string-editor.tsx","../Survey/src/react/string-viewer.tsx","../Survey/src/rendererFactory.ts","../Survey/src/settings.ts","../Survey/src/stylesmanager.ts","../Survey/src/survey.ts","../Survey/src/surveyProgressButtons.ts","../Survey/src/surveyStrings.ts","../Survey/src/surveyWindow.ts","../Survey/src/surveytimer.ts","../Survey/src/textPreProcessor.ts","../Survey/src/trigger.ts","../Survey/src/utils/is-mobile.ts","../Survey/src/utils/popup.ts","../Survey/src/utils/resonsibilitymanager.ts","../Survey/src/utils/utils.ts","../Survey/src/validator.ts","../webpack:/Survey/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","../node_modules/lodash/lodash.js","../node_modules/object-inspect/index.js","../node_modules/function-bind/index.js","../node_modules/readable-stream/readable-browser.js","../node_modules/process-nextick-args/index.js","../node_modules/browserify-aes/aes.js","../node_modules/evp_bytestokey/index.js","../node_modules/elliptic/lib/elliptic/curve/base.js","../node_modules/parse-asn1/index.js","../node_modules/node-forge/lib/des.js","../node_modules/node-forge/lib/rsa.js","../node_modules/node-forge/lib/jsbn.js","../node_modules/google-spreadsheet/lib/utils.js","../node_modules/object-assign/index.js","../../../src/index.ts","../node_modules/get-intrinsic/index.js","../node_modules/es-object-atoms/index.js","../node_modules/call-bind-apply-helpers/functionCall.js","../node_modules/call-bound/index.js","../node_modules/qs/lib/formats.js","../node_modules/debug/src/browser.js","../node_modules/md5.js/index.js","../node_modules/readable-stream/lib/_stream_writable.js","../node_modules/string_decoder/lib/string_decoder.js","../node_modules/ripemd160/index.js","../node_modules/sha.js/index.js","../node_modules/des.js/lib/des/cipher.js","../node_modules/browserify-aes/browser.js","../node_modules/browserify-aes/modes/index.js","../node_modules/brorand/index.js","../node_modules/browserify-sign/node_modules/safe-buffer/index.js","../node_modules/browserify-rsa/index.js","../node_modules/bn.js/lib/bn.js","../node_modules/elliptic/lib/elliptic.js","../node_modules/elliptic/lib/elliptic/curves.js","../node_modules/hash.js/lib/hash.js","../node_modules/public-encrypt/node_modules/bn.js/lib/bn.js","../node_modules/google-auth-library/build/src/transporters.js","../node_modules/node-forge/lib/cipher.js","../node_modules/node-forge/lib/md5.js","../node_modules/node-forge/lib/pbkdf2.js","../node_modules/node-forge/lib/x509.js","../node_modules/node-forge/lib/pss.js","../node_modules/react-dom/index.js","../node_modules/mini-create-react-context/dist/esm/index.js","../node_modules/react-router/node_modules/path-to-regexp/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/typeof.js","../node_modules/base64-js/index.js","../node_modules/querystring-es3/index.js","../../../src/common.ts","../node_modules/side-channel-map/index.js","../node_modules/gopd/index.js","../node_modules/has-symbols/shams.js","../node_modules/get-proto/Reflect.getPrototypeOf.js","../node_modules/get-proto/Object.getPrototypeOf.js","../node_modules/call-bind-apply-helpers/index.js","../node_modules/call-bind-apply-helpers/functionApply.js","../node_modules/qs/lib/utils.js","../node_modules/object-keys/isArguments.js","../node_modules/bignumber.js/bignumber.js","../node_modules/path-browserify/index.js","../node_modules/google-auth-library/build/src/crypto/crypto.js","../node_modules/crypto-browserify/index.js","../node_modules/hash-base/index.js","../node_modules/readable-stream/lib/_stream_readable.js","../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../node_modules/readable-stream/lib/internal/streams/destroy.js","../node_modules/timers-browserify/main.js","../node_modules/readable-stream/lib/_stream_transform.js","../node_modules/sha.js/sha256.js","../node_modules/sha.js/sha512.js","../node_modules/create-hmac/browser.js","../node_modules/create-hash/md5.js","../node_modules/pbkdf2/browser.js","../node_modules/pbkdf2/lib/precondition.js","../node_modules/pbkdf2/lib/default-encoding.js","../node_modules/pbkdf2/lib/sync-browser.js","../node_modules/pbkdf2/lib/to-buffer.js","../node_modules/des.js/lib/des/utils.js","../node_modules/des.js/lib/des/des.js","../node_modules/browserify-aes/modes/ctr.js","../node_modules/browserify-aes/incr32.js","../node_modules/browserify-aes/authCipher.js","../node_modules/browserify-aes/streamCipher.js","../node_modules/diffie-hellman/lib/generatePrime.js","../node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js","../node_modules/miller-rabin/lib/mr.js","../node_modules/minimalistic-crypto-utils/lib/utils.js","../node_modules/elliptic/lib/elliptic/curve/index.js","../node_modules/hash.js/lib/hash/sha/common.js","../node_modules/hash.js/lib/hash/sha/256.js","../node_modules/hash.js/lib/hash/sha/512.js","../node_modules/asn1.js/lib/asn1/base/buffer.js","../node_modules/asn1.js/lib/asn1/constants/index.js","../node_modules/asn1.js/lib/asn1/decoders/der.js","../node_modules/asn1.js/lib/asn1/encoders/der.js","../node_modules/parse-asn1/node_modules/safe-buffer/index.js","../node_modules/public-encrypt/mgf.js","../node_modules/public-encrypt/xor.js","../node_modules/public-encrypt/withPublic.js","../node_modules/google-auth-library/build/src/auth/computeclient.js","../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../node_modules/google-auth-library/build/src/auth/loginticket.js","../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../node_modules/google-auth-library/build/src/auth/envDetect.js","../node_modules/google-auth-library/build/src/auth/jwtclient.js","../node_modules/jws/index.js","../node_modules/jws/lib/data-stream.js","../node_modules/jwa/index.js","../node_modules/jws/lib/tostring.js","../node_modules/node-forge/lib/cipherModes.js","../node_modules/node-forge/lib/tls.js","../node_modules/node-forge/lib/pki.js","../node_modules/node-forge/lib/pbe.js","../node_modules/node-forge/lib/sha256.js","../node_modules/node-forge/lib/prng.js","../node_modules/node-forge/lib/rc2.js","../node_modules/node-forge/lib/pkcs1.js","../node_modules/node-forge/lib/prime.js","../node_modules/node-forge/lib/pkcs12.js","../node_modules/node-forge/lib/pkcs7asn1.js","../node_modules/node-forge/lib/mgf1.js","../node_modules/node-forge/lib/debug.js","../node_modules/node-forge/lib/sha512.js","../node_modules/node-forge/lib/log.js","../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../node_modules/google-auth-library/build/src/auth/refreshclient.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/bind.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/buildURL.js","../node_modules/google-spreadsheet/node_modules/axios/lib/cancel/isCancel.js","../node_modules/google-spreadsheet/node_modules/axios/lib/defaults.js","../node_modules/google-spreadsheet/node_modules/axios/lib/adapters/xhr.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/createError.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/mergeConfig.js","../node_modules/google-spreadsheet/node_modules/axios/lib/cancel/Cancel.js","../node_modules/google-spreadsheet/lib/GoogleSpreadsheetWorksheet.js","../node_modules/google-spreadsheet/lib/GoogleSpreadsheetRow.js","../node_modules/google-spreadsheet/lib/errors.js","../node_modules/react-is/index.js","../node_modules/qr.js/lib/mode.js","../node_modules/qr.js/lib/ErrorCorrectLevel.js","../node_modules/qr.js/lib/Polynomial.js","../node_modules/qr.js/lib/math.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/react-qr-code/lib/index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/scheduler/index.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/google-spreadsheet/lib/GoogleSpreadsheet.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/defineProperty.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toPropertyKey.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toPrimitive.js","../node_modules/google-auth-library/build/src/index.js","../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../src/gaxios.ts","../node_modules/ieee754/index.js","../node_modules/buffer/node_modules/isarray/index.js","../node_modules/extend/index.js","../node_modules/node-fetch/browser.js","../node_modules/querystring-es3/decode.js","../node_modules/querystring-es3/encode.js","../node_modules/gaxios/node_modules/is-stream/index.js","../../../src/retry.ts","../../src/index.ts","../../src/agent.ts","../node_modules/url/url.js","../node_modules/node-libs-browser/node_modules/punycode/punycode.js","../node_modules/qs/lib/index.js","../node_modules/qs/lib/stringify.js","../node_modules/side-channel/index.js","../node_modules/side-channel-list/index.js","../node_modules/es-errors/index.js","../node_modules/es-errors/eval.js","../node_modules/es-errors/range.js","../node_modules/es-errors/ref.js","../node_modules/es-errors/syntax.js","../node_modules/es-errors/uri.js","../node_modules/math-intrinsics/abs.js","../node_modules/math-intrinsics/floor.js","../node_modules/math-intrinsics/max.js","../node_modules/math-intrinsics/min.js","../node_modules/math-intrinsics/pow.js","../node_modules/math-intrinsics/round.js","../node_modules/math-intrinsics/sign.js","../node_modules/math-intrinsics/isNaN.js","../node_modules/gopd/gOPD.js","../node_modules/es-define-property/index.js","../node_modules/has-symbols/index.js","../node_modules/get-proto/index.js","../node_modules/dunder-proto/get.js","../node_modules/function-bind/implementation.js","../node_modules/call-bind-apply-helpers/actualApply.js","../node_modules/call-bind-apply-helpers/reflectApply.js","../node_modules/hasown/index.js","../node_modules/side-channel-weakmap/index.js","../node_modules/qs/lib/parse.js","../node_modules/assert/assert.js","../node_modules/object.assign/polyfill.js","../node_modules/object.assign/implementation.js","../node_modules/object-keys/index.js","../node_modules/object-keys/implementation.js","../node_modules/util/support/isBufferBrowser.js","../node_modules/util/node_modules/inherits/inherits_browser.js","../node_modules/debug/src/common.js","../node_modules/ms/index.js","../../../src/promisify.ts","../../src/parse-proxy-response.ts","../node_modules/json-bigint/index.js","../node_modules/json-bigint/lib/stringify.js","../node_modules/json-bigint/lib/parse.js","../node_modules/os-browserify/browser.js","../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../node_modules/fast-text-encoding/text.min.js","../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../node_modules/hash-base/node_modules/safe-buffer/index.js","../node_modules/readable-stream/node_modules/isarray/index.js","../node_modules/readable-stream/lib/internal/streams/BufferList.js","../node_modules/setimmediate/setImmediate.js","../node_modules/util-deprecate/browser.js","../node_modules/readable-stream/lib/_stream_passthrough.js","../node_modules/readable-stream/writable-browser.js","../node_modules/readable-stream/duplex-browser.js","../node_modules/readable-stream/transform.js","../node_modules/readable-stream/passthrough.js","../node_modules/sha.js/sha.js","../node_modules/sha.js/sha1.js","../node_modules/sha.js/sha224.js","../node_modules/sha.js/sha384.js","../node_modules/cipher-base/node_modules/safe-buffer/index.js","../node_modules/create-hmac/legacy.js","../node_modules/browserify-sign/algos.js","../node_modules/pbkdf2/lib/async.js","../node_modules/browserify-cipher/browser.js","../node_modules/browserify-des/index.js","../node_modules/des.js/lib/des.js","../node_modules/des.js/lib/des/cbc.js","../node_modules/des.js/lib/des/ede.js","../node_modules/browserify-aes/encrypter.js","../node_modules/browserify-aes/modes/ecb.js","../node_modules/browserify-aes/modes/cbc.js","../node_modules/browserify-aes/modes/cfb.js","../node_modules/browserify-aes/modes/cfb8.js","../node_modules/browserify-aes/modes/cfb1.js","../node_modules/browserify-aes/modes/ofb.js","../node_modules/browserify-aes/ghash.js","../node_modules/browserify-aes/decrypter.js","../node_modules/browserify-des/modes.js","../node_modules/diffie-hellman/browser.js","../node_modules/miller-rabin/node_modules/bn.js/lib/bn.js","../node_modules/diffie-hellman/lib/dh.js","../node_modules/browserify-sign/browser/index.js","../node_modules/browserify-sign/browser/sign.js","../node_modules/browserify-rsa/node_modules/safe-buffer/index.js","../node_modules/elliptic/lib/elliptic/curve/short.js","../node_modules/elliptic/lib/elliptic/curve/mont.js","../node_modules/elliptic/lib/elliptic/curve/edwards.js","../node_modules/hash.js/lib/hash/sha.js","../node_modules/hash.js/lib/hash/sha/1.js","../node_modules/hash.js/lib/hash/sha/224.js","../node_modules/hash.js/lib/hash/sha/384.js","../node_modules/hash.js/lib/hash/ripemd.js","../node_modules/hash.js/lib/hash/hmac.js","../node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js","../node_modules/elliptic/lib/elliptic/ec/index.js","../node_modules/hmac-drbg/lib/hmac-drbg.js","../node_modules/elliptic/lib/elliptic/ec/key.js","../node_modules/elliptic/lib/elliptic/ec/signature.js","../node_modules/elliptic/lib/elliptic/eddsa/index.js","../node_modules/elliptic/lib/elliptic/eddsa/key.js","../node_modules/elliptic/lib/elliptic/eddsa/signature.js","../node_modules/parse-asn1/asn1.js","../node_modules/asn1.js/node_modules/bn.js/lib/bn.js","../node_modules/asn1.js/lib/asn1/api.js","../node_modules/vm-browserify/index.js","../node_modules/asn1.js/lib/asn1/base/reporter.js","../node_modules/asn1.js/lib/asn1/base/node.js","../node_modules/asn1.js/lib/asn1/constants/der.js","../node_modules/asn1.js/lib/asn1/decoders/index.js","../node_modules/asn1.js/lib/asn1/decoders/pem.js","../node_modules/asn1.js/lib/asn1/encoders/index.js","../node_modules/asn1.js/lib/asn1/encoders/pem.js","../node_modules/parse-asn1/certificate.js","../node_modules/parse-asn1/fixProc.js","../node_modules/browserify-sign/browser/verify.js","../node_modules/create-ecdh/browser.js","../node_modules/create-ecdh/node_modules/bn.js/lib/bn.js","../node_modules/public-encrypt/browser.js","../node_modules/public-encrypt/publicEncrypt.js","../node_modules/public-encrypt/privateDecrypt.js","../node_modules/randomfill/browser.js","../node_modules/google-auth-library/build/src/options.js","../node_modules/arrify/index.js","../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../node_modules/google-auth-library/build/src/auth/authclient.js","../node_modules/gtoken/build/src/index.js","../node_modules/jws/lib/sign-stream.js","../node_modules/buffer-equal-constant-time/index.js","../node_modules/jws/lib/verify-stream.js","../node_modules/google-p12-pem/build/src/index.js","../node_modules/node-forge/lib/index.js","../node_modules/node-forge/lib/baseN.js","../node_modules/node-forge/lib/aesCipherSuites.js","../node_modules/node-forge/lib/mgf.js","../node_modules/node-forge/lib/ed25519.js","../node_modules/node-forge/lib/asn1-validator.js","../node_modules/node-forge/lib/kem.js","../node_modules/node-forge/lib/md.all.js","../node_modules/node-forge/lib/pkcs7.js","../node_modules/node-forge/lib/ssh.js","../node_modules/node-forge/lib/task.js","../node_modules/lru-cache/index.js","../node_modules/yallist/yallist.js","../node_modules/yallist/iterator.js","../node_modules/google-auth-library/build/src/auth/iam.js","../node_modules/google-spreadsheet/node_modules/axios/index.js","../node_modules/google-spreadsheet/node_modules/axios/lib/axios.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/Axios.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/InterceptorManager.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/dispatchRequest.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/transformData.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/normalizeHeaderName.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/settle.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/enhanceError.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/cookies.js","../node_modules/google-spreadsheet/node_modules/axios/lib/core/buildFullPath.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/combineURLs.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/google-spreadsheet/node_modules/axios/lib/cancel/CancelToken.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/spread.js","../node_modules/google-spreadsheet/node_modules/axios/lib/helpers/isAxiosError.js","../node_modules/google-spreadsheet/lib/GoogleSpreadsheetCell.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/react-router/node_modules/isarray/index.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/qr.js/lib/QRCode.js","../node_modules/qr.js/lib/8BitByte.js","../node_modules/qr.js/lib/RSBlock.js","../node_modules/qr.js/lib/BitBuffer.js","../node_modules/qr.js/lib/util.js","../node_modules/react-qr-code/lib/components/QRCodeCell/index.js","../node_modules/react-qr-code/lib/components/QRCodeSurface/index.js"],"names":["module","exports","require","options","usePureJavaScript","buffer","Buffer","copyProps","src","dst","key","SafeBuffer","arg","encodingOrOffset","length","from","alloc","allocUnsafe","allocUnsafeSlow","TypeError","size","fill","encoding","buf","undefined","SlowBuffer","Object","create","ctor","superCtor","super_","prototype","constructor","value","enumerable","writable","configurable","TempCtor","forge","baseN","util","_checkBitsParam","n","Error","ByteStringBuffer","b","this","data","read","isArrayBuffer","isArrayBufferView","toString","arr","Uint8Array","String","fromCharCode","apply","e","i","putByte","_constructedStringLength","process","nextTick","browser","setImmediate","arguments","callback","setTimeout","window","postMessage","msg","callbacks","push","addEventListener","event","source","stopPropagation","copy","slice","forEach","MutationObserver","now","Date","attr","div","document","createElement","observe","attributes","oldSetImmediate","setAttribute","isNodejs","versions","node","globalScope","global","self","isArray","Array","x","call","ArrayBuffer","byteLength","ByteBuffer","_optimizeConstructedString","substr","isEmpty","putBytes","fillWithByte","d","bytes","putString","str","encodeUtf8","putInt16","putInt24","putInt32","putInt16Le","putInt24Le","putInt32Le","putInt","putSignedInt","putBuffer","getBytes","getByte","charCodeAt","getInt16","rval","getInt24","getInt32","getInt16Le","getInt24Le","getInt32Le","getInt","getSignedInt","max","count","Math","min","clear","at","setAt","last","c","createBuffer","compact","truncate","len","toHex","decodeUtf8","DataBuffer","readOffset","growSize","DataView","byteOffset","write","writeOffset","accommodate","amount","set","setUint8","view","ceil","binary","hex","decode","base64","raw","Uint16Array","text","utf16","encode","setInt16","setInt8","setInt32","getInt8","getUint8","utf8","input","fillString","s","xorBytes","s1","s2","s3","t","hexToBytes","parseInt","bytesToHex","int32ToBytes","_base64","_base64Idx","_base58","encode64","maxline","chr1","chr2","chr3","line","output","charAt","isNaN","decode64","replace","enc1","enc2","enc3","enc4","unescape","encodeURIComponent","decodeURIComponent","escape","base58","offset","out","j","subarray","k","deflate","api","start","substring","inflate","_setStorageObject","id","obj","removeItem","JSON","stringify","setItem","error","message","name","_getStorageObject","getItem","init","parse","_setItem","_getItem","_removeItem","empty","prop","_clearItems","_callStorageFunction","func","args","location","type","done","exception","idx","localStorage","ex","clearItems","parseUrl","regex","lastIndex","m","exec","url","full","scheme","host","port","path","fullHost","_queryVariables","getQueryVariables","query","q","kvpairs","split","val","pos","indexOf","search","parseFragment","fragment","fp","fq","shift","pathString","queryString","makeRequest","reqString","frag","req","getPath","getQuery","getQueryLast","_default","vals","makeLink","jQuery","join","qstr","param","hasOwnProperty","format","match","part","re","argi","parts","code","formatNumber","number","decimals","dec_point","thousands_sep","abs","toFixed","formatSize","bytesFromIP","ip","bytesFromIPv4","bytesFromIPv6","num","blanks","zeros","filter","bytesToIP","bytesToIPv4","bytesToIPv6","zeroGroups","zeroMaxGroup","end","group","splice","unshift","estimateCores","update","cores","navigator","hardwareConcurrency","Worker","Blob","blobUrl","URL","createObjectURL","st","et","sample","samples","numWorkers","avg","floor","reduce","revokeObjectURL","workers","results","worker","terminate","map","err","overlaps","r1","overlap","r2","ieee754","kMaxLength","TYPED_ARRAY_SUPPORT","that","RangeError","__proto__","array","fromArrayLike","fromArrayBuffer","string","isEncoding","actual","fromString","isBuffer","checked","fromObject","assertSize","isView","loweredCase","utf8ToBytes","base64ToBytes","toLowerCase","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","bidirectionalIndexOf","dir","arrayIndexOf","lastIndexOf","indexSize","arrLength","valLength","readUInt16BE","foundIndex","found","hexWrite","Number","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","byteArray","asciiToBytes","latin1Write","base64Write","ucs2Write","units","hi","lo","utf16leToBytes","fromByteArray","res","secondByte","thirdByte","fourthByte","tempCodePoint","firstByte","codePoint","bytesPerSequence","codePoints","MAX_ARGUMENTS_LENGTH","decodeCodePointsArray","INSPECT_MAX_BYTES","foo","typedArraySupport","poolSize","_augment","Symbol","species","defineProperty","_isBuffer","compare","a","y","concat","list","swap16","swap32","swap64","equals","inspect","target","thisStart","thisEnd","thisCopy","targetCopy","includes","isFinite","toJSON","_arr","ret","checkOffset","ext","checkInt","objectWriteUInt16","littleEndian","objectWriteUInt32","checkIEEE754","writeFloat","noAssert","writeDouble","newBuf","sliceLen","readUIntLE","mul","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt8","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","INVALID_BASE64_RE","Infinity","leadSurrogate","toByteArray","trim","stringtrim","base64clean","createNamedContext","context","createContext","displayName","historyContext","Router","props","state","history","_isMounted","_pendingLocation","staticContext","unlisten","listen","setState","computeRootMatch","pathname","params","isExact","componentDidMount","componentWillUnmount","render","RouterContext","Provider","HistoryContext","children","React","Component","cache","cacheLimit","cacheCount","matchPath","exact","strict","sensitive","matched","cacheKey","pathCache","keys","result","regexp","pathToRegexp","compilePath","values","memo","index","Route","Consumer","computedMatch","component","addLeadingSlash","stripBasename","basename","base","createURL","createPath","staticHandler","methodName","invariant","noop","Switch","element","Children","child","isValidElement","cloneElement","withRouter","C","wrappedComponentRef","remainingProps","ref","WrappedComponent","hoistStatics","useContext","useRouteMatch","Context","_extends","assign","g","Function","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","run","marker","runClearTimeout","Item","title","env","argv","version","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","umask","bind","isUndefined","isObject","isPlainObject","getPrototypeOf","isFunction","fn","l","isFormData","FormData","isString","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","product","merge","assignValue","extend","thisArg","stripBOM","content","prefix","condition","_setPrototypeOf","o","p","setPrototypeOf","_inheritsLoose","subClass","superClass","assert","equal","r","utils","BN","minAssert","minUtils","toArray","zero2","getNAF","w","bits","naf","bitLength","ws","clone","z","mod","andln","isOdd","isubn","iushrn","getJSF","k1","k2","jsf","m8","d1","d2","cmpn","u1","u2","m14","m24","cachedProperty","computer","parseBytes","intFromLE","isAbsolute","spliceOne","pop","resolvePathname","to","hasTrailingSlash","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","up","valueOf","valueEqual","every","item","aValue","bValue","stripLeadingSlash","hasBasename","stripTrailingSlash","hash","createLocation","currentLocation","hashIndex","searchIndex","parsePath","decodeURI","URIError","locationsAreEqual","createTransitionManager","prompt","setPrompt","nextPrompt","confirmTransitionTo","action","getUserConfirmation","appendListener","isActive","listener","notifyListeners","_len","_key","canUseDOM","getConfirmation","confirm","PopStateEvent","HashChangeEvent","getHistoryState","createBrowserHistory","globalHistory","canUseHistory","ua","userAgent","supportsHistory","needsHashChangeListener","_props","_props$forceRefresh","forceRefresh","_props$getUserConfirm","_props$keyLength","keyLength","getDOMLocation","historyState","_ref","_window$location","createKey","random","transitionManager","nextState","handlePopState","isExtraneousPopstateEvent","handlePop","handleHashChange","forceNextPop","ok","fromLocation","toLocation","toIndex","allKeys","fromIndex","delta","go","revertPop","initialLocation","createHref","listenerCount","checkDOMListeners","removeEventListener","isBlocked","href","pushState","prevIndex","nextKeys","replaceState","goBack","goForward","block","unblock","HashChangeEvent$1","HashPathCoders","hashbang","encodePath","decodePath","noslash","slash","stripHash","getHashPath","replaceHashPath","createHashHistory","_props$hashType","hashType","_HashPathCoders$hashT","ignorePath","encodedPath","prevLocation","allPaths","baseTag","querySelector","getAttribute","pushHashPath","nextPaths","clamp","lowerBound","upperBound","createMemoryHistory","_props$initialEntries","initialEntries","_props$initialIndex","initialIndex","entries","entry","nextIndex","nextEntries","canGo","prng_aes","_prng_aes_output","_prng_aes_buffer","spawnPrng","ctx","prng","generate","getBytesSync","formatKey","tmp","aes","_expandKey","formatSeed","seed","cipher","_updateBlock","increment","md","sha256","_ctx","getRandomValues","_crypto","crypto","msCrypto","collectInt","_navBytes","collect","mousemove","clientX","clientY","keypress","charCode","createInstance","inherits","isSurrogatePair","htonl","word","zero8","enc","toHex32","endian","join32","split32","rotr32","rotl32","sum32","sum32_3","sum32_4","sum32_5","sum64","ah","al","bh","sum64_hi","bl","sum64_lo","sum64_4_hi","ch","cl","dh","dl","carry","sum64_4_lo","sum64_5_hi","eh","el","sum64_5_lo","rotr64_hi","rotr64_lo","shr64_hi","shr64_lo","asn1","_checkBufferLength","available","requested","Class","UNIVERSAL","APPLICATION","CONTEXT_SPECIFIC","PRIVATE","Type","NONE","BOOLEAN","INTEGER","BITSTRING","OCTETSTRING","NULL","OID","ODESC","EXTERNAL","REAL","ENUMERATED","EMBEDDED","UTF8","ROID","SEQUENCE","SET","PRINTABLESTRING","IA5STRING","UTCTIME","GENERALIZEDTIME","BMPSTRING","tagClass","constructed","composed","bitStringContents","original","excludeBitStringContents","obj1","obj2","includeBitStringContents","getBerValueLength","b2","_fromDer","depth","b1","longFormBytes","_getValueLength","decodeBitStrings","savedRead","savedRemaining","unused","verbose","used","tc","asn1Options","fromDer","toDer","useBitStringContents","lenBytes","oidToDer","oid","valueBytes","derToOid","utcTimeToDate","utc","date","year","MM","DD","hh","mm","ss","setUTCFullYear","setUTCHours","setTime","generalizedTimeToDate","gentime","YYYY","fff","isUTC","parseFloat","setFullYear","setHours","dateToUtcTime","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","dateToGeneralizedTime","integerToDer","integer","derToInteger","validate","v","capture","errors","optional","captureAsn1","captureBitStringContents","captureBitStringValue","_nonLatinRegex","prettyPrint","level","indentation","indent","IA5String","subvalues","pki","oids","test","webpackPolyfill","deprecate","paths","get","isBN","negative","words","red","_init","wordSize","parseHex4Bits","parseHexByte","parseBase","left","right","cmp","_initNumber","_initArray","_parseHex","_parseBase","strip","limbLen","limbPow","total","imuln","_iaddn","dest","_expand","_normSign","groupSizes","groupBases","smallMulTo","ncarry","rword","maxJ","padding","groupSize","groupBase","isZero","modn","idivn","toNumber","toBuffer","toArrayLike","ArrayType","reqLength","clz32","_countBits","_zeroBits","zeroBits","toTwos","width","inotn","iaddn","fromTwos","testn","notn","ineg","isNeg","neg","iuor","ior","or","uor","iuand","iand","and","uand","iuxor","ixor","xor","uxor","bytesNeeded","bitsLeft","setn","bit","wbit","iadd","isub","add","comb10MulTo","mid","a0","al0","ah0","a1","al1","ah1","a2","al2","ah2","a3","al3","ah3","a4","al4","ah4","a5","al5","ah5","a6","al6","ah6","a7","al7","ah7","a8","al8","ah8","a9","al9","ah9","b0","bl0","bh0","bl1","bh1","bl2","bh2","b3","bl3","bh3","b4","bl4","bh4","b5","bl5","bh5","b6","bl6","bh6","b7","bl7","bh7","b8","bl8","bh8","b9","bl9","bh9","w0","imul","w1","w2","w3","w4","w5","w6","w7","w8","w9","w10","w11","w12","w13","w14","w15","w16","w17","w18","jumboMulTo","FFTM","mulp","mulTo","hncarry","bigMulTo","makeRBT","N","revBin","rb","permute","rbt","rws","iws","rtws","itws","transform","rtwdf","cos","PI","itwdf","sin","rtwdf_","itwdf_","ie","ro","io","rx","guessLen13b","odd","conjugate","normalize13b","round","convert13b","stub","ph","_","rwst","iwst","nrws","nrwst","niwst","rmws","mulf","muln","sqr","isqr","toBitArray","iushln","carryMask","newCarry","ishln","hint","extended","h","mask","maskedWords","ishrn","shln","ushln","shrn","ushrn","imaskn","maskn","addn","subn","iabs","_ishlnsubmul","_wordDiv","mode","bhi","diff","qj","divmod","positive","divn","umod","divRound","dm","half","acc","egcd","A","B","D","isEven","yp","xp","im","jm","gcd","_invmp","x1","x2","invm","bincn","ucmp","gtn","gt","gten","gte","ltn","lt","lten","lte","eqn","eq","Red","toRed","convertTo","_forceRed","fromRed","convertFrom","forceRed","redAdd","redIAdd","redSub","redISub","redShl","shl","redMul","_verify2","redIMul","redSqr","_verify1","redISqr","redSqrt","sqrt","redInvm","redNeg","redPow","primes","k256","p224","p192","p25519","MPrime","_tmp","K256","P224","P192","P25519","prime","_prime","Mont","imod","rinv","minv","ireduce","rlen","imulK","_strip","outLen","prev","next","mod3","one","nOne","lpow","inv","wnd","current","currentLen","mont","u","algorithms","HashRouter","createHistory","resolveToLocation","normalizeToLocation","forwardRefShim","forwardRef","LinkAnchor","forwardedRef","innerRef","navigate","onClick","rest","preventDefault","defaultPrevented","button","metaKey","altKey","ctrlKey","shiftKey","isModifiedEvent","Link","ariaCurrent","activeClassName","activeStyle","classNameProp","className","isActiveProp","locationProp","styleProp","style","escapedPath","classnames","joinClassnames","Transform","StringDecoder","CipherBase","hashMode","_finalOrDigest","_final","__final","_decoder","_encoding","useUint8Array","useArrayBuffer","inputEnc","outputEnc","bufferData","outData","_update","_toString","setAutoPadding","getAuthTag","setAuthTag","setAAD","_transform","_flush","fin","getOwnPropertyDescriptors","descriptors","getOwnPropertyDescriptor","formatRegExp","f","objects","isNull","noDeprecation","warned","throwDeprecation","traceDeprecation","console","trace","debugEnviron","debugs","opts","seen","stylize","stylizeNoColor","colors","isBoolean","showHidden","_extend","customInspect","stylizeWithColor","formatValue","styleType","styles","recurseTimes","primitive","simple","formatPrimitive","visibleKeys","arrayToHash","getOwnPropertyNames","isError","formatError","isRegExp","RegExp","braces","toUTCString","formatProperty","formatArray","cur","numLinesEst","reduceToSingleString","desc","ar","objectToString","pad","debuglog","NODE_DEBUG","toUpperCase","pid","isNullOrUndefined","isSymbol","isPrimitive","months","log","time","getHours","getMinutes","getSeconds","getDate","getMonth","timestamp","origin","kCustomPromisifiedSymbol","callbackifyOnRejected","reason","cb","newReason","promisify","promiseResolve","promiseReject","promise","Promise","resolve","reject","defineProperties","custom","callbackify","callbackified","maybeCb","then","rej","pna","objectKeys","Duplex","Readable","Writable","method","readable","allowHalfOpen","onend","_writableState","ended","onEndNT","highWaterMark","_readableState","destroyed","_destroy","registerAlgorithm","Algorithm","startEncrypting","iv","_createCipher","decrypt","createEncryptionCipher","startDecrypting","createDecryptionCipher","initialize","blockSize","encrypt","inBlock","outBlock","_w","encryptOp","modes","ecb","cbc","cfb","ofb","ctr","gcm","sbox","isbox","rcon","mix","imix","Nb","xtime","e2","e4","e8","sx","sx2","me","ime","ei","temp","iNk","Nk","m0","m1","m2","m3","wnew","wi","c2","Nr","algorithm","createDecipher","createCipher","_IN","_I_","_objectWithoutPropertiesLoose","excluded","sourceKeys","ownKeys","getOwnPropertySymbols","__esModule","MAX_BYTES","MAX_UINT32","generated","Stream","EE","EventEmitter","PassThrough","ondata","chunk","pause","ondrain","resume","_isStdio","onclose","didOnEnd","destroy","onerror","er","cleanup","Hash","finalSize","_block","_finalSize","_blockSize","accum","assigned","remainder","digest","rem","lowBits","highBits","_hash","pem","foldHeader","header","insertSpace","$1","candidate","insert","ltrim","procType","contentDomain","dekInfo","parameters","headers","body","rMessage","rHeader","rCRLF","lines","li","nl","vi","GoogleSpreadsheet","GoogleSpreadsheetWorksheet","GoogleSpreadsheetRow","GoogleSpreadsheetFormulaError","ReflectOwnKeys","R","Reflect","ReflectApply","receiver","NumberIsNaN","emitter","errorListener","resolver","eventTargetAgnosticAddListener","handler","flags","addErrorHandlerIfEventEmitter","_events","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","_getMaxListeners","_addListener","prepend","events","existing","warning","newListener","warn","onceWrapper","fired","wrapFn","_onceWrap","wrapped","_listeners","unwrap","evlistener","unwrapListeners","arrayClone","wrapListener","setMaxListeners","getMaxListeners","doError","position","originalListener","rawListeners","eventNames","MD5","RIPEMD160","sha","Base","alg","BlockHash","pending","pendingTotal","outSize","hmacStrength","padLength","_delta8","_delta32","_pad","_digest","bignum","define","constants","decoders","encoders","Reporter","DecoderBuffer","EncoderBuffer","Node","OAuth2Client","CertificateFormat","CodeChallengeMethod","querystring","stream","formatEcdsa","crypto_1","authclient_1","loginticket_1","AuthClient","optionsOrClientId","clientSecret","redirectUri","super","certificateCache","certificateExpiry","certificateCacheFormat","PEM","refreshTokenPromises","Map","clientId","_clientId","_clientSecret","eagerRefreshThresholdMillis","forceRefreshOnFailure","generateAuthUrl","code_challenge_method","code_challenge","response_type","client_id","redirect_uri","scope","GOOGLE_OAUTH2_AUTH_BASE_URL_","generateCodeVerifier","generateCodeVerifierAsync","createCrypto","codeVerifier","randomBytesBase64","codeChallenge","sha256DigestBase64","getToken","codeOrOptions","getTokenAsync","tokens","response","GOOGLE_OAUTH2_TOKEN_URL_","client_secret","grant_type","code_verifier","transporter","request","expires_in","expiry_date","getTime","refreshToken","refreshTokenNoCache","has","delete","refresh_token","refreshAccessToken","refreshAccessTokenAsync","credentials","getAccessToken","getAccessTokenAsync","token","access_token","isTokenExpiring","getRequestHeaders","getRequestMetadataAsync","thisCreds","apiKey","token_type","Authorization","addSharedMetadataHeaders","status","getRevokeTokenUrl","GOOGLE_OAUTH2_REVOKE_URL_","revokeToken","revokeCredentials","revokeCredentialsAsync","requestAsync","retry","statusCode","mayRequireRefresh","isReadableStream","config","verifyIdToken","verifyIdTokenAsync","idToken","getFederatedSignonCertsAsync","verifySignedJwtWithCertsAsync","certs","audience","ISSUERS_","maxExpiry","getTokenInfo","accessToken","GOOGLE_TOKEN_INFO_URL","info","scopes","getFederatedSignonCerts","nowTime","hasBrowserCrypto","JWK","GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_","GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_","cacheControl","cacheAge","regexResult","certificates","kid","getIapPublicKeys","getIapPublicKeysAsync","pubkeys","GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_","verifySignedJwtWithCerts","jwt","requiredAudience","issuers","MAX_TOKEN_LIFETIME_SECS_","segments","signed","envelope","payload","signature","decodeBase64StringUtf8","cert","joseToDer","verify","iat","exp","earliest","CLOCK_SKEW_SECS_","latest","iss","aud","audVerified","LoginTicket","expiryDate","hmac","_md","_ipadding","_opadding","keylen","blockLength","inner","getMac","sha1","_initialized","_padding","_state","_input","digestLength","messageLength","fullMessageLength","messageLengthSize","messageLength64","int32s","h0","h1","h2","h3","h4","finalBlock","overflow","factory","Point","Bezier","startPoint","control1","control2","endPoint","SignaturePad","canvas","wait","trailing","velocityFrom","distanceTo","other","_point","c1","fromDataURL","dataUrl","toDataURL","_strokeBegin","_strokeUpdate","_strokeEnd","_handleMouseEvents","_handleTouchEvents","_reset","_createPoint","_addPoint","point","_calculateCurveControlPoints","_calculateCurveWidths","curve","_strokeWidth","velocity","_drawPoint","_drawCurve","startWidth","endWidth","_drawDot","_fromData","pointGroups","drawCurve","drawDot","_toSVG","rawPoint","fromData","toData","_typeof","_defineProperty","_objectSpread","_objectWithoutProperties","_toConsumableArray","iter","pattern","IE11OrLess","Edge","FireFox","Safari","IOS","ChromeForAndroid","captureMode","matches","selector","msMatchesSelector","webkitMatchesSelector","getParentOrHost","closest","includeCTX","_throttleTimeout","R_SPACE","toggleClass","css","currentStyle","matrix","selfOnly","parentNode","find","tagName","iterator","getWindowScrollingElement","getRect","relativeToContainingBlock","relativeToNonStaticParent","undoScale","container","isScrolledPast","elSide","parentSide","getChild","childNum","lastChild","getRelativeScrollOffset","winScroller","getParentAutoScrollElement","includeSelf","elem","isRectEqual","rect1","rect2","throttle","ms","scrollBy","$","setRect","rect","unsetRect","expando","AnimationStateManager","animationStates","animatingRect","fromRect","toRect","animationTime","duration","plugins","defaults","PluginManager","evt","dispatchEvent","extraEventProperties","getEventProperties","sortable","pluginEvent","eventName","_dispatchEvent","dragEl","ghostRelativeParent","_silent","documentExists","supportDraggable","pull","nearestEmptyInsertDetectEvent","_checkOutsideTargetEl","Sortable","_onMove","fromEl","toEl","dragRect","targetEl","targetRect","originalEvent","willInsertAfter","_disableDraggable","_unsilent","_generateId","_nextTick","_cancelNextTick","root","touch","vertical","swapThreshold","invertedSwapThreshold","invertSwap","isLastTarget","sibling","ghostEl","extra","_this","active","putSortable","nextEl","mount","plugin","autoScrolls","clearAutoScrolls","clearPointerElemChangedInterval","lastSwapEl","autoScroll","rootEl","isFallback","bubbleScroll","currentParent","drop","Revert","Remove","SwapPlugin","n1","n2","multiDragSortable","multiDragElements","folding","dragStarted","MultiDragPlugin","clonesInserted","insertMultiDragClones","elementsInserted","removeMultiDragElements","touches","owner","needSeparator","visible","tooltip","enabled","isEnabled","showTitles","showTitle","innerCss","popupModel","template","iconName","items","defaultValue","invisibleItemsListModel","invisibleItemSelected","dotsItemPopupModel","toggleVisibility","canGrow","dotsItem","AdaptiveActionBarItemWrapper","ActionBarItem","showFirstN","visibleItemsCount","leftItemsToShow","invisibleItems","isVisible","shrink","grow","onSet","properties","getType","getNames","fillProperties","getProperties","setBinding","propertyName","valueName","clearBinding","getValueNameByPropertyName","getPropertiesByValueName","getJson","setJson","objProperties","getPropertiesByObj","isBindable","propertyHash","eventList","isLoadingFromJsonValue","loadingOwner","onPropertyChanged","addEvent","onItemValuePropertyChanged","isCreating","bindingsValue","Bindings","createProperties","onBaseCreating","isSurveyElement","commentPrefix","isValueEmpty","trimString","trimValue","IsPropertyEmpty","dispose","isDisposedValue","EventBase","getSurvey","isLive","checkBindings","updateBindings","bindings","updateBindingValue","getTemplate","getIsLoadingFromJson","isLoadingFromJson","startLoadingFromJson","endLoadingFromJson","toJsonObject","fromJSON","json","toObject","clonedObj","createClass","getProgressInfo","SurveyElement","createProgressInfo","locStrsChanged","arraysInfo","isItemValues","getPropertyValue","itemValueLocStrChanged","localizableStrings","getLocalizableString","strChanged","getPropertyValueCore","findProperty","isCustom","onGetValue","propertiesHash","getPropertyValueCoreHandler","geValueFromHash","setPropertyValueCore","setPropertyValueCoreHandler","iteratePropertiesHash","setPropertyValue","oldValue","isTwoValueEquals","arrayInfo","setArray","onPush","propertyValueChanged","clearPropertyValue","onPropertyValueChangedCallback","newValue","sender","arrayChanges","itemValuePropertyChanged","fire","ownerPropertyName","onPropertyValueChanged","doPropertyValueChangedCallback","onPropChangeFunctions","isInternal","notifier","registerFunctionOnPropertyValueChanged","registerFunctionOnPropertiesValueChanged","names","unRegisterFunctionOnPropertyValueChanged","unRegisterFunctionOnPropertiesValueChanged","createCustomLocalizableObj","getLocale","createLocalizableString","useMarkDown","locStr","getLocalizableStringText","defaultStr","setLocalizableStringText","addUsedLocales","locales","AddLocStringToUsedLocales","locs","getLocales","createItemValues","createNewArray","locOwner","notifyArrayChanged","onArrayChanged","createNewArrayCore","createArrayCoreHandler","ensureArray","onRemove","newArray","ArrayChanges","deleteCount","getItemValueType","deletedItems","createItemValue","caseInSensitive","getValueInLowCase","copyObject","copyCssClasses","itemsToAdd","errorOwner","locTextValue","getText","getDefaultText","getErrorCustomText","getErrorType","titleActions","selectedElementInDesignValue","disableDesignActions","CreateDisabledDesignElements","isContentElement","onReadOnlyChanged","stateChangedCallback","updateVisibleErrors","questionCount","answeredQuestionCount","requiredQuestionCount","requiredAnsweredQuestionCount","getProgressInfoByElements","isRequired","childInfo","ScrollElementToTop","elementId","getElementById","scrollIntoView","elemTop","getBoundingClientRect","top","GetFirstNonTextElement","elements","removeSpaces","tEl","nodeName","FocusElement","focus","notifyStateChanged","survey","elementContentVisibilityChanged","isDesignMode","collapse","expand","toggleState","isCollapsed","isExpanded","getTitleActions","expandAction","getTitleComponentName","componentName","renderTitleActions","Instance","getRenderer","setSurveyImpl","surveyImplValue","surveyDataValue","getSurveyData","surveyValue","textProcessorValue","getTextProcessor","onSetData","live","areInvisibleElementsShowing","readOnly","isReadOnly","readOnlyChangedCallback","updateElementCss","getValidName","onNameChanged","getValue","setValue","counter","hasVisibleErrors","updateContainsErrors","getContainsErrors","getElementsInDesign","includeHidden","updateCustomWidgets","onSurveyLoad","onFirstRendering","setVisibleIndex","removeSelfFromList","getProcessedHtml","html","textProcessor","processText","getPage","parent","moveToBase","insertBefore","removeElement","addElement","setPage","hasFunc","fireCallbackChanged","remove","onCallbacksChanged","Event","expression","expressionIsRunning","isCalculated","setOwner","rerunExpression","locCalculation","unlocCalculation","resetCalculation","doCalculation","calculatedValues","runExpressionCore","runExpression","getVariable","setVariable","canRunExpression","getFilteredValues","getFilteredProperties","ensureExpression","runDependentExpressions","expressionRunner","variables","getVariables","calcItem","onRunComplete","addClass","isUnique","CalculatedValue","parser","DOMParser","xml2Json","xmlNode","childNode","childObject","textContent","parseXmlString","xmlString","xmlRoot","parseFromString","lastObjHash","isRunningValue","processedUrl","processedPath","isUsingCacheFromUrl","webserviceEncodeParameters","clearCache","ChoicesRestful","itemsResult","sendingSameRequests","addSameRequest","isUsingCache","objHash","unregisterSameRequests","getResultCallback","getCachedItemsResult","processedText","doEmptyResultCallback","useChangedItemsResults","sendRequest","useCachingForChoicesRestful","serverResult","updateResultCallback","urlText","cacheText","noCacheText","pUrl","processTextEx","pPath","hasAllValuesOnLastRun","onProcessedUrlCallback","parseResponse","parsedResponse","XmlParser","xhr","XMLHttpRequest","open","setRequestHeader","loadingObjHash","onload","onLoad","onError","statusText","responseText","onBeforeSendRequest","beforeSendRequest","send","titleName","imageLinkName","getCustomPropertiesNames","getCustomProperties","getCustomPropertyName","itemValueType","setData","allowEmptyResponse","attachOriginalItems","getData","beforeSendRequestCallback","updatedResult","getResultAfterPath","itemValue","getItemValueCallback","setTitle","setCustomProperties","originalItem","imageLink","getImageLink","callResultCallback","getValueCore","getPropertyBinding","pathes","getPathes","locText","property","EncodeParameters","visibleIf","default","getFirstName","getFirstPropertyName","hasValue","nonNestedObj","getNonNestedObject","getValueInfo","valueInfo","getValueFromPath","ind_name","curValue","getObjectValue","curName","objInArray","getObjInArray","getIntValue","createProp","nameInLow","first","keyName","ind","processValue","isAsyncValue","hasFunctionValue","expressionValue","operand","parseExpression","canRun","hasFunction","hasAsyncFunction","setVariables","runCore","isAsync","runValues","asyncFuncList","addToAsyncList","onAsyncReady","doAsyncFunctionReady","evaluateAsync","isReady","evaluate","doOnComplete","ExpressionRunnerBase","ExpressionRunner","patchExpression","createCondition","ConditionsParser","parserCache","conditionError","ConditionsParserError","defaultBootstrapCss","bodyEmpty","footer","description","logo","logoImage","headerText","navigationButton","completedPage","navigation","complete","preview","edit","progress","progressBar","progressTextUnderBar","progressButtonsContainerCenter","progressButtonsContainer","progressButtonsImageButtonLeft","progressButtonsImageButtonRight","progressButtonsImageButtonHidden","progressButtonsListContainer","progressButtonsList","progressButtonsListElementPassed","progressButtonsListElementCurrent","progressButtonsListElementNonClickable","progressButtonsPageTitle","progressButtonsPageDescription","page","pageTitle","pageDescription","row","question","mainRoot","flowRoot","headerLeft","contentLeft","titleLeftRoot","titleExpandable","descriptionUnderInput","requiredText","comment","required","titleRequired","hasError","formGroup","panel","titleOnError","icon","iconExpanded","locationTop","locationBottom","boolean","control","itemChecked","itemIndeterminate","itemDisabled","switch","slider","label","disabledLabel","materialDecorator","itemDecorator","checkedPath","uncheckedPath","indeterminatePath","checkbox","itemSelectAll","itemNone","itemInline","itemControl","labelChecked","controlLabel","column","ranking","rootMobileMod","rootDragMod","itemContent","itemIndex","itemGhostNode","itemIconContainer","itemIcon","itemIconHoverMod","itemIconFocusMod","itemGhostMod","itemDragMod","dropdown","image","cellText","cellTextSelected","cellLabel","matrixdropdown","cell","headerCell","detailRow","detailRowText","detailCell","detailButton","detailButtonExpanded","detailIcon","detailIconExpanded","detailPanelCell","actionsCell","matrixdynamic","buttonAdd","buttonRemove","iconAdd","iconRemove","emptyRowsSection","emptyRowsText","emptyRowsButton","paneldynamic","progressTop","progressBottom","buttonRemoveRight","buttonPrev","buttonNext","progressContainer","progressText","panelWrapper","panelWrapperInRow","multipletext","itemTitle","radiogroup","clearButton","imagepicker","itemText","rating","selected","minText","maxText","disabled","file","placeholderInput","removeButton","fileInput","removeFile","removeFileSvg","fileDecorator","fileSignBottom","removeButtonBottom","signaturepad","controls","saveData","saving","success","saveAgainButton","buttonExpanded","buttonCollapsed","defaultBootstrapMaterialCss","modernCss","separator","progressTextInBar","asCell","headerTop","headerBottom","titleOnAnswer","itemHover","small","selectWrapper","tableWrapper","rowError","cellTextDisabled","choiceCell","fileSign","noFileChosen","chooseFile","wrapper","surveyCss","currentType","getCss","loc","defaultStandardCss","surveyServiceUrl","loadSurvey","surveyId","dxSurveyService","serviceUrl","getSurveyJsonAndIsCompleted","surveyJson","isCompleted","sendResult","postId","onSendResult","isPartialCompleted","surveyResult","dataStringify","sendFile","onSendFile","formData","append","getResult","resultId","onGetResult","QuestionResult","onIsCompleted","Version","getString","maxSize","getTextSize","minRowCount","runCondition","getMarkdownHtml","getProcessedText","ExpressionItem","serializationProperty","HtmlConditionItem","UrlConditionItem","expected","captureStackTrace","SyntaxError","buildMessage","literalEscape","classEscape","describeExpectation","expectation","escapedParts","inverted","expected1","descriptions","sort","describeExpected","found1","peg$result","peg$FAILED","peg$startRuleFunctions","Expression","peg$parseExpression","peg$startRuleFunction","peg$c0","head","tail","buildBinaryOperand","peg$c1","peg$c2","peg$literalExpectation","peg$c3","peg$c4","peg$c5","peg$c6","peg$c7","peg$c8","peg$c9","peg$c10","peg$c11","peg$c12","peg$c13","peg$c14","peg$c15","peg$c16","peg$c17","peg$c18","peg$c19","peg$c20","peg$c21","peg$c22","peg$c23","peg$c24","peg$c25","peg$c26","peg$c27","peg$c28","peg$c29","peg$c30","peg$c31","peg$c32","peg$c33","peg$c34","peg$c35","peg$c36","peg$c37","peg$c38","peg$c39","peg$c40","peg$c41","peg$c42","peg$c43","peg$c44","peg$c45","peg$c46","peg$c47","peg$c48","peg$c49","peg$c50","peg$c51","peg$c52","peg$c53","peg$c54","peg$c55","peg$c56","peg$c57","peg$c58","peg$c59","peg$c60","peg$c61","peg$c62","peg$c63","peg$c64","peg$c65","peg$c66","peg$c67","peg$c68","peg$c69","peg$c70","peg$c71","peg$c72","peg$c73","peg$c74","peg$c75","peg$c76","peg$c77","peg$c78","peg$c79","peg$c80","peg$c81","peg$c82","peg$c83","peg$c84","expr","peg$c85","peg$c86","peg$c87","peg$c88","peg$c89","peg$c90","peg$c91","op","peg$c92","peg$c93","peg$c94","peg$c95","peg$c96","peg$c97","peg$c98","peg$c99","peg$c100","peg$c101","peg$c102","peg$c103","peg$c104","peg$c105","peg$c106","peg$c107","peg$c108","peg$c109","peg$c110","peg$c111","peg$c112","peg$c113","peg$c114","peg$c115","peg$c116","peg$c117","peg$c118","peg$c119","peg$c120","peg$c121","peg$c122","peg$c123","peg$c124","sequence","peg$c125","peg$c126","peg$c127","flatten","flattenArray","peg$c128","peg$c129","peg$c130","peg$c131","peg$c132","peg$c133","peg$c134","peg$c135","peg$c136","peg$c137","peg$c138","peg$classExpectation","peg$c139","sign","peg$c140","peg$c141","peg$c142","peg$c143","peg$c144","peg$c145","peg$c146","peg$c147","chars","peg$c148","peg$c149","peg$c150","peg$c151","peg$c152","peg$c153","peg$c154","peg$c155","peg$c156","peg$c157","peg$c158","peg$c159","peg$c160","peg$c161","peg$c162","peg$c163","peg$c164","peg$c165","peg$otherExpectation","peg$c166","peg$c167","peg$currPos","peg$savedPos","peg$posDetailsCache","peg$maxFailPos","peg$maxFailExpected","peg$silentFails","peg$resultsCache","startRule","text1","ignoreCase","peg$computePosDetails","details","peg$computeLocation","startPos","endPos","startPosDetails","endPosDetails","peg$fail","peg$buildStructuredError","location1","s0","s4","s5","s6","s7","s8","cached","nextPos","peg$parse_","peg$parseLogicOr","peg$parseOrSign","peg$parseLogicAnd","peg$parseAndSign","peg$parseCompOps","peg$parseComparableOperators","peg$parsePlusMinusOps","peg$parsePlusMinusSigns","peg$parseMulDivOps","peg$parseMulDivSigns","peg$parseBinaryFuncOp","peg$parsePowerSigns","peg$parseFactor","peg$parseBinFunctions","peg$parseLettersAndDigits","peg$parseSequence","peg$parseFunctionOp","peg$parseAtom","peg$parseUnFunctions","peg$parseUnaryFunctionOp","peg$parseArrayOp","peg$parseLogicValue","peg$parseDigits","peg$parseNonZeroDigits","peg$parseNumber","peg$parseArithmeticValue","peg$parseAnyInput","peg$parseConstValue","peg$parseValueCharacters","peg$parseValueInput","peg$parseAnyCharacters","peg$parseLetters","isArithmeticOp","operatorName","isArithmeticValue","consumer","OperandMaker","binaryFunctions","throwInvalidOperatorError","isConjunction","evaluateParam","safeToString","operatorToString","Operand","unaryFunctions","some","getCorrectValue","isBooleanValue","isQuote","isNumeric","variableName","useValueAsItIs","Variable","DisableConversionChar","Const","originalValue","isReadyValue","ArrayOperand","asyncProcessValue","createCopy","returnResult","asynResult","evaluateCore","isAsyncFunction","toOperandString","isSpaceString","opStr","signs","notempty","negate","arithmeticOp","plus","minus","power","greater","less","greaterorequal","lessorequal","notequal","contains","containsCore","notcontains","anyof","allof","isContains","rightArray","rIndex","onContentChanged","getChildrenLayoutType","onCustomHtmlProducing","produceHtml","contentChangedCallback","regEx","startIndex","getQuestionFromText","getHtmlForQuestion","FlowPanelModel","contentElementNamePrefix","getQuestionByName","onGetHtmlForQuestion","getQuestionHtmlId","onAddElement","addElementToContent","renderWidth","onRemoveElement","searchStr","getElementContentText","dragDropMoveElement","targetIndex","insertTextAtCursor","prevName","getSelection","sel","getRangeAt","rangeCount","range","deleteContents","insertNode","createTextNode","getContent","functionHash","isAsyncHash","register","unregister","getAll","classRunner","FunctionFactory","registerFunction","getParamsAsArray","min_max","isMin","calcInArray","getInArrayParams","sumInArray","countInArray","birthDate","today","age","getFullYear","getPageByName","getPanelByName","questions","hasErrors","isDisplayMode","setDate","date1","date2","diffTime","Helpers","isArrayContainsEqual","isArraysEqual","ignoreOrder","xSorted","ySorted","isConvertibleToNumber","toLocaleLowerCase","isDiposed","randomizeArray","getUnbindValue","getMaxLength","maxLength","surveyLength","getNumberByIndex","startIndexStr","postfix","strIndex","hasDigit","isCharDigit","checkLetter","isCharNotLetterAndDigit","newPostfix","typeName","isVisibleValue","onGetTextCallback","txt","onCreating","itemValueSeparator","createArray","ItemValue","setupArray","getItemByValue","getTextOrHtmlByValue","textOrHtml","runConditionsForItems","filteredItems","runner","useItemExpression","runConditionsForItemsCore","runEnabledConditionsForItems","onItemCallBack","choiceValue","hasChanded","itemRunner","getConditionRunner","setIsVisible","setIsEnabled","locale","setLocText","pureText","calculatedText","newText","oldText","jsoObj","valueToJson","hasText","onChanged","funcName","getVisibleConditionRunner","getEnableConditionRunner","visibleConditionRunner","enableIf","enableConditionRunner","metaData","getItemValuesDefaultValue","showMode","ensureLocString","locString","localizable","defaultSource","propertyArray","classInfo","typeValue","choicesValue","baseValue","isRequiredValue","isUniqueValue","readOnlyValue","visibleValue","isLocalizableValue","choicesfunc","dependedProperties","isSerializable","isLightSerializable","isDynamicChoices","alternativeName","classNamePart","baseClassName","defaultValueValue","category","categoryIndex","visibleIndex","nextToProperty","layout","onSetValue","classInfoValue","idValue","JsonObjectProperty","Index","JsonObject","isDescendantOf","isDefaultValue","isLocalizable","jsonConv","getObjType","objType","getClassName","getChoices","choicesCallback","setChoices","valueFunc","getBaseValue","setBaseValue","isLayout","dataListValue","mergeWith","valuesNames","mergableValues","mergeValue","addDependedProperty","getDependedProperties","schemaType","addProperty","CustomPropertiesCollection","removeProperty","parentClassName","parentClasses","createPropertiesCore","createPropertiesInObj","parentClass","createPropertyInObj","locDesc","isArrayProp","creator","parentName","createProperty","propInfo","propertyType","typeIndex","JsonMetadataClass","typeSymbol","getIsPropertyNameRequired","getPropertyName","maxValue","minValue","dataList","onPropertyEditorUpdate","choices","choicesFunc","dependsOn","addDependsOnProperties","addDependsOnProperty","Serializer","requiredSymbol","classes","alternativeNames","childrenClasses","classProperties","classHashProperties","getObjPropertyValue","isObjWrapper","orignalObj","getOriginalObj","getObjPropertyValueCore","setObjPropertyValue","metaDataClass","removeClass","metaClass","findClass","overrideClassCreatore","overrideClassCreator","fillPropertiesForClass","getHashProperties","hashProperties","dynamicProps","getDynamicType","dProp","getDynamicPropertiesByObj","dynamicType","dType","findProperties","propertyNames","getAllPropertiesByName","getAllClasses","createCustomType","customTypeName","customTemplateName","getChildrenClasses","canBeCreated","fillChildrenClasses","getRequiredProperties","addProperties","propertiesInfos","addCustomPropertyCore","propertyInfo","addPropertyToClass","emptyClassPropertiesHash","removePropertyFromClass","childClasses","newName","ancestorClassName","class_","addAlterNativeClassName","generateSchema","$schema","definitions","generateSchemaProperties","schemaProperties","schemaDef","generateSchemaProperty","hasChoices","enum","$ref","generateChemaClass","usedClasses","hasParent","$id","allOff","addPropertyCore","getFullDescription","JsonError","types","JsonMissingTypeError","JsonMissingTypeErrorBase","lightSerializing","metaDataValue","storeDefaults","toJsonObjectCore","jsonObj","toObjectCore","getRequiredError","addNewError","needAddErrors","addDynamicProperties","typePropertyName","positionPropertyName","valueToObj","JsonUnknownPropertyError","propertiesToJson","getDynamicProperties","getDynamicPropertyName","dynamicPropName","dynamicProperties","isValueArray","arrValue","removePos","hasToUseSetValue","valueToArray","newObj","createNewObj","removePosFromObj","checkNewObjectOnErrors","JsonIncorrectTypeError","jsonValue","requiredProperties","JsonRequiredPropertyError","valueRes","addValuesIntoArray","JsonMetadata","onItemSelect","allowSelection","selectedItem","selectItem","isItemDisabled","isItemSelected","getItemClass","useMarkdown","htmlValues","defaultLocaleName","renderedText","calculatedTextValue","calText","setLocaleText","defaultLocale","hasHtmlValue","hasHtml","getHtmlValue","getValuesKeys","getLocaleText","deleteValuesEqualsToDefault","deleteValue","hasNonDefaultText","sharedData","serializeLocalizableStringAsObject","LocalizableString","defaultRenderer","onStrChanged","SerializeAsObject","editableRenderer","useDefault","defLoc","arabicSurveyStrings","pagePrevText","pageNextText","completeText","previewText","editText","startSurveyText","otherItemText","noneItemText","selectAllItemText","panelDynamicProgressText","questionsProgressText","emptySurvey","completingSurvey","completingSurveyBefore","loadingSurvey","optionsCaption","requiredError","requiredErrorInPanel","requiredInAllRowsError","numericError","textMinLength","textMaxLength","textMinMaxLength","minRowCountError","minSelectError","maxSelectError","numericMinMax","numericMin","numericMax","invalidEmail","invalidExpression","urlRequestError","urlGetChoicesError","exceedMaxSize","otherRequiredError","uploadingFile","loadingFile","confirmDelete","keyDuplicationError","addColumn","addRow","removeRow","addPanel","removePanel","choices_Item","matrix_column","matrix_row","savingData","savingDataError","savingDataSuccess","timerMin","timerSec","timerSpentAll","timerSpentPage","timerSpentSurvey","timerLimitAll","timerLimitPage","timerLimitSurvey","cleanCaption","clearCaption","chooseFileCaption","removeFileCaption","booleanCheckedLabel","booleanUncheckedLabel","confirmRemoveFile","confirmRemoveAllFiles","questionTitlePatternText","localeNames","bulgarianStrings","catalanSurveyStrings","choices_firstItem","choices_secondItem","choices_thirdItem","croatianStrings","modalCancelButtonText","modalApplyButtonText","czechSurveyStrings","danishSurveyStrings","dutchSurveyStrings","englishStrings","minError","maxError","multipletext_itemname","estonianSurveyStrings","finnishSurveyStrings","frenchSurveyStrings","georgianSurveyStrings","otherRequiredEror","germanSurveyStrings","greekSurveyStrings","hebrewSurveyStrings","hindiStrings","noneItemTex","hungarianSurveyStrings","icelandicSurveyStrings","indonesianStrings","italianSurveyStrings","japaneseSurveyStrings","koreanStrings","latvianSurveyStrings","lithuaniaSurveyStrings","macedonianSurveyStrings","norwegianSurveyStrings","persianSurveyStrings","polishSurveyStrings","portugueseBrSurveyStrings","portugueseSurveyStrings","romanianSurveyStrings","russianSurveyStrings","simplifiedChineseSurveyStrings","spanishSurveyStrings","swahiliStrings","swedishSurveyStrings","tajikSurveyStrings","thaiStrings","traditionalChineseSurveyStrings","turkishSurveyStrings","ukrainianSurveyStrings","welshSurveyStrings","generatedVisibleRows","generatedTotalRow","moveRowByIndex","rows","movableRow","filteredRows","filteredColumns","columns","createColumnValues","afterRenderQuestionElement","allowRowsDragAndDrop","initSortable","beforeDestroyQuestionElement","sortableInst","newRows","processRowsOnSet","filterItems","getVisibleRows","runItemsCondition","onRowsChanged","getDataFilteredValues","getDataFilteredProperties","onColumnsChanged","fireCallback","visibleRowsChangedCallback","shouldRunColumnExpression","hasRowsAsItems","oldVisibleRows","hasChanges","runConditionsForRows","hasColumnsChanged","runConditionsForColumns","isClearValueOnHidden","clearIncorrectValues","restoreNewVisibleRowsValues","clearGeneratedRows","showInvisibile","rowsVisibleIf","hasChanged","columnsVisibleIf","newVal","isChanged","clearInvisibleValuesInRows","newData","domNode","animation","forceFallback","delay","delayOnTouchOnly","handle","onEnd","oldDraggableIndex","newDraggableIndex","hasShownValue","isRandomizing","timeSpent","locTitle","pages","wasShown","isPageStarted","calcCssClasses","updatePageCssClasses","getIsPageVisible","exceptionQuestion","isStarted","onNumChanged","setWasShown","areQuestionsRandomized","randomizeElements","oldElements","newElements","questionsOrder","scrollToTop","scrollElementToTop","getPanels","visibleOnly","includingDesignTime","addPanelsIntoList","onVisibleChanged","pageVisibilityChanged","dragDropStart","nestedPanelDepth","dragDropInfo","dragDropMoveTo","destination","isBottom","isEdge","correctDragDropInfo","dragDropCanDropTagert","dragDropCanDropSource","dragDropAllowFromSurvey","dragDropFindRow","updateRowsRemoveElementFromRow","dragDropAddTarget","getUpdatedPageTitleActions","isPanel","isLayoutTypeSupported","insertAfter","isPage","dragAndDropAllow","dragDropFinish","isCancel","dragDropGetElementIndex","prevRow","prevElement","dragDropCanDropCore","dragDropCanDropNotNext","dragDropIsSameElement","pnl","containsElement","getElementByName","srcIndex","destIndex","el1","el2","ensureRowsVisibility","progressBarType","PageModel","_scrollableParent","_updateVisibility","QuestionRowModel","getRowId","isNeedRender","isLazyRendering","rowCounter","startLazyRendering","rowContainerDiv","findScrollableContainer","scrollHeight","clientHeight","documentElement","isRowContainerDivVisible","stopLazyRendering","ensureVisibility","updateVisible","calcVisible","setWidth","visCount","visibleElements","preSetWidthElements","setElementMaxMinWidth","getElementWidth","getRenderedWidthFromWidth","rightIndent","getRenderedCalcWidth","minWidth","maxWidth","calcWidthEl","isQuestionsReady","questionsValue","elementsValue","PanelModelBase","getPanelId","panelCounter","markQuestionListDirty","showPageTitles","allowShowEmptyTitleInDesignMode","getUpdatedPanelTitleActions","allowShowEmptyDescriptionInDesignMode","questionTitlePattern","titlePattern","getSurveyMarkdownHtml","getRendererForString","cssClassesValue","updatePanelCssClasses","getPanel","getLayoutType","layoutType","qs","getQuestionByValueName","getValueName","getComment","getDisplayValue","keysAsText","getComments","comments","clearErrors","focusOnFirstError","rec","focuseOnFirstError","firstErrorQuestion","hasErrorsCore","hasErrorsInPanels","hasRequiredError","customError","validatePanel","beforeSettingPanelErrors","visQuestions","addQuestionsToList","requiredErrorText","containsErrors","updateElementVisibility","getFirstQuestionToFocus","withError","hasInput","currentErrorCount","focusFirstQuestion","focusFirstErrorQuestion","addElementsToList","addElementsToListCore","currentPage","getQuestionTitleLocation","onGetQuestionTitleLocation","questionTitleLocation","getStartIndex","getQuestionStartIndex","questionStartIndex","childVisibilityChanged","createRow","onElementVisibilityChanged","buildRows","surveyImpl","updateRowsOnElementAdded","panelAdded","questionAdded","addElementCallback","onElementStartWithNewLineChanged","updateRowsOnElementRemoved","panelRemoved","questionRemoved","removeElementCallback","updateRowsVisibility","canBuildRows","isNewRow","startWithNewLine","DragDropInfo","dragDropAddTargetToRow","findRowByElement","elIndex","elementWidthChanged","getRenderedTitle","isClearValueOnHiddenContainer","updateValueWithDefaults","clearValue","beforeSetVisibleIndex","panelStartIndex","getPanelStartIndex","panelIndex","isContinueNumbering","isParentReadOnly","isSurveyReadOnly","canAddElement","insertElementAfter","after","insertElementBefore","before","addQuestion","addNewQuestion","questionType","createQuestion","addNewPanel","createNewPanel","PanelModel","removeQuestion","runVisibleCondition","runEnableCondition","runRequiredCondition","conditionRunner","requiredIf","onAnyValueChanged","els","findElement","dragDropAddTargetToEmptyPanel","destRow","dragDropAddTargetToNewRow","dragDropAddTargetToExistingRow","dragDropAddTargetToEmptyPanelCore","prevRowIndex","srcRow","targetRow","onIndentChanged","moveTo","notifySurveyOnVisibilityChanged","setNo","showNumber","showQuestionNumbers","panelVisibilityChanged","innerPaddingLeft","getIndentSize","innerIndent","paddingLeft","paddingRight","clearOnDeletingContainer","cancelPreview","hasEditButton","cancelPreviewByPage","contentComponentName","contentComponentData","verticalPosition","horizontalPosition","showPointer","isModal","onCancel","onApply","onHide","onShow","cssClass","onVisibilityChanged","model","targetElement","onIsVisibleChanged","popupDirection","setupModalPopup","setupModelessPopup","background","offsetWidth","offsetHeight","popupContainer","calculatePopupDirection","height","calculatePosition","pointerTarget","calculatePointerTarget","clickOutside","cancel","initializePopupContainer","appendChild","destroyPopupContainer","isCustomWidgetRequested","customWidgetData","onReadyChanged","parentQuestionValue","isRunningValidatorsValue","isValueChangedInSurvey","allowNotifyValueChanged","Question","getQuestionId","validator","locTitleValue","getUpdatedQuestionTitle","locProcessedTitle","updateQuestionCss","initCommentFromSurvey","questionCounter","isReadOnlyRenderDiv","readOnlyCommentRenderMode","onGetSurvey","oldValueName","onValueNameChanged","questionRenamed","initDataFromSurvey","choicesLoaded","notifySurveyVisibilityChanged","runConditions","areEmptyElementsHidden","questionCreated","onParentChanged","setParentQuestion","getTitleLocation","isVisibilityChanged","titleLocation","questionVisibilityChanged","isFlowLayout","getTitleLocationCore","isAllowTitleLeft","hasTitle","questionErrorLocation","getDescriptionLocation","descriptionLocation","questionDescriptionLocation","getAllErrors","getErrorByType","errorType","customWidgetValue","updateCustomWidget","getCustomWidget","hasSingleInput","afterRenderQuestionInput","afterRender","afterRenderQuestion","afterRenderQuestionCallback","renderedHtml","updateElementCssCore","updateCssClasses","updateQuestionCssClasses","ensureElementCss","setCssRoot","getCssRoot","cssClasses","hasTitleOnLeft","setCssHeader","getCssHeader","hasTitleOnTop","hasTitleOnBottom","setCssContent","getCssContent","setCssTitle","getCssTitle","isAnswered","setCssError","getCssError","errorLocation","reNew","objCss","getCssType","getFirstErrorInputElementId","getFirstInputElementId","focusCallback","getOthersMaxLength","maxOthersLength","inputId","getProcessedTextValue","textValue","isExists","TextPreprocessorValuesMap","supportComment","supportOther","hasComment","hasOther","hasOtherChanged","runVisibleIfCondition","runEnableIfCondition","runRequiredIfCondition","conditionEnabelRunner","conditionRequiredRunner","hideNumber","no","getUpdatedQuestionNo","surveyLoadCallback","onSurveyValueChanged","updateValueFromSurvey","requireUpdateCommentValue","updateCommentFromSurvey","commentChangedCallback","setNewValue","valueToDataCallback","unbindValue","createValueCopy","isEditingSurveyElement","canClearValueAsInvisible","isParentVisible","hasVisibleQuestionByValueName","clearValueIfInvisible","customWidget","getDisplayValueCore","keyAsText","isValueExpression","defaultValueExpression","convertDefaultValue","getPlainData","includeEmpty","includeQuestionTypes","questionPlainData","displayValue","isNode","calculations","calculation","isComment","correctAnswer","getQuizQuestionCount","getCorrectAnswerCount","isAnswerCorrect","correctAnswerCount","quizQuestionCount","isDefaultValueEmpty","setDefaultValue","getQuestionFromArray","getDefaultValue","setValueAndRunExpression","setFunc","toISOString","getQuestionComment","setQuestionComment","questionComment","setNewComment","updateIsAnswered","getIsAnswered","getValidators","validators","getSupportedValidators","classValidators","supportedValidators","addSupportedValidators","addConditionObjectsByContext","processedTitle","getConditionJson","operator","oldHasErrors","checkForErrors","isOnValueChanged","beforeSettingQuestionErrors","addError","newError","removeError","qErrors","collectErrors","onCheckForErrors","canRunValidators","runValidators","fireSurveyValidation","validateValueCallback","validateQuestion","getIsRunningValidators","validatorRunner","onAsyncCompleted","doOnAsyncCompleted","raiseOnCompletedAsyncValidators","onCompletedAsyncValidators","isRunningValidators","oldAnswered","setNewValueInData","onValueChanged","isTextValue","isUpdateValueTextOnTyping","getDataLocNotification","isInputTextUpdate","isSurveyInputTextUpdate","valueToData","setValueCore","questionValue","setQuestionValue","canSetValueToSurvey","valueForSurvey","valueFromData","setComment","valueFromDataCallback","valueChangedCallback","setQuestionVisibleIndexForHiddenTitle","setQuestionVisibleIndexForHiddenNumber","supportGoNextPageAutomatic","supportGoNextPageError","clearUnusedValues","useDisplayValuesInTitle","getComponentName","getRendererByQuestion","getUpdatedQuestionTitleActions","isDefaultRendering","renderAs","getValidatorTitle","getAllValues","widgetJson","isFirstRender","htmlTemplate","onLocaleChangedEvent","willUnmount","isFit","isLibraryLoaded","activatedByChanged","activatedBy","widgetIsLoaded","isDefaultRender","pdfQuestionType","pdfRender","widgetsValues","widgetsActivatedBy","onCustomWidgetAdded","addCustomWidget","widgets","QuestionCustomWidget","getActivatedBy","widgetName","setActivatedBy","widget","getCustomWidgetByName","CustomWidgetCollection","otherItemValue","dependedQuestions","noneItemValue","isSettingDefaultValue","isSettingComment","isRunningChoices","isFirstLoadChoicesFromUrl","isUpdatingChoicesDependedQuestions","onVisibleChoicesChanged","updateVisibilityBasedOnChoices","createRestful","choicesByUrl","locOtherText","onLoadChoicesFromUrl","updateChoicesFromServer","choicesFromQuestion","removeFromDependedQuestion","getQuestionWithChoices","isOtherSelected","choicesFromUrl","visibleChoices","getHasOther","renderedValue","runItemsEnableCondition","hasUnknownValue","getIsMultipleValue","setConditionalChoicesRunner","filteredChoicesValue","activeChoices","setConditionalEnableChoicesRunner","conditionChoicesEnableIfRunner","onEnableItemCallBack","clearDisabledValues","onAfterRunItemsEnableCondition","choicesVisibleIf","conditionChoicesVisibleIfRunner","choicesEnableIf","getFilteredChoices","otherItem","rendredValueToDataCore","commentValue","getStoreOthersAsComment","isRenderedValueSetting","rendredValueToData","rendredValueFromData","isOtherSel","prevCommentValue","oldComment","isRunning","isWaitingForParameters","cachedValueForUrlRequests","choiceitem","renderedValueFromDataCore","includeOther","hasNone","noneItem","isValueDisabled","addIntoDependedQuestion","choicesOrder","updateVisibleChoices","calcValue","calcVisibleChoices","canUseFilteredChoices","sortVisibleChoices","addToVisibleChoices","dataValue","choice","choiceDataItem","getChoicesDisplayValue","isOther","otherQuestionActiveChoices","getChoicesFromQuestion","choicesFromQuestionMode","isSelected","itemsSelected","otherErrorText","runChoicesByUrl","storeOthersAsComment","newComment","getCommentFromValue","setOtherValueIntoValue","processor","isChoicesLoaded","disableOnGettingChoicesFromWeb","enableOnLoadingChoices","newChoices","checkCachedValuesOnExisting","cachedValues","createCachedValueForUrlRequests","updateCachedValueForUrlRequests","checkOnExisting","updatedValue","updateChoicesDependedQuestions","visibleChoicesChangedCallback","hideIfChoicesEmpty","filteredChoices","order","sortArray","mult","keepIncorrectValues","questionCountByValueName","clearIncorrectValuesCallback","clearIncorrectValuesCore","clearValueOnDisableItems","clearDisabledValuesCore","canClearValueAnUnknow","getColumnClass","columnClass","hasColumns","colCount","getLabelClass","labelClass","getControlLabelClass","controlLabelClass","controlLabelChecked","showItemsInOrder","leftElementsCount","oldIsReady","colCountChangedCallback","getItemIndex","QuestionSelectBase","locLabelFalse","locLabelTrue","getValueTrue","getValueFalse","locLabel","valueTrue","valueFalse","checkedValue","QuestionBooleanModel","registerQuestion","selectAllItemValue","invisibleOldValues","isChangingValueOnClearIncorrect","selectAllItem","allItemCount","hasSelectAll","selectedCount","selectAll","toggleSelectAll","isAllSelected","shouldCheckMaxSelectedChoices","maxSelectedChoices","isChecked","isDisabled","allowHover","isSelectAll","isNone","itemClass","prevNoneIndex","noneIndexInArray","newNoneIndex","getFirstUnknownIndex","noneValue","valStr","clearIncorrectAndDisabledValues","clearDisabled","restoredValues","restoreValuesFromInvisible","isUnkown","visItems","setDefaultValueWithOthers","QuestionCheckboxModel","DefaultChoices","maxTextLength","textUpdateMode","QuestionCommentModel","ComponentCollection","onInit","onCreated","onLoaded","onAfterRender","htmlElement","onAfterRenderContentElement","elementsJSON","createElements","customQuestionValues","getCustomQuestionByName","customQuestion","ComponentQuestionJSON","onAddingJson","isComposite","questionJSON","createCompositeModel","createCustomModel","onCreateComposite","QuestionCompositeModel","onCreateCustom","QuestionCustomModel","createWrapper","getElement","initElement","locNotification","convertDataName","convertDataValue","questionWrapper","contentQuestion","qType","QuestionCustomModelBase","composite","contentPanel","settingNewValue","textProcessing","QuestionCompositeTextProcessor","ItemVariableName","createPanel","setAfterRenderCallbacks","setIsContentElement","oldComposite","prefixName","prefixText","minMaxChoices","choicesMax","choicesMin","choicesStep","QuestionDropdownModel","QuestionEmptyModel","getValueAsStr","displayStyle","toLocaleDateString","currency","useGrouping","maximumFractionDigits","minimumFractionDigits","toLocaleString","getCurrecyCodes","QuestionExpressionModel","isUploading","onStateChanged","previewValue","currentState","clearFiles","getConfirmRemoveMessage","fileName","doneCallback","loadFiles","files","allFilesOk","stateChanged","loadFilesProc","storeDataAsText","fileReader","FileReader","readAsDataURL","uploadFiles","allowMultiple","canPreviewImage","fileItem","allowImagesPreview","isFileImage","showPreview","newValues","downloadFile","waitForUpload","errorLength","imagePrefix","subStr","QuestionFileModel","ignoreHtmlProgressing","processHtml","QuestionHtmlModel","showLabel","QuestionImageModel","multiSelect","convertValToArrayForMultSelect","ImageItemValue","QuestionImagePickerModel","fullName","cellClick","onMatrixRowChanged","getCorrectedRowValue","rowClass","rowErrorClass","cellsOwner","setCellText","getCellRowColumnValue","createString","setDefaultCellText","matrixDefaultRowName","getCellLocText","getDefaultCellLocText","getCellDisplayLocText","getCellText","getDefaultCellText","getCellDisplayText","getRows","getColumns","resRow","rowValues","col","isRowChanging","emptyLocalizableString","cellsValue","MatrixCells","updateVisibilityBasedOnRows","rowsOrder","visibleColumns","cellDisabledClass","hasCellText","cellSelectedClass","itemHoverClass","cellClass","createMatrixRow","sortVisibleRows","cells","hasValuesInAllRows","hasErrorInRows","isAllRowRequired","visibleRows","MatrixRowModel","onMatrixRowCreated","rowVal","newKey","rowName","rowDataItem","hasRows","hideIfRowsEmpty","QuestionMatrixModel","DefaultRows","DefaultColums","buildCells","MatrixDropdownRowModel","resetRenderedTable","QuestionMatrixDropdownModel","getFooterText","locTotalText","getRowTitleWidth","rowTitleWidth","rowValue","displayRowValue","getRowDisplayValue","hasContext","prefixTitle","fullTitle","generateRows","addDefaultColumns","onUpdateSelectBaseCellQuestion","cellQuestion","matrixDropdownColumnTypes","onCellQuestionUpdate","locOptionsCaption","columnColCount","colOwnerValue","indexValue","_isVisible","_hasVisibleCell","doShowInMultipleColumnsChanged","updateTemplateQuestion","getColumnTypes","templateQuestion","getClassNameProperty","colOwner","calcCellQuestionType","setIndex","onColumnCellTypeChanged","templateQuestionValue","locRequiredErrorText","cellType","showInMultipleColumns","isSupportMultipleColumns","totalType","totalExpression","createCellQuestion","createNewQuestion","callOnCellQuestionUpdate","updateCellQuestion","onUpdateJson","setQuestionProperties","qDefinition","defaultCellTypeChanged","getCellType","matrixDefaultCellType","prevCellType","curCellType","removeProperties","onColumnPropertyChanged","onShowInMultipleColumnsChanged","propName","validateCell","getTotalExpression","totalFormat","totalCurrency","totalDisplayStyle","totalMaximumFractionDigits","totalMinimumFractionDigits","funName","MatrixDropdownCell","getValues","onCustomProcessText","MatrixDropdownRowModelBase","IndexVariableName","rowIndex","RowValueVariableName","isSettingValue","detailPanelValue","isCreatingDetailPanel","subscribeToChanges","textPreProcessor","MatrixDropdownRowTextProcessor","RowVariableName","showHideDetailPanelClick","showHideDetailPanel","getId","idCounter","hasDetailPanel","detailPanel","getIsDetailPanelShowing","setIsDetailPanelShowing","isDetailPanelShowing","hideDetailPanel","showDetailPanel","ensureDetailPanel","destroyPanel","hasPanel","createRowDetailPanel","getRowValue","getRowIndex","allValues","OwnerVariableName","getDataValueCore","valuesHash","newColumnValue","changedName","changedValue","changedQuestion","changingValue","onRowChanging","isValidateOnValueChanging","hasQuestonError","onRowChanged","getCellByColumnName","checkIfValueInRowDuplicated","getQuestionByColumn","columnName","getQuestionByColumnName","detailQuestions","getQuestionsByName","getSharedQuestionByName","qVal","matrixTotalValuePostFix","updateCellQuestionOnColumnChanged","updateCellOnColumnChanged","onQuestionReadOnlyChanged","parentIsReadOnly","colIndex","panelHasError","hideErroredPanel","isSingleDetailPanel","createCell","cellValue","getCellValue","commentKey","editingObj","editingObjValue","onEditingObjPropertyChanged","updateOnSetValue","MatrixDropdownTotalCell","onTotalValueChanged","prevValue","colSpans","isActionsCell","QuestionMatrixDropdownRenderedCell","showErrorOnCore","getShowErrorLocation","isChoice","isFirstChoice","hasQuestion","hideCaption","choiceIndex","cssError","isShowInMultipleColumns","calculateFinalClassName","matrixCssClasses","questionCss","isDetailRow","QuestionMatrixDropdownRenderedRow","hasActionCellInRowsValues","build","hasFooter","isColumnLayoutHorizontal","footerRow","hasRemoveRowsValue","isRequireReset","hasRemoveRows","canRemoveRows","headerRowValue","footerRowValue","buildRowsActions","buildHeader","buildFooter","updateShowTableAndAddRow","showTable","getShowColumnsIfEmpty","showAddRow","canAddRow","showAddRowOnTop","showAddRowOnBottom","getAddRowLocation","columnLayout","onAddedRow","getRenderedDataRowCount","addHorizontalRow","showHeader","onRemovedRow","getRenderedRowIndex","removeCount","onDetailPanelChangeVisibility","isShowing","panelRowIndex","createDetailPanelRow","rowsActions","buildRowActions","isShown","hasRowText","hasActionCellInRows","headerRow","createHeaderCell","hasVisibleCell","createMutlipleColumnsHeader","createTextCell","showFooter","visibleTotalRow","createMutlipleColumnsFooter","createEditCell","buildHorizontalRows","buildVerticalRows","getRowActions","canRemoveRow","renderedRows","useAsHeader","renderedRow","createHorizontalRow","getRowActionsCell","rowActions","actions","setDefaultRowActions","getUpdatedMatrixRowActions","addRowActionsCell","renderedCell","setHeaderCellWidth","createMutlipleEditCells","buttonCell","createMutlipleVerticalRows","createVerticalRow","createEndVerticalActionRow","getMultipleColumnChoices","lTitle","hCell","setRequriedToHeaderCell","rCell","hasTotal","rRow","isFooter","choiceItem","setHeaderCell","getColumnWidth","createRemoveRowCell","isRemoveRow","lockResetRenderedTable","isDoingonAnyValueChanged","createNewDetailPanel","selectedElementInDesign","newColumns","updateColumnsIndexes","clearRowsAndResetRenderedTable","updateColumnsCellType","colNames","onStartRowAddingRemoving","onEndRowAdding","renderedTable","onEndRowRemoving","columnsChangedCallback","renderedTableValue","onRenderedTableResetCallback","createRenderedTable","onRenderedTableCreatedCallback","QuestionMatrixDropdownRenderedTable","onCellCreatedCallback","matrixCellCreated","cols","getRequiredText","updateHasFooter","setShowColumnsIfEmpty","getColumnByName","prevTotalValue","totalValue","runCellsCondition","runTotalsCondition","getRowConditionValues","checkColumnsVisibility","isColumnVisibilityChanged","curVis","hasVisCell","totalRow","getColumnName","columnMinWidth","MatrixDropdownColumn","updateValueOnRowsGeneration","createNewValue","rValue","getNewValueOnRowChanged","getVisibleTotalRow","generateTotalRow","visRows","getRowValueCore","checkedRow","addDuplicationError","setRowValue","MatrixDropdownTotalRowModel","nullOnEmpty","isMatrixValueEmpty","getRowObj","getCellQuestions","onBeforeValueChanged","onSetQuestionValue","checkForAnswersOrErrors","predicate","errosInRows","isDuplicated","isValueDuplicated","detailPanelMode","getUniqueColumns","isValueInColumnDuplicated","keyValues","isValueDuplicatedInRow","getFirstCellQuestion","createQuestionCore","deleteRowValue","getOnCellValueChangedOptions","getCellQuestion","colName","onCellValueChanged","onCellValueChangedCallback","matrixCellValueChanged","matrixCellValidate","oldRowValue","matrixCellValueChanging","newRowValue","isDeletingValue","rowObj","columnValue","combine","detailElements","onHasDetailPanelCallback","updateDetailPanelButtonCss","getDetailPanelButtonCss","getDetailPanelIconCss","onCreateDetailPanelCallback","getQuestionByValueNameFromArray","isSett","QuestionMatrixDropdownModelBase","initialRowCount","setRowCountValueFromData","defaultRowValue","rowCount","rowCountValue","matrixMaximumRowCount","newRow","getValueForNewRow","onGetValueForNewRowCallBack","maxRowCount","allowAddRows","allowRemoveRows","matrixAllowRemoveRow","matrixBeforeRowAdded","addRowCore","prevRowCount","getDefaultRowValue","matrixRowAdded","isRowAdded","defaultValueFromLastRow","removeRowUI","isRequireConfirmOnRowDelete","confirmDeleteText","removeRowCore","matrixRowRemoved","defaultLocName","addRowLocation","hideColumnsIfEmpty","addColumnIntoaddConditionObjectsByContext","matrixMaxRowCountInCondition","hasErrorInMinRows","setRowCount","getRowValueByIndex","MatrixDynamicRowModel","newRowCount","QuestionMatrixDynamicModel","editorValue","createEditor","editor","questionTitleTemplateCallback","getItemDefaultValue","inputType","placeHolder","locPlaceHolder","getMultipleTextValue","setMultipleTextValue","isMultipleItemValueChanging","updateItemsSize","addDefaultItems","DefaultMutlipleTextItems","addItem","editorsOnSurveyLoad","performForEveryEditor","updateInputSize","createTextItem","getItemByName","onItemValueChanged","MultipleTextItemModel","getIsRequiredText","QuestionMultipleTextModel","panelItem","getSharedQuestionFromArray","QuestionPanelDynamicItem","ParentItemVariableName","parentQuestion","QuestionPanelDynamicItemTextProcessor","returnDisplayValue","panelValue","setPanelItemData","getPanelItemData","surveyValues","getRootData","loadingPanelCount","currentIndexValue","isAddingNewPanels","templateValue","createAndSetupNewPanelObject","addOnPropertyChangedCallback","rebuildPanels","setPanelsState","setTemplatePanelSurveyImpl","setPanelsSurveyImpl","assignOnPropertyChangedToTemplate","onTemplateElementPropertyChanged","panels","locDescription","isRenderModeList","panelCount","currentIndexChangedCallback","currentIndex","renderMode","showRangeInProgress","templateElements","prepareValueForPanelCreating","addingNewPanelsValue","isNewPanelsValueChanged","setValueAfterPanelsCreating","isValueChangingInternally","panelsState","setValueBasedOnPanelCount","reRunCondition","panelCountChangedCallback","QuestionPanelDynamicTemplateSurveyImpl","templateTitle","minPanelCount","maxPanelCount","panelMaximumPanelCount","renderModeChangedCallback","setPanelVisibleIndex","showIndex","allowAddPanel","allowRemovePanel","defaultPanelValue","isRowEmpty","addPanelUI","canAddPanel","newPanel","hasModified","copyValue","defaultValueFromLastPanel","dynamicPanelAdded","removePanelUI","canRemovePanel","goToNextPanel","currentPanel","goToPrevPanel","getPanelIndex","dynamicPanelRemoved","clearIncorrectValuesInPanel","iscorrectValueWithPostPrefix","postPrefix","panelObjs","questionName","runPanelsCondition","panelValues","hasKeysDuplicated","updatePanelsContainsErrors","changingValueQuestion","errosInPanels","hasErrorInPanels","visibleQuestions","getPanelDisplayValue","setOnCompleteAsyncInPanel","pnlError","createNewPanelObject","getTemplateQuestionTitleLocation","templateTitleLocation","setPanelCountBasedOnValue","newPanelCount","panelUpdateValueFromSurvey","panelSurveyValueChanged","qValue","isSetPanelItemData","dynamicPanelItemValueChanged","panelDataItem","rangeMax","getPanelWrapperCss","panelRemoveButtonLocation","getPanelRemoveButtonCss","QuestionPanelDynamicModel","showClearButton","QuestionRadiogroupModel","handleKeydown","querySelectorAll","handleArrowUp","handleArrowDown","moveArrayItemBack","syncNumbers","setValueFromUI","focusItem","moveArrayItemForward","textNode","innerText","visibleChoice","indexNode","setGhostText","indexNodes","isIndeterminate","mergeValueAndVisibleChoices","rankingChoices","ghostClass","dragClass","onStart","ghost","opacity","oldIndex","onChange","newIndex","QuestionRankingModel","rateValuesChangedCallback","locMinRateDescriptionValue","locMaxRateDescriptionValue","rateMax","rateStep","rateMin","visibleRateValues","rateValues","step","ratingMaximumRateValueCount","correctValue","fr","QuestionRatingModel","updateValue","signaturePad","dataFormat","initSignaturePad","destroySignaturePad","getElementsByTagName","buttonEl","backgroundColor","onclick","allowClear","display","penColor","onBegin","updateValueHandler","getContext","ratio","devicePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","oldWidth","oldHeight","scale","resizeCanvas","propertyChangedHandler","QuestionSignaturePadModel","locDataListValue","setRenderedMinMax","minValueExpression","maxValueExpression","isTextInput","minMaxTypes","isValueLessMin","getMinMaxErrorText","minErrorText","getCalculatedMinMax","renderedMin","isValueGreaterMax","maxErrorText","renderedMax","isMinMaxType","errorText","minMax","isDateInputType","minDate","maxDate","locDataList","correctValueType","propertyEditor","QuestionTextModel","creatorHash","itemName","questionCreator","unregisterElement","elementType","getAllTypes","QuestionFactory","registerElement","elementCreator","removeFromSerializer","ElementFactory","QuestionNonValue","renderElement","handleOnClick","checkRef","handleOnChange","viewBox","points","locDisplayLabel","SurveyQuestionBooleanCheckbox","registerRenderer","handleOnLabelClick","handleOnSwitchClick","questionBase","preventDefaults","doCheck","isRightClick","nativeEvent","offsetX","defaultView","getComputedStyle","direction","updateDomElement","indeterminate","renderLocString","SurveyQuestionBoolean","renderButtonContent","buttonContent","SurveyActionBarItemDropdown","getStateElement","itemComponent","renderInnerButton","renderText","svgIcon","titleClass","SurveyActionBarItem","SurveyActionBarSeparator","adaptiveElement","sourceItems","rootRef","createRef","manager","getItemSizes","widths","actionContainer","updateVisibleItems","setInterval","clearInterval","hasItems","renderItems","SurveyActionBar","isNeedFocus","expandCollapse","iconCss","ariaExpanded","ariaControls","contentId","tabIndex","onKeyUp","keyCode","changeExpanded","doAfterRender","clickTitleFunction","DefaultTitle","onMouseDown","listProps","List","handleOnShowHideClick","detailPanelId","SurveyQuestionMatrixDetailButton","handleOnRowRemoveClick","removeRowText","SurveyQuestionMatrixDynamicRemoveButton","containerRef","popup","parentElement","PopupContainer","Popup","clickInside","ev","renderContainer","pointer","renderPointer","renderHeader","renderContent","renderFooter","contentComponent","cancelButtonText","applyButtonText","styleClass","createPortal","svgIconRef","SvgIcon","titleContent","TitleActions","titleKeyIndex","titleKeyPrefix","getTitleKey","spans","renderTitleSpans","getSpaceSpan","isRequireTextOnStart","renderRequireText","questionNumber","isRequireTextBeforeTitle","isRequireTextAfterTitle","widgetRef","_afterRender","componentDidUpdate","prevProps","prevState","canRender","createQuestionElement","htmlValue","__html","dangerouslySetInnerHTML","dragDropTD","xmlns","isElementRegistered","ReactElementFactory","flowPanel","renderQuestion","getQuestion","renderRows","renderHtml","getNodeIndex","renderedIndex","doc","renderParentNode","renderNodes","domNodes","nodes","renderNode","getStyle","nodeType","fontWeight","fontStyle","textDecoration","getChildDomNodes","hasTextChildNodesOnly","questionBody","childNodes","SurveyFlowPanel","objectFit","imageFit","contentMode","alt","imageWidth","imageHeight","SurveyQuestionImage","currValue","getItems","renderItem","marginLeft","SurveyQuestionImagePicker","getPanelBase","panelBase","renderTitle","renderDescription","_showTitle","_showDescription","renderedRowsCache","modifyNonStateProps","nonStateProps","removeAttribute","afterRenderPanel","afterRenderPage","changedStatePropName","questionRows","hasBeenExpanded","handleEditClick","SurveyPanel","rootStyle","bottom","renderBottom","titleComponent","titleStyle","cssNavigationEdit","previousJSON","isCurrentPageChanged","onCurrentPageChangedHandler","handleTryAgainClick","createSurvey","updateSurvey","Survey","applyTheme","shouldComponentUpdate","nextProps","isModelJSONChanged","scrollToTopOnPageChange","doAfterRenderSurvey","startTimerFromUI","stopTimer","onCurrentPageChanged","doRender","renderResult","renderCompleted","renderCompletedBefore","renderLoading","renderStartPage","renderSurvey","customHeader","hasLogo","onSubmit","doComplete","showCompletedPage","completedState","tryAgainButton","btnText","getLocString","completedStateText","processedCompletedHtml","processedCompletedBeforeHtml","processedLoadingHtml","startedPage","renderPage","pageId","renderNavigation","topProgress","isShowProgressBarOnTop","renderProgress","bottomProgress","isShowProgressBarOnBottom","renderEmptySurvey","renderTimerPanel","titleMaxWidth","logoFit","imageBefore","imageAfter","isLogoBefore","logoClassNames","locLogo","logoWidth","logoHeight","isLogoAfter","isTimerPanelShowingOnTop","isTimerPanelShowingOnBottom","isTop","navPosition","isNavigationButtonsShowing","emptySurveyText","newProps","mergeCss","setSurveyEvents","oldProps","mergeValues","renderCallback","modelChanged","onPartialSend","renderError","mouseDownPage","handlePrevClick","handleNextClick","handleNextMouseDown","handleMouseDown","handleCompleteClick","handlePreviewClick","handleStartClick","SurveyNavigation","prevPage","nextPage","navigationMouseDown","completeLastPage","isStartedPage","prevButton","isFirstPage","isShowPrevButton","renderButton","cssNavigationPrev","nextButton","isLastPage","cssNavigationNext","completeButton","isCompleteButtonVisible","cssNavigationComplete","previewButton","isPreviewButtonVisible","cssNavigationPreview","startButton","cssNavigationStart","click","mouseDown","btnClassName","marginRight","updateStateFunction","onPageVisibleChanged","progressValue","marginTop","progressStyle","role","SurveyProgress","updateScroller","progressButtonsModel","listContainerRef","getScrollButtonCss","clickScrollButton","getListElements","buttons","visiblePages","renderListElement","getListElementCss","isListElementClickable","clickListElement","navigationTitle","navigationDescription","isLeftScroll","scrollCss","hasScroller","listContainerElement","scrollLeft","scrollWidth","SurveyProgressButtons","handleOnExpanded","getStateElements","renderWindowHeader","renderBody","styleTitle","glyphClassName","cursor","float","closeOnCompleteTimeout","expanded","closeWindowOnCompleteCallback","hide","renderQuestionBody","questionRender","hasTitleOnLeftTop","hasDescriptionUnderInput","questionRootClass","cssRoot","renderComment","errorsTop","renderErrors","errorsBottom","contentStyle","ariaRole","ariaTitleId","cssContent","wrapElement","wrapQuestion","SurveyQuestion","cssTitle","isUnderInput","descriptionText","commentText","otherCss","hasDescriptionUnderTitle","cssHeader","SurveyElementErrors","getState","cellRef","getCellClass","errorsLocation","getShowErrors","getCellStyle","getHeaderText","fieldset","ci","ii","isFirst","SurveyQuestionCheckboxItem","textStyle","selectAllChanged","renderOther","renderCheckbox","onItemChanged","inputStyle","SurveyQuestionCheckbox","onBlur","updateValueOnEvent","onInput","tetxarea","placeholder","otherPlaceHolder","SurveyQuestionComment","SurveyQuestionCustom","SurveyQuestionComposite","select","renderSelect","otherText","option","SurveyQuestionOptionItem","captionOption","showOptionsCaption","SurveyQuestionDropdown","makeBaseElementsReact","unMakeBaseElementsReact","isRenderingValue","changedStatePropNameValue","makeBaseElementReact","unMakeBaseElementReact","SurveyElementBase","stateElement","isRendering","newState","SurveyQuestionElementBase","SurveyQuestionEmpty","SurveyQuestionExpression","ReactQuestionFactory","handleOnDragOver","returnValue","dataTransfer","dropEffect","handleOnDrop","srcElement","handleOnClean","needConfirmRemoveFile","confirmRemoveAllMessage","fileLoaded","handleOnRemoveFile","handleOnDownloadFile","allowCount","rootClass","renderPreview","renderFileDecorator","renderClearButton","clearButtonBottom","multiple","inputTitle","accept","acceptedTypes","chooseFileCss","htmlFor","chooseButtonCaption","noFileChosenCaption","onDrop","onDragOver","cleanButtonCaption","previews","download","SurveyQuestionFile","locHtml","SurveyQuestionHtml","rowsChanged","dragDropTH","rowsTH","columText","SurveyQuestionMatrixRow","rowsTD","rowText","tds","generateTds","rowClasses","td","getHandler","cx","cy","SurveyQuestionMatrix","SurveyQuestionMatrixDropdown","updateVisibleRowsChangedCallback","updateStateOnCallback","renderedTableResetCallback","renderTableDiv","footers","divStyle","horizontalScroll","overflowX","table","columnStyle","columnTitle","requiredSpace","renderRow","keyValue","matrixrow","renderCell","SurveyQuestionMatrixDropdownCell","cellContent","cellStyle","SurveyQuestionMatrixActionsCell","colSpan","matrixAfterCellRender","isCheckbox","renderCellCheckboxButton","renderCellRadiogroupButton","handleOnRowAddClick","mainDiv","renderNoRowsContent","renderAddRowButtonOnTop","renderAddRowButtonOnBottom","renderAddRowButton","locEmptyRowsText","textDiv","btn","isEmptySection","addRowText","SurveyQuestionMatrixDynamic","tableRows","ed","SurveyQuestionMultipleText","handleOnPanelAddClick","handleOnPanelPrevClick","handleOnPanelNextClick","handleOnRangeChange","updateQuestionRendering","SurveyQuestionPanelDynamicItem","btnAdd","navTop","isProgressTopShowing","renderNavigator","navBottom","isProgressBottomShowing","isRangeShowing","renderRange","btnPrev","rendrerPrevButton","btnNext","rendrerNextButton","progressClass","panelPrevText","btnClasses","isPrevButtonShowing","getButtonPrevCss","panelNextText","isNextButtonShowing","getButtonNextCss","getProgress","panelAddText","handleOnPanelRemoveClick","panelRemoveText","SurveyQuestionPanelDynamic","canShowClearButton","clearButtonCaption","getStateValue","SurveyQuestionRadioItem","SurveyQuestionRadiogroup","SurveyQuestionRankingItem","onKeyDown","outline","SurveyQuestionRanking","minRateDescription","locMinRateDescription","maxRateDescription","locMaxRateDescription","minTextValue","maxTextValue","minTextBlock","maxTextBlock","SurveyQuestionRating","_isWaitingForEnter","inputWidth","onCompositionUpdate","persist","renderDataList","renderedStep","inputSize","dataListId","autoComplete","activeElement","SurveyQuestionText","afterRenderSurvey","onLoadSurveyFromService","onLoadingSurveyFromService","setCompletedState","getElementWrapperComponentName","componentData","getElementWrapperComponentData","ReactSurveyModel","platform","onTimer","timerInfoText","SurveyQuestionSignaturePad","changed","contentEditable","suppressContentEditableWarning","SurveyLocStringEditor","SurveyLocStringViewer","renderersHash","unregisterRenderer","rendererAs","renderer","RendererFactory","settings","useCachingForChoicesRestfull","executeCompleteTriggerOnValueChanged","executeSkipTriggerOnValueChanged","confirmActionFunc","maximumConditionRunCountOnValueChanged","lazyRowsRendering","showModal","sheet","StylesManager","Enabled","findSheet","SurveyJSStylesSheetId","createSheet","initializeStyles","styleSheetId","styleSheets","ownerNode","themeName","themeSelector","ThemeCss","ThemeColors","cssRuleText","colorVariableName","insertRule","Styles","Media","media","orange","darkblue","darkrose","stone","winter","winterstone","modern","bootstrap","bootstrapmaterial","modernThemeCss","bootstrapThemeCss","bootstrapmaterialThemeCss","variablesHash","localeValue","completedStateValue","completedStateTextValue","isTimerStarted","onCompleting","onComplete","onNavigateToUrl","onStarted","onCurrentPageChanging","onValueChanging","onPanelVisibleChanged","onQuestionCreated","onQuestionAdded","onQuestionRemoved","onPanelAdded","onPanelRemoved","onPageAdded","onValidateQuestion","onSettingQuestionErrors","onServerValidateQuestions","onValidatePanel","onErrorCustomText","onValidatedErrorsOnCurrentPage","onProcessHtml","onGetQuestionTitle","onGetQuestionNo","onProgressText","onTextMarkdown","onTextRenderAs","onUploadFiles","onDownloadFile","onClearFiles","onLoadChoicesFromServer","onLoadedSurveyFromService","onProcessTextValue","onUpdateQuestionCssClasses","onUpdatePanelCssClasses","onUpdatePageCssClasses","onAfterRenderSurvey","onAfterRenderHeader","onAfterRenderPage","onAfterRenderQuestion","onAfterRenderQuestionInput","onAfterRenderPanel","onMatrixRowAdded","onMatrixBeforeRowAdded","onMatrixRowRemoved","onMatrixAllowRemoveRow","onMatrixCellCreated","onMatrixAfterCellRender","onMatrixCellValueChanged","onMatrixCellValueChanging","onMatrixCellValidate","onDynamicPanelAdded","onDynamicPanelRemoved","onTimerPanelInfoText","onDynamicPanelItemValueChanged","onIsAnswerCorrect","onDragDropAllow","onScrollingElementToTop","onGetQuestionTitleActions","onGetPanelTitleActions","onGetPageTitleActions","onGetMatrixRowActions","onElementContentVisibilityChanged","jsonErrors","cssValue","hideRequiredErrors","_isMobile","_isDesignMode","ignoreValidation","isNavigationButtonPressed","isCalculatingProgressText","isTriggerIsRunning","triggerValues","triggerKeys","conditionValues","isValueChangedOnRunningCondition","conditionRunnerCounter","conditionUpdateVisibleIndexes","conditionNotifyElementsOnAnyValueOrVariableChanged","isEndLoadingFromJson","questionHashes","namesInsensitive","valueNames","valueNamesInsensitive","timerFunc","SurveyModel","stylesManager","onProcess","doOnPageAdded","doOnPageRemoved","onFirstPageIsStartedChanged","onModeChanged","updateProgressText","onBeforeCreating","loadSurveyFromService","onQuestionsOnPageModeChanged","getNavigationCss","main","lazyRenderingValue","lazyRendering","getNavigateToUrl","getExpressionItemOnRunCondition","navigateToUrlOnCondition","navigateToUrl","navigateTo","maakeRequiredErrorsInvisibgle","erType","removeNonExisingRootKeys","getCalculatedValueByName","includeIntoResult","currentLocale","onLocaleChanged","getUsedLocales","defaultLoc","defIndex","currentPageValue","isStartedState","getBuiltInRendererForString","logoPosition","setIsMobile","isMobile","runTriggers","checkTriggers","completedHtmlOnCondition","completedHtml","getQuestionTitlePatternOptions","getNewTitlePattern","getNewQuestionTitleElement","strs","currentValue","showPageNumbers","updateVisibleIndexes","canShowProresBar","showProgressBar","isShowingPreview","showPreviewBeforeComplete","setCalcuatedValuesIntoResult","setDataCore","mergeData","setDataValueCore","updateAllQuestionsValue","notifyAllQuestionsOnValueChanged","notifyElementsOnAnyValueOrVariableChanged","isDisposed","getAllQuestions","calValue","resultItem","addCalculatedValuesIntoFilteredValues","caclValues","deleteDataValueCore","pageCount","firstPageIsStarted","vPages","onContainsPageCallback","newPage","getPageByObject","currentPageChanging","currentPageChanged","focusFirstQuestionAutomatic","isLoading","isCompletedBefore","isEditMode","onShowingPreviewChanged","clearData","gotoFirstPage","passed","visiblePageCount","updateValuesWithDefaults","oldCurrentPage","newCurrentPage","allowChanging","isNextPage","isPrevPage","navigationButtonsVisibility","showNavigationButtons","isShowPreviewBeforeComplete","setDesignMode","visPages","updateAllElementsVisibility","showInvisibleElements","cookieName","cookies","cookie","setCookie","deleteCookie","doCurrentPageComplete","hasErrorsOnNavigate","checkErrorsMode","isCurrentPageHasErrors","checkForAsyncQuestionValidation","clearAsyncValidationQuesitons","onCompletedAsyncQuestionValidators","asyncValidationQuesitons","asynQuestions","doCurrentPageCompleteCore","checkIsCurrentPageHasErrors","firstErrorPage","ensureUniqueNames","ensureUniqueName","ensureUniquePageName","ensureUniquePanelName","ensureUniqueQuestionName","ensureUniqueElementName","existingElement","getNewName","isFocuseOnFirstError","checkIsPageHasErrors","fireValidatedErrorsOnPage","questionsOnPage","resetNavigationButton","doServerValidation","curPage","isValidatingOnServer","doNextPage","questionsOnPageMode","runningPages","setupPagesForPageModes","restoreOrigionalPages","currentPageNo","origionalPages","isSinglePage","originalPages","questionHashesClear","newPages","createPagesForQuestionOnPageMode","deletedLen","doElementsOnLoad","createSinglePage","createPagesForEveryQuestion","single","createNewPage","originalPage","originalElement","pageJson","questionHashesAdded","showPrevButton","getPageMaxTimeToFinish","isCompleteOnTrigger","onCompletingOptions","allowComplete","previousCookie","hasCookie","setCompleted","savingDataStarted","onCompleteOptions","showDataSaving","showDataSavingError","showDataSavingSuccess","showDataSavingClear","surveyPostId","setIsValidatingOnServer","onIsValidatingOnServerChanged","isPreview","completeServerValidation","hasToFocus","checkOnPageTriggers","sendResultOnPageNext","renderedCompletedHtml","completedBeforeHtml","loadingHtml","getProgressText","getProgressTextCore","correctAnswersCount","getCorrectedAnswerCount","afterRenderHeader","getQuestionsByValueName","allow","uploadingCallback","uploadFilesCore","fileValue","createSurveyService","responses","addPage","addNewPage","removePage","caseInsensitive","getQuestionsByNames","getPageByElement","getPageByQuestion","getPagesByNames","getQuizQuestions","getAllPanels","panelName","questionOnValueChanging","updateQuestionValue","checkQuestionErrorOnValueChanged","checkQuestionErrorOnValueChangedCore","oldErrorCount","checkErrorsOnValueChanging","notifyQuestionOnValueChanged","isRunningConditions","valName","getCurrentPageQuestions","includeInvsible","isOnNextPage","triggers","trigger","checkExpression","oldCurrentPageIndex","runConditionsCore","checkIfNewPagesBecomeVisible","runConditionOnValueChanged","newCurrentPageIndex","surveyShowDataSaving","cliendId","loadSurveyFromServiceJson","updatePageVisibleIndexes","isPageVisible","jsonConverter","setJsonObject","getProcessedTextValueCore","wasEmpty","getInCorrectedAnswerCount","firstName","variable","clearInvisibleValues","clearInvisibleQuestionValues","getVariableNames","newQuestionValue","isValueEqual","tryGoNextPageAutomatic","generateNewName","questionHashesPanelAdded","baseName","goNextPageAutomatic","allowCompleteSurveyAutomatic","commentName","parentPanel","rootPanel","questionHashesRemoved","oldName","questionHashAddedCore","questionHashRemovedCore","doEncoding","processTextCore","getCorrectedAnswerCountCore","isCorrect","correctAnswers","incorrectAnswers","addCount","getCorrectedAnswers","getInCorrectedAnswers","showTimerPanel","getTimerInfoText","pageSpent","getDisplayTime","surveySpent","pageLimitSec","pageLimit","surveyLimit","maxTimeToFinish","showTimerPanelMode","getTimerInfoPageText","getTimerInfoSurveyText","sec","startTimer","doTimer","instance","stop","maxTimeToFinishPage","getObjects","setTriggerValue","isVariable","copyTriggerValue","fromName","focusQuestion","elementCss","surveyLocalization","currentLocaleValue","defaultLocaleValue","supportedLocales","getLocaleStrings","getCurrentStrings","strName","removeDefaultLoc","locName","str1","str2","surveyStrings","initialModel","windowElement","onSurveyComplete","showingChangedCallback","show","expandedChangedCallback","expandcollapse","closeWindowOnComplete","timerId","surveyElementName","surveyTimerFunctions","listenerCounter","SurveyTimer","instanceValue","canProcess","hasAllValuesOnLastRunValue","getName","TextPreProcessorValue","replacedValue","TextPreProcessorItem","TextPreProcessor","usedNames","oldPropertiesChanged","onExpressionChanged","Trigger","operatorsValue","expectedValue","buildExpression","operators","isCheckRequired","perform","check","onSuccess","onFailure","triggerResult","isRequireValue","buildUsedNames","ownerValue","onTrigger","onItemSuccess","onItemFailure","SurveyTrigger","setToName","gotoName","onCompleteRunExpression","SurveyTriggerVisible","SurveyTriggerComplete","SurveyTriggerSetValue","SurveyTriggerCopyValue","SurveyTriggerSkip","SurveyTriggerRunExpression","vendor","opera","IsMobile","targetPos","dotsItemSize","previousSpace","previousItemCount","MAX_VALUE","_itemSizes","getAvailableSpace","boxSizing","getDimensions","scrollDimension","offsetDimension","getItemsCount","sum","itemSizes","dimensions","parentSpace","canShrink","paddingTop","paddingBottom","ResponsibilityManager","compareVersions","regExStrip0","segmentsA","segmentsB","confirmAction","detectIEBrowser","oldIe","elevenIe","detectIEOrEdge","isIEOrEdge","msie","trident","edge","loadFileFromBase64","b64Data","byteString","atob","mimeString","ab","ia","bb","msSaveBlob","msSaveOrOpenBlob","orientation","isElementVisible","threshold","elementRect","topWin","bottomWin","innerHeight","topEl","bottomEl","findScrollableParent","overflowY","createSvg","svgElem","setAttributeNS","getErrorText","getDefaultErrorText","createCustomError","prepareAsyncValidators","asyncResults","isValidateAllValues","asyncValidators","validatorResult","validatedValue","ValidatorResult","vName","SurveyValidator","minLength","allowDigits","minCount","maxCount","ensureConditionRunner","generateError","NumericValidator","TextValidator","AnswerCountValidator","RegexValidator","EmailValidator","ExpressionValidator","__WEBPACK_EXTERNAL_MODULE_react__","FUNC_ERROR_TEXT","HASH_UNDEFINED","PLACEHOLDER","WRAP_CURRY_RIGHT_FLAG","WRAP_PARTIAL_FLAG","WRAP_PARTIAL_RIGHT_FLAG","WRAP_ARY_FLAG","WRAP_REARG_FLAG","INFINITY","MAX_SAFE_INTEGER","NAN","MAX_ARRAY_LENGTH","wrapFlags","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","genTag","mapTag","numberTag","objectTag","promiseTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","reEmptyStringLeading","reEmptyStringMiddle","reEmptyStringTrailing","reEscapedHtml","reUnescapedHtml","reHasEscapedHtml","reHasUnescapedHtml","reEscape","reEvaluate","reInterpolate","reIsDeepProp","reIsPlainProp","rePropName","reRegExpChar","reHasRegExpChar","reTrimStart","reWhitespace","reWrapComment","reWrapDetails","reSplitDetails","reAsciiWord","reForbiddenIdentifierChars","reEscapeChar","reEsTemplate","reFlags","reIsBadHex","reIsBinary","reIsHostCtor","reIsOctal","reIsUint","reLatin","reNoMatch","reUnescapedString","rsAstralRange","rsComboRange","rsComboMarksRange","rsDingbatRange","rsLowerRange","rsUpperRange","rsVarRange","rsBreakRange","rsMathOpRange","rsApos","rsAstral","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsOptVar","rsSeq","rsEmoji","rsSymbol","reApos","reComboMark","reUnicode","reUnicodeWord","reHasUnicode","reHasUnicodeWord","contextProps","templateCounter","typedArrayTags","cloneableTags","stringEscapes","freeParseFloat","freeParseInt","freeGlobal","freeSelf","freeExports","freeModule","moduleExports","freeProcess","nodeUtil","nodeIsArrayBuffer","nodeIsDate","nodeIsMap","isMap","nodeIsRegExp","nodeIsSet","isSet","nodeIsTypedArray","isTypedArray","arrayAggregator","setter","iteratee","accumulator","arrayEach","arrayEachRight","arrayEvery","arrayFilter","resIndex","arrayIncludes","baseIndexOf","arrayIncludesWith","comparator","arrayMap","arrayPush","arrayReduce","initAccum","arrayReduceRight","arraySome","asciiSize","baseProperty","baseFindKey","collection","eachFunc","baseFindIndex","fromRight","strictIndexOf","baseIsNaN","baseIndexOfWith","baseMean","baseSum","object","basePropertyOf","baseReduce","baseTimes","baseTrim","trimmedEndIndex","baseUnary","baseValues","cacheHas","charsStartIndex","strSymbols","chrSymbols","charsEndIndex","deburrLetter","escapeHtmlChar","escapeStringChar","chr","hasUnicode","mapToArray","overArg","replaceHolders","setToArray","setToPairs","stringSize","unicodeSize","stringToArray","unicodeToArray","asciiToArray","unescapeHtmlChar","runInContext","pick","arrayProto","funcProto","objectProto","coreJsData","funcToString","maskSrcKey","uid","IE_PROTO","nativeObjectToString","objectCtorString","oldDash","reIsNative","getPrototype","objectCreate","propertyIsEnumerable","spreadableSymbol","isConcatSpreadable","symIterator","symToStringTag","toStringTag","getNative","ctxClearTimeout","ctxNow","ctxSetTimeout","nativeCeil","nativeFloor","nativeGetSymbols","nativeIsBuffer","nativeIsFinite","nativeJoin","nativeKeys","nativeMax","nativeMin","nativeNow","nativeParseInt","nativeRandom","nativeReverse","reverse","Set","WeakMap","nativeCreate","metaMap","realNames","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","symbolToString","lodash","isObjectLike","LazyWrapper","LodashWrapper","wrapperClone","baseCreate","proto","baseLodash","chainAll","__wrapped__","__actions__","__chain__","__index__","__values__","__dir__","__filtered__","__iteratees__","__takeCount__","__views__","ListCache","MapCache","SetCache","__data__","Stack","arrayLikeKeys","inherited","isArr","isArg","isArguments","isBuff","isType","skipIndexes","isIndex","arraySample","baseRandom","arraySampleSize","shuffleSelf","copyArray","baseClamp","arrayShuffle","assignMergeValue","baseAssignValue","objValue","assocIndexOf","baseAggregator","baseEach","baseAssign","baseAt","skip","lower","upper","baseClone","bitmask","customizer","stack","isDeep","isFlat","isFull","initCloneArray","tag","getTag","isFunc","cloneBuffer","initCloneObject","getSymbolsIn","copySymbolsIn","keysIn","baseAssignIn","getSymbols","copySymbols","Ctor","cloneArrayBuffer","dataView","cloneDataView","cloneTypedArray","cloneRegExp","symbol","initCloneByTag","stacked","subValue","getAllKeysIn","getAllKeys","baseConformsTo","baseDelay","baseDifference","isCommon","valuesLength","outer","computed","valuesIndex","templateSettings","getMapData","pairs","LARGE_ARRAY_SIZE","createBaseEach","baseForOwn","baseEachRight","baseForOwnRight","baseEvery","baseExtremum","baseFilter","baseFlatten","isStrict","isFlattenable","baseFor","createBaseFor","baseForRight","baseFunctions","baseGet","castPath","toKey","baseGetAllKeys","keysFunc","symbolsFunc","baseGetTag","isOwn","unmasked","getRawTag","baseGt","baseHas","baseHasIn","baseIntersection","arrays","othLength","othIndex","caches","baseInvoke","baseIsArguments","baseIsEqual","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","convert","isPartial","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","objLength","othProps","objStacked","othStacked","skipCtor","othValue","compared","objCtor","othCtor","equalObjects","baseIsEqualDeep","baseIsMatch","matchData","noCustomizer","srcValue","COMPARE_PARTIAL_FLAG","baseIsNative","baseIteratee","identity","baseMatchesProperty","baseMatches","baseKeys","isPrototype","baseKeysIn","nativeKeysIn","isProto","baseLt","baseMap","isArrayLike","getMatchData","matchesStrictComparable","isKey","isStrictComparable","hasIn","baseMerge","mergeFunc","safeGet","isTyped","isArrayLikeObject","toPlainObject","baseMergeDeep","baseNth","baseOrderBy","iteratees","orders","getIteratee","criteria","comparer","baseSortBy","objCriteria","othCriteria","ordersLength","compareAscending","compareMultiple","basePickBy","baseSet","basePullAll","basePullAt","indexes","previous","baseUnset","baseRepeat","baseRest","setToString","overRest","baseSample","baseSampleSize","nested","baseSetData","baseSetToString","constant","baseShuffle","baseSlice","baseSome","baseSortedIndex","retHighest","low","high","baseSortedIndexBy","valIsNaN","valIsNull","valIsSymbol","valIsUndefined","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","setLow","baseSortedUniq","baseToNumber","baseToString","baseUniq","createSet","seenIndex","baseUpdate","updater","baseWhile","isDrop","baseWrapperValue","baseXor","baseZipObject","assignFunc","valsLength","castArrayLikeObject","castFunction","stringToPath","castRest","castSlice","arrayBuffer","typedArray","valIsDefined","valIsReflexive","composeArgs","partials","holders","isCurried","argsIndex","argsLength","holdersLength","leftIndex","leftLength","rangeLength","isUncurried","composeArgsRight","holdersIndex","rightIndex","rightLength","isNew","createAggregator","initializer","createAssigner","assigner","sources","guard","isIterateeCall","iterable","createCaseFirst","createCompounder","deburr","createCtor","thisBinding","createFind","findIndexFunc","createFlow","flatRest","funcs","prereq","thru","getFuncName","isLaziable","plant","createHybrid","partialsRight","holdersRight","argPos","ary","arity","isAry","isBind","isBindKey","isFlip","getHolder","holdersCount","countHolders","newHolders","createRecurry","oldArray","reorder","createInverter","toIteratee","baseInverter","createMathOperation","createOver","arrayFunc","createPadding","charsLength","createRange","toFinite","baseRange","createRelationalOperation","wrapFunc","isCurry","setWrapToString","createRound","precision","toInteger","pair","createToPairs","baseToPairs","createWrap","srcBitmask","newBitmask","isCombo","createCurry","createPartial","createBind","customDefaultsAssignIn","customDefaultsMerge","customOmitClone","arrStacked","otherFunc","isKeyable","stubArray","hasPath","isLength","ctorString","isMaskable","stubFalse","otherArgs","shortOut","reference","insertWrapDetails","updateWrapDetails","getWrapDetails","lastCalled","stamp","rand","memoize","memoizeCapped","quote","subString","difference","differenceBy","differenceWith","findIndex","findLastIndex","intersection","mapped","intersectionBy","intersectionWith","pullAll","pullAt","union","unionBy","unionWith","unzip","unzipWith","without","xorBy","xorWith","zip","zipWith","chain","interceptor","wrapperAt","countBy","findLast","forEachRight","groupBy","invokeMap","keyBy","partition","sortBy","bindKey","WRAP_BIND_FLAG","debounce","lastArgs","lastThis","maxWait","lastCallTime","lastInvokeTime","leading","maxing","invokeFunc","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","leadingEdge","flush","defer","memoized","Cache","overArgs","transforms","funcsLength","partial","partialRight","rearg","isInteger","iteratorToArray","toLength","isBinary","assignIn","assignInWith","assignWith","propsIndex","propsLength","defaultsDeep","invert","invertBy","invoke","omit","CLONE_DEEP_FLAG","basePick","pickBy","toPairs","toPairsIn","camelCase","capitalize","upperFirst","kebabCase","lowerCase","lowerFirst","snakeCase","startCase","upperCase","hasUnicodeWord","unicodeWords","asciiWords","attempt","bindAll","methodNames","flow","flowRight","methodOf","mixin","over","overEvery","overSome","basePropertyDeep","rangeRight","augend","addend","divide","dividend","divisor","multiply","multiplier","multiplicand","subtract","minuend","subtrahend","castArray","cond","conforms","baseConforms","curry","curryRight","dropRight","dropRightWhile","dropWhile","baseFill","flatMap","flatMapDeep","flatMapDepth","flattenDeep","flattenDepth","flip","fromPairs","functions","functionsIn","initial","mapKeys","mapValues","matchesProperty","nthArg","omitBy","orderBy","propertyOf","pullAllBy","pullAllWith","sampleSize","setWith","shuffle","sortedUniq","sortedUniqBy","spread","take","takeRight","takeRightWhile","takeWhile","tap","toPath","isArrLike","unary","uniq","uniqBy","uniqWith","unset","updateWith","valuesIn","wrap","zipObject","zipObjectDeep","entriesIn","extendWith","cloneDeep","cloneDeepWith","cloneWith","conformsTo","defaultTo","endsWith","escapeRegExp","findKey","findLastKey","forIn","forInRight","forOwn","forOwnRight","inRange","baseInRange","isElement","isEqual","isEqualWith","isMatch","isMatchWith","isNative","isNil","isSafeInteger","isWeakMap","isWeakSet","strictLastIndexOf","maxBy","mean","meanBy","minBy","stubObject","stubString","stubTrue","nth","noConflict","strLength","padEnd","padStart","radix","floating","reduceRight","repeat","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","startsWith","sumBy","isEscaping","isEvaluating","imports","importsKeys","importsValues","interpolate","reDelimiters","sourceURL","escapeValue","interpolateValue","esTemplateValue","evaluateValue","times","toLower","toSafeInteger","toUpper","trimEnd","trimStart","omission","newEnd","uniqueId","each","eachRight","VERSION","isFilter","takeName","dropName","checkIteratee","isTaker","lodashFunc","retUnwrapped","isLazy","useLazy","isHybrid","isUnwrapped","onlyLazy","chainName","isRight","getView","iterLength","takeCount","iterIndex","commit","hasMap","mapSizeDescriptor","mapSize","mapForEach","hasSet","setSizeDescriptor","setSize","setForEach","weakMapHas","weakSetHas","WeakSet","weakRefDeref","WeakRef","deref","booleanValueOf","Boolean","functionToString","$match","$slice","$replace","$toUpperCase","$toLowerCase","$test","$concat","$join","$arrSlice","$floor","bigIntValueOf","BigInt","gOPS","symToString","hasShammedSymbols","isEnumerable","gPO","O","addNumericSeparator","sepRegex","int","intStr","dec","utilInspect","inspectCustom","inspectSymbol","quotes","quoteREs","wrapQuotes","defaultStyle","quoteStyle","quoteChar","toStr","inspect_","maxStringLength","numericSeparator","inspectString","bigIntStr","maxDepth","baseIndent","getIndent","noIndent","newOpts","nameOf","arrObjKeys","symString","markBoxed","HTMLElement","attrs","xs","singleLineValues","indentedJoin","cause","mapParts","collectionOf","setParts","weakCollectionOf","isWeakRef","isBigInt","globalThis","ys","protoTag","hasOwn","trailer","quoteRE","lowbyte","lineJoiner","symMap","syms","implementation","arg1","arg2","arg3","asUInt32Array","scrubVec","cryptBlock","M","keySchedule","SUB_MIX","SBOX","nRounds","t0","t1","t2","t3","SUB_MIX0","SUB_MIX1","SUB_MIX2","SUB_MIX3","ksRow","RCON","G","INV_SBOX","INV_SUB_MIX","xi","x4","x8","AES","keySize","keyWords","ksRows","invKeySchedule","ik","ksR","tt","_nRounds","_keySchedule","_invKeySchedule","encryptBlockRaw","encryptBlock","decryptBlock","scrub","password","salt","keyBits","ivLen","keyLen","keyStart","ivStart","BaseCurve","conf","zero","two","pointFromJSON","gRed","_wnafT1","_wnafT2","_wnafT3","_wnafT4","_bitLength","adjustCount","redN","_maxwellTrick","BasePoint","precomputed","_fixedNafMul","doubles","_getDoubles","I","nafW","repr","jpoint","mixedAdd","toP","_wnafMul","nafPoints","_getNAFPoints","dblp","_wnafMulAdd","defW","coeffs","jacobianResult","wndWidth","comb","toJ","ja","jb","decodePoint","pointFromX","encodeCompressed","_encode","getX","getY","precompute","beta","_getBeta","_hasDoubles","dbl","aesid","fixProc","ciphers","compat","parseKeys","passphrase","subtype","ndata","stripped","certificate","tbsCertificate","subjectPublicKeyInfo","PublicKey","RSAPublicKey","subjectPublicKey","subjectPrivateKey","pub_key","DSAparam","kde","kdeparams","iters","algo","cipherText","pbkdf2Sync","createDecipheriv","EncryptedPrivateKey","PrivateKey","RSAPrivateKey","privateKey","ECPrivateKey","priv_key","DSAPrivateKey","des","_keys","pc2bytes0","pc2bytes1","pc2bytes2","pc2bytes3","pc2bytes4","pc2bytes5","pc2bytes6","pc2bytes7","pc2bytes8","pc2bytes9","pc2bytes10","pc2bytes11","pc2bytes12","pc2bytes13","iterations","shifts","lefttmp","righttmp","_createKeys","spfunction1","spfunction2","spfunction3","spfunction4","spfunction5","spfunction6","spfunction7","spfunction8","looping","endloop","loopinc","right1","right2","BigInteger","jsbn","rsa","GCD_30_DELTA","privateKeyValidator","rsaPrivateKeyValidator","rsaPublicKeyValidator","publicKeyValidator","emsaPkcs1v15encode","oidBytes","digestInfo","digestAlgorithm","_modPow","pub","modPow","dP","ONE","dQ","qInv","modInverse","compareTo","xq","_encodePkcs1_v1_5","bt","eb","padByte","padNum","numZeros","padBytes","_decodePkcs1_v1_5","em","ml","_bnToBytes","_getMillerRabinTests","_detectNodeCrypto","_detectSubtleCrypto","subtle","_detectSubtleMsCrypto","_intToUint8Array","yhex","xhex","createKeyPairGenerationState","rng","nextBytes","eInt","qBits","pBits","pqState","fromInt","stepKeyPairGenerationState","THIRTY","deltaIdx","op_or","bits1","testBit","bitwiseTo","shiftLeft","dAddOffset","byteValue","isProbablePrime","p1","q1","phi","setPrivateKey","publicKey","setPublicKey","generateKeyPair","modulusLength","publicExponent","publicKeyEncoding","privateKeyEncoding","priv","privateKeyFromPem","publicKeyFromPem","generateKey","exportKey","pkcs8","privateKeyFromAsn1","setRsaPublicKey","genOp","oncomplete","exportOp","keypair","generateKeyPairSync","workLoad","workerScript","getPrime","finish","generateProbablePrime","_generateKeyPair","schemeOptions","pkcs1","encode_rsa_oaep","setRsaPrivateKey","decode_rsa_oaep","wrapRsaPrivateKey","rsaKey","rsaEncryption","privateKeyModulus","privateKeyPublicExponent","privateKeyPrivateExponent","privateKeyPrime1","privateKeyPrime2","privateKeyExponent1","privateKeyExponent2","privateKeyCoefficient","privateKeyToAsn1","privateKeyToRSAPrivateKey","publicKeyFromAsn1","publicKeyOid","rsaPublicKey","publicKeyModulus","publicKeyExponent","publicKeyToAsn1","publicKeyToSubjectPublicKeyInfo","publicKeyToRSAPublicKey","dbits","fromNumber","nbi","am3","xl","xh","am","appName","DB","DM","DV","FV","F1","F2","rr","vv","BI_RC","int2char","intAt","nbv","nbits","Classic","Montgomery","mp","invDigit","mpl","mph","um","mt2","op_and","op_xor","op_andnot","lbit","cbit","NullExp","nNop","Barrett","q3","dlShiftTo","mu","revert","divRemTo","multiplyTo","sqrTo","squareTo","ZERO","subTo","copyTo","u0","drShiftTo","fromRadix","mi","sh","lShiftTo","bs","cbs","bm","ds","rShiftTo","pm","pt","ts","nsh","y0","yt","qd","toRadix","km","modPowInt","multiplyUpperTo","multiplyLowerTo","lowprimes","lplim","chunkSize","LN2","signum","cs","intValue","dMultiply","changeBit","addTo","modInt","millerRabin","getLowestSetBit","shiftRight","shortValue","andNot","not","bitCount","setBit","clearBit","flipBit","divideAndRemainder","g2","is1","ac","getFieldMask","columnToLetter","letter","letterToColumn","propIsEnumerable","test1","test2","test3","shouldUseNative","symbols","$Object","$Error","$EvalError","$RangeError","$ReferenceError","$SyntaxError","$TypeError","$URIError","$Function","getEvalledConstructor","expressionSyntax","$gOPD","$defineProperty","throwTypeError","ThrowTypeError","calleeThrows","gOPDthrows","hasSymbols","getProto","$ObjectGPO","$ReflectGPO","$apply","$call","needsEval","TypedArray","INTRINSICS","AggregateError","Atomics","BigInt64Array","BigUint64Array","encodeURI","eval","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","Proxy","SharedArrayBuffer","Uint8ClampedArray","Uint32Array","errorProto","doEval","gen","LEGACY_ALIASES","$spliceApply","$strSlice","$exec","getBaseIntrinsic","allowMissing","alias","intrinsicName","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","GetIntrinsic","callBindBasic","$indexOf","percentTwenties","Format","formatters","RFC1738","RFC3986","formatArgs","useColors","namespace","humanize","color","lastC","save","namespaces","storage","load","DEBUG","__nwjs","WebkitAppearance","firebug","localstorage","debug","HashBase","ARRAY16","_a","_b","_c","_d","rotl","fnF","fnG","fnH","fnI","_blockOffset","_length","CorkedRequest","corkReq","pendingcb","corkedRequestsFree","onCorkedFinish","asyncWrite","WritableState","internalUtil","OurUint8Array","realHasInstance","destroyImpl","nop","isDuplex","objectMode","writableObjectMode","hwm","writableHwm","writableHighWaterMark","defaultHwm","finalCalled","needDrain","ending","finished","noDecode","decodeStrings","defaultEncoding","writing","corked","sync","bufferProcessing","onwrite","writecb","writelen","onwriteStateUpdate","finishMaybe","errorEmitted","onwriteError","needFinish","bufferedRequest","clearBuffer","afterWrite","lastBufferedRequest","prefinished","bufferedRequestCount","_write","writev","_writev","final","doWrite","onwriteDrain","holder","allBuffers","isBuf","callFinal","need","prefinish","getBuffer","hasInstance","_uint8ArrayToBuffer","writeAfterEnd","valid","validChunk","newChunk","decodeChunk","writeOrBuffer","cork","uncork","setDefaultEncoding","endWritable","_undestroy","undestroy","nb","nenc","retried","_normalizeEncoding","normalizeEncoding","utf16Text","utf16End","fillLast","utf8FillLast","base64Text","base64End","simpleWrite","simpleEnd","lastNeed","lastTotal","lastChar","utf8CheckByte","byte","utf8CheckExtraBytes","utf8CheckIncomplete","zl","zr","sl","sr","hl","hr","_e","fn1","fn2","fn3","fn4","fn5","br","cr","dr","tl","tr","sha224","sha384","sha512","Cipher","bufferOff","_updateDecrypt","_updateEncrypt","_buffer","_flushBuffer","inputOff","outputOff","_finalEncrypt","_finalDecrypt","_unpad","deciphers","createCipheriv","Cipheriv","Decipher","Decipheriv","listCiphers","getCiphers","modeModules","ECB","CBC","CFB","CFB8","CFB1","OFB","CTR","GCM","Rand","_rand","randomBytes","getr","modulus","prime1","prime2","crt","blinds","blinder","unblinder","blind","blinded","qinv","coefficient","exponent1","exponent2","move","_move","for","modrn","allocate","_toArrayLikeLE","_toArrayLikeBE","isNegNum","elliptic","curves","ec","eddsa","pre","PresetCurve","short","edwards","isInfinity","defineCurve","lambda","basis","common","ripemd","ripemd160","DefaultTransporter","gaxios_1","options_1","pkg","PRODUCT_NAME","configure","uaValue","USER_AGENT","authVersion","nodeVersion","catch","processError","err2","getAlgorithm","BlockCipher","_finish","_op","_decrypt","unpad","afterFinish","md5","_g","_r","_k","pkcs5","pbkdf2","dkLen","hLen","prf","u_c","u_c1","dk","_shortNames","x509CertificateValidator","rsassaPssParameterValidator","certificationRequestInfoValidator","certificationRequestValidator","_getAttribute","shortName","RDNAttributesAsArray","rdn","si","valueTagClass","CRIAttributesAsArray","seq","extensionRequest","extensions","certificateExtensionFromAsn1","_readSignatureParameters","fillDefaults","algorithmOid","mgf","saltLength","hashOid","maskGenOid","maskGenHashOid","_dnToAsn1","_fillMissingFields","attribute","valueConstructed","certificateExtensionToAsn1","_fillMissingExtensionFields","extension","digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly","cA","pathLenConstraint","client","server","email","objsign","reserved","sslCA","emailCA","objCA","altNames","altName","ski","generateSubjectKeyIdentifier","subjectKeyIdentifier","keyIdentifier","authorityCertIssuer","issuer","serialNumber","subSeq","fullNameGeneralNames","_signatureParametersToAsn1","_CRIAttributesToAsn1","csr","certificateFromPem","computeHash","headerType","certificateFromAsn1","certificateToPem","certificateToAsn1","publicKeyToPem","publicKeyToRSAPublicKeyPem","getPublicKeyFingerprint","delimiter","certificationRequestFromPem","certificationRequestFromAsn1","certificationRequestToPem","certificationRequestToAsn1","createCertificate","siginfo","validity","notBefore","notAfter","getField","sn","addField","subject","setSubject","setIssuer","setExtensions","exts","getExtension","signatureOid","getTBSCertificate","issued","expectedIssuer","actualIssuer","sha1WithRSAEncryption","signatureParameters","pss","isIssuer","iattr","sattr","verifySubjectKeyIdentifier","certVersion","serial","certSerialNumber","certSignatureOid","certSignatureParams","certinfoSignatureOid","certinfoSignatureParams","certSignature","certValidity1UTCTime","certValidity2GeneralizedTime","certValidity3UTCTime","certValidity4GeneralizedTime","imd","certIssuer","certIssuerUniqueId","smd","certSubject","certSubjectUniqueId","certExtensions","certificateExtensionsFromAsn1","extseq","critical","gn","createCertificationRequest","csrVersion","csrSignatureOid","csrSignatureParams","csrSignature","certificationRequestInfo","certificationRequestInfoSubject","addAttribute","certificationRequestInfoAttributes","setAttributes","getCertificationRequestInfo","cri","jan_1_1950","jan_1_2050","_dateToAsn1","tbs","certificateExtensionsToAsn1","distinguishedNameToAsn1","dn","createCaStore","caStore","getBySubject","ensureSubjectHasHash","getIssuer","addCertificate","hasCertificate","der1","listAllCertificates","certList","removeCertificate","certificateError","bad_certificate","unsupported_certificate","certificate_revoked","certificate_expired","certificate_unknown","unknown_ca","verifyCertificateChain","validityCheckDate","selfSigned","parents","verified","se","keyUsage","basicConstraints","bcExt","keyUsageExt","vfd","sLen","salt_","pssobj","modBits","emBits","emLen","mHash","m_","ps","db","maskLen","dbMask","maskedDB","checkLen","checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","MAX_SIGNED_31_BIT_INT","commonjsGlobal","calculateChangedBits","_Provider$childContex","_Consumer$contextType","contextProp","getUniqueId","_Component","handlers","changedBits","createEventEmitter","_proto","getChildContext","componentWillReceiveProps","childContextTypes","PropTypes","_Component2","_this2","onUpdate","observedBits","_proto2","contextTypes","isarray","compile","tokensToFunction","tokensToRegExp","PATH_REGEXP","defaultDelimiter","escaped","modifier","asterisk","escapeGroup","escapeString","encodeURIComponentPretty","pretty","segment","attachKeys","route","endsWithDelimiter","groups","regexpToRegexp","arrayToRegexp","stringToRegexp","b64","lens","getLens","validLen","placeHoldersLen","Arr","_byteLength","curByte","revLookup","uint8","extraBytes","maxChunkLength","len2","encodeChunk","lookup","callBound","$Map","$mapGet","$mapSet","$mapHas","$mapDelete","$mapSize","$m","channel","sym","symObj","descriptor","$actualApply","formats","hexTable","arrayToObject","plainObjects","refs","compacted","compactQueue","defaultDecoder","charset","strWithoutPlus","defaultEncoder","kind","$0","maybeMap","allowPrototypes","mergeTarget","targetItem","isArgs","callee","BigNumber","mathceil","mathfloor","bignumberError","tooManyDigits","BASE","LOG_BASE","POWS_TEN","SQRT_BASE","MAX","bitFloor","coeffToString","xc","yc","intCheck","toExponential","toFixedPoint","zs","configObject","convertBase","parseNumeric","P","DECIMAL_PLACES","ROUNDING_MODE","TO_EXP_NEG","TO_EXP_POS","MIN_EXP","MAX_EXP","CRYPTO","MODULO_MODE","POW_PRECISION","FORMAT","secondaryGroupSize","groupSeparator","decimalSeparator","fractionGroupSize","fractionGroupSeparator","suffix","ALPHABET","alphabet","caseChanged","isNum","_isBigNumber","rm","c0","ne","maxOrMin","normalise","sd","ni","rd","pows10","ROUND_UP","ROUND_DOWN","ROUND_CEIL","ROUND_FLOOR","ROUND_HALF_UP","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_CEIL","ROUND_HALF_FLOOR","EUCLID","EXPONENTIAL_AT","RANGE","isBigNumber","maximum","minimum","pow2_53","random53bitInt","dp","decimal","toBaseOut","baseIn","baseOut","arrL","callerIsToString","xlo","xhi","klo","khi","aL","bL","more","prod","prodL","qc","remL","rem0","xL","yc0","yL","yz","NaN","basePrefix","dotAfter","dotBefore","isInfinityOrNaN","whitespaceOrPlus","p2","absoluteValue","comparedTo","decimalPlaces","dividedBy","dividedToIntegerBy","idiv","exponentiatedBy","isModExp","nIsBig","nIsNeg","nIsOdd","integerValue","isEqualTo","isGreaterThan","isGreaterThanOrEqualTo","isLessThan","isLessThanOrEqualTo","isNegative","isPositive","xLTy","xe","ye","modulo","multipliedBy","xcL","ycL","ylo","yhi","zc","sqrtBase","negated","shiftedBy","squareRoot","rep","toFormat","g1","intPart","fractionPart","intDigits","toFraction","d0","n0","toPrecision","normalizeArray","allowAboveRoot","resolvedPath","resolvedAbsolute","normalize","trailingSlash","relative","samePartsLength","outputParts","sep","dirname","hasRoot","matchedSlash","extname","startDot","startPart","preDotState","crypto_2","BrowserCrypto","NodeCrypto","pseudoRandomBytes","createHash","createHmac","Hmac","algos","algoKeys","hashes","getHashes","DiffieHellmanGroup","createDiffieHellmanGroup","getDiffieHellman","createDiffieHellman","DiffieHellman","createSign","Sign","createVerify","Verify","createECDH","publicEncrypt","privateEncrypt","publicDecrypt","privateDecrypt","rf","randomFill","randomFillSync","createCredentials","DH_CHECK_P_NOT_SAFE_PRIME","DH_CHECK_P_NOT_PRIME","DH_UNABLE_TO_CHECK_GENERATOR","DH_NOT_SUITABLE_GENERATOR","NPN_ENABLED","ALPN_ENABLED","RSA_PKCS1_PADDING","RSA_SSLV23_PADDING","RSA_NO_PADDING","RSA_PKCS1_OAEP_PADDING","RSA_X931_PADDING","RSA_PKCS1_PSS_PADDING","POINT_CONVERSION_COMPRESSED","POINT_CONVERSION_UNCOMPRESSED","POINT_CONVERSION_HYBRID","_finalized","ReadableState","EElistenerCount","debugUtil","BufferList","kProxyEvents","readableObjectMode","readableHwm","readableHighWaterMark","pipes","pipesCount","flowing","endEmitted","reading","needReadable","emittedReadable","readableListening","resumeScheduled","awaitDrain","readingMore","decoder","_read","readableAddChunk","addToFront","skipChunkCheck","emitReadable","onEofChunk","chunkInvalid","addChunk","maybeReadMore","needMoreData","isPaused","setEncoding","MAX_HWM","howMuchToRead","computeNewHighWaterMark","emitReadable_","maybeReadMore_","nReadingNextTick","resume_","fromList","hasStrings","copyFromBufferString","copyFromBuffer","fromListPartial","endReadable","endReadableNT","nOrig","doRead","pipeOpts","endFn","stdout","stderr","unpipe","onunpipe","unpipeInfo","hasUnpiped","onfinish","cleanedUp","pipeOnDrain","increasedAwaitDrain","dests","paused","_fromList","emitErrorNT","readableDestroyed","writableDestroyed","Timeout","clearFn","_id","_clearFn","close","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","_onTimeout","clearImmediate","afterTransform","_transformState","transforming","writechunk","rs","needTransform","writeencoding","K","W","Sha256","maj","sigma0","sigma1","gamma0","_f","_h","T1","T2","H","Sha512","Ch","Gamma0","Gamma0l","Gamma1","Gamma1l","getCarry","_ah","_bh","_ch","_dh","_eh","_fh","_gh","_hh","_al","_bl","_cl","_dl","_el","_fl","_gl","_hl","fh","gh","fl","gl","gamma0l","gamma1","gamma1l","Wi7h","Wi7l","Wi16h","Wi16l","Wil","Wih","majh","majl","sigma0h","sigma0l","sigma1h","sigma1l","Kih","Kil","chh","chl","t1l","t1h","t2l","t2h","writeInt64BE","Legacy","ZEROS","blocksize","_alg","ipad","_ipad","opad","_opad","MAX_ALLOC","checkParameters","sizes","rmd160","saltLen","shaFunc","rmd160Func","getDigest","ipad1","ipad2","DK","block1","destPos","T","U","thing","inL","inR","outL","outR","rip","pc1","r28shl","pc2table","pc2","sTable","substitute","permuteTable","padSplit","DESState","DES","_desState","deriveKeys","shiftTable","kL","kR","inp","inOff","outOff","_encrypt","lStart","rStart","keyL","keyR","incr32","getBlock","_cipher","_prev","chunkNum","_cache","GHASH","StreamCipher","ck","_ghash","_finID","ghash","toPad","ivBits","calcIv","_secCache","_alen","_mode","_authTag","_called","rump","xorTest","findPrime","simpleSieve","fermatTest","TWENTYFOUR","TWO","FIVE","TEN","THREE","ELEVEN","FOUR","_getPrimes","bn","brorand","MillerRabin","_randbelow","min_bytes","_randrange","rone","rn1","getDivisor","ch32","maj32","p32","ft_1","s0_256","s1_256","g0_256","g1_256","shaCommon","sha256_K","SHA256","sha512_K","SHA512","ch64_hi","yh","yl","zh","ch64_lo","maj64_hi","maj64_lo","s0_512_hi","s0_512_lo","s1_512_hi","s1_512_lo","g0_512_hi","g0_512_lo","g1_512_hi","g1_512_lo","_prepareBlock","c0_hi","c0_lo","c1_hi","c1_lo","c2_hi","c2_lo","c3_hi","c3_lo","c4_hi","c4_lo","T1_hi","T1_lo","T2_hi","T2_lo","reporter","restore","fail","_reporterState","_reverse","der","DERDecoder","entity","tree","DERNode","derDecodeTag","cls","oct","tagStr","derDecodeLen","_decode","_peekTag","any","decodedTag","_decodeTag","_skipUntilEnd","_decodeList","possibleEnd","_decodeStr","numstr","_isNumstr","printstr","_isPrintstr","_decodeObjid","identifiers","ident","subident","second","_decodeTime","mon","day","hour","UTC","_decodeNull","_decodeBool","_decodeInt","_use","_getDecoder","DEREncoder","_encodeComposite","encodedTag","tagByName","tagClassByName","encodeTag","_createEncoderBuffer","lenOctets","_encodeStr","_encodeObjid","objid","_encodeTime","_encodeNull","_encodeInt","numArray","_encodeBool","_getEncoder","_skipDefault","dataBuffer","_baseState","defaultBuffer","_encodeValue","i2ops","paddedMsg","Compute","arrify","gcpMetadata","oauth2client_1","serviceAccountEmail","tokenPath","instanceOptions","wrapError","fetchIdToken","targetAudience","idTokenPath","getParamBytesForAlg","MAX_OCTET","signatureAsBuffer","countPadding","derToJose","paramBytes","maxEncodedParamLength","inputLength","TAG_SEQ","seqLength","rLength","rOffset","sLength","sOffset","rPadding","sPadding","signatureBytes","rsBytes","shortLength","pay","getEnvelope","getPayload","getUserId","getAttributes","IdTokenClient","idTokenProvider","id_token","getIdTokenExpiryDate","payloadB64","getEnv","GCPEnv","envPromise","async","GAE_SERVICE","GAE_MODULE_NAME","APP_ENGINE","FUNCTION_NAME","FUNCTION_TARGET","CLOUD_FUNCTIONS","isAvailable","isComputeEngine","isKubernetesEngine","KUBERNETES_ENGINE","COMPUTE_ENGINE","getEnvMemoized","JWT","gtoken_1","jwtaccess_1","optionsOrEmail","keyFile","keyId","additionalClaims","createScoped","hasUserScopes","hasAnyScopes","target_audience","access","JWTAccess","gtoken","GoogleToken","defaultScopes","authorize","authorizeAsync","createGToken","expiresAt","client_email","private_key","private_key_id","projectId","project_id","quotaProjectId","quota_project_id","fromStream","inputStream","fromStreamAsync","fromAPIKey","getCredentials","creds","clientEmail","SignStream","VerifyStream","ALGORITHMS","isValid","DataStream","bufferEqual","MSG_INVALID_SECRET","MSG_INVALID_VERIFIER_KEY","supportsKeyObjects","createPublicKey","checkIsPublicKey","typeError","asymmetricKeyType","export","checkIsPrivateKey","fromBase64","toBase64","base64url","errMsg","normalizeInput","createHmacSigner","secret","checkIsSecretKey","createHmacVerifier","computedSig","createKeySigner","signer","createKeyVerifier","verifier","createPSSKeySigner","RSA_PSS_SALTLEN_DIGEST","createPSSKeyVerifier","createECDSASigner","createECDSAVerifer","createNoneSigner","createNoneVerifier","signerFactories","hs","es","none","verifierFactories","transformIV","ints","blocks","inc32","from64To32","_ints","_inBlock","_outBlock","_iv","_partialBlock","_partialOutput","_partialBytes","partialBytes","_R","additionalData","_cipherLength","_tagLength","tagLength","_tag","_hashBlock","_hashSubkey","componentBits","_m","generateHashTable","ivLength","_j0","_aDataLength","_s","lengths","z_i","v_i","lsb","tableMultiply","x_i","perInt","shft","generateSubHashTable","m_i","m_j","prf_TLS1","slen","ai","md5itr","sha1itr","md5bytes","sha1bytes","record","readVector","writeVector","tls","TLS_1_0","major","minor","TLS_1_1","TLS_1_2","SupportedVersions","Versions","MaxFragment","ConnectionEnd","PRFAlgorithm","tls_prf_sha256","BulkCipherAlgorithm","rc4","des3","CipherType","aead","MACAlgorithm","hmac_md5","hmac_sha1","hmac_sha256","hmac_sha384","hmac_sha512","CompressionMethod","ContentType","change_cipher_spec","alert","handshake","application_data","heartbeat","HandshakeType","hello_request","client_hello","server_hello","server_key_exchange","certificate_request","server_hello_done","certificate_verify","client_key_exchange","Alert","Level","fatal","Description","close_notify","unexpected_message","bad_record_mac","decryption_failed","record_overflow","decompression_failure","handshake_failure","illegal_parameter","access_denied","decode_error","decrypt_error","export_restriction","protocol_version","insufficient_security","internal_error","user_canceled","no_renegotiation","HeartbeatMessageType","heartbeat_request","heartbeat_response","CipherSuites","getCipherSuite","twoBytes","handleUnexpected","handleHelloRequest","handshaking","handshakes","createAlert","parseHelloMessage","session_id","cipher_suite","compression_method","cipher_suites","compression_methods","snl","session","server_name","serverNameList","cipherSuite","compressionMethod","createSecurityParameters","msgRandom","cRandom","sp","client_random","sRandom","createRandom","prf_algorithm","bulk_cipher_algorithm","cipher_type","enc_key_length","block_length","fixed_iv_length","record_iv_length","mac_algorithm","mac_length","mac_key_length","compression_algorithm","pre_master_secret","master_secret","server_random","handleServerHello","sessionId","expect","SCC","resuming","SCE","handleClientHello","sessionCache","getSession","clientHelloVersion","CCC","verifyClient","CCE","CKE","createRecord","createServerHello","createChangeCipherSpec","createConnectionState","createFinished","createServerKeyExchange","createCertificateRequest","createServerHelloDone","handleCertificate","certificate_list","SKE","serverCertificate","clientCertificate","handleServerKeyExchange","SCR","handleClientKeyExchange","enc_pre_master_secret","getPrivateKey","CCV","handleCertificateRequest","certificate_types","certificate_authorities","certificateRequest","SHD","handleCertificateVerify","msgBytes","handleServerHelloDone","createClientKeyExchange","SER","createCertificateVerify","getClientSignature","handleChangeCipherSpec","SFI","CFI","handleFinished","vd","SAD","CAD","peerCertificate","isConnected","connected","handleAlert","handleHandshake","fragmented","hsTable","handleApplicationData","dataReady","handleHeartbeat","createHeartbeat","expectedHeartbeatPayload","heartbeatReceived","__","R0","R1","R2","R3","R4","ctTable","H0","H1","H2","H3","H4","H5","H6","H7","H8","H9","generateKeys","tls10","client_write_MAC_key","server_write_MAC_key","client_write_key","server_write_key","client_write_IV","server_write_IV","createMode","sequenceNumber","macKey","macLength","macFunction","cipherState","cipherFunction","compressionState","compressFunction","updateSequenceNumber","initSecurityParameters","initConnectionState","getTimezoneOffset","createClientHello","cipherSuites","cSuites","compressionMethods","cMethods","virtualHost","serverName","snList","extLength","getCertificate","certBuffer","getSignature","certTypes","cAs","byteBuffer","payloadLength","plaintextLength","paddingLength","records","tlsData","tlsDataReady","_certErrorToAlertDesc","verifyOptions","_alertDescToCertError","createSessionCache","capacity","setSession","createConnection","cn","dpth","cts","closed","clearFail","reset","ready","compatibleVersion","_readRecordHeader","_readRecord","aligned","prepare","prepareHeartbeatRequest","prf_tls1","seqNum","pemToDer","privateKeyToPem","privateKeyInfoToPem","pbe","encryptedPrivateKeyValidator","PBES2AlgorithmsValidator","pkcs12PbeParamsValidator","prfOidToMessageDigest","prfOid","prfAlgorithm","supported","prfAlgorithmToMessageDigest","encryptPrivateKeyInfo","saltSize","encryptionAlgorithm","encryptedData","countBytes","encOid","cipherFn","createPbkdf2Params","saltBytes","generatePkcs12Key","decryptPrivateKeyInfo","encryptionOid","getCipher","encryptionParams","encrypted","encryptedPrivateKeyToPem","epki","encryptedPrivateKeyFromPem","encryptRsaPrivateKey","legacy","opensslDeriveBytes","decryptRsaPrivateKey","rc2","passBuf","Slen","S","Plen","Inew","getCipherForPBES2","getCipherForPKCS12PBE","supportedOids","kdfOid","kdfSalt","kdfIterationCount","encIv","dIvLen","digests","h5","h6","h7","reseeds","keyBytes","pools","_reseedSync","_seed","needed","seedFileSync","_2powK","seedBytes","defaultSeedFile","entropy","QuotaExceededError","pool","generateSync","seedFile","_reseed","registerWorker","piTable","rol","ror","expandKey","effKeyBits","L","T8","TM","mixRound","mashRound","_output","runPlan","plan","ptr","rsa_mgf1","maskLength","mgf1Md","mgf1","lHash","PS","PS_length","seedLength","seedMask","expectedLength","maskedSeed","lHashPrime","in_ps","primeincFindPrimeWithoutWorkers","generateRandom","workerMessage","primeincFindPrimeWithWorkers","primeincFindPrime","mrTests","getMillerRabinTests","millerRabinTests","maxBlockTime","_primeinc","p12","pkcs12","contentInfoValidator","pfxValidator","safeBagValidator","attributeValidator","certBagValidator","_getBagsByAttribute","safeContents","attrName","attrValue","bagType","safeBags","bag","_decodePkcs7Data","_decryptSafeContents","pkcs7","encryptedDataValidator","contentType","encAlgorithm","encParameter","encryptedContentAsn1","_decodeSafeContents","safeBag","bagId","_decodeBagAttributes","bagAttributes","bagAsn1","bagValue","pkcs8ShroudedKeyBag","keyBag","certBag","certId","x509Certificate","certAsn1","decodedAttrs","pkcs12FromAsn1","pfx","getBags","localKeyId","localKeyIdHex","friendlyName","getBagsByFriendlyName","getBagsByLocalKeyId","mac","macKeyBytes","macAlgorithm","macSalt","macIterations","macDigest","authSafe","contentInfo","_decodeAuthenticatedSafe","toPkcs12Asn1","useMac","generateLocalKeyId","bagAttrs","pairedCert","contents","certSafeBags","certBagAttrs","certSafeBag","certSafeContents","certCI","pkAsn1","keySafeContents","keyCI","macData","safe","macValue","p7v","pkcs7asn1","encryptedContentInfoValidator","envelopedDataValidator","signerValidator","signedDataValidator","recipientInfoValidator","cat","_states","messageLength128","hlen","t1_hi","t1_lo","t2_hi","t2_lo","s0_hi","s0_lo","s1_hi","ch_hi","maj_hi","maj_lo","a_hi","a_lo","b_hi","b_lo","c_hi","c_lo","d_hi","d_lo","e_hi","e_lo","f_hi","f_lo","g_hi","g_lo","h_hi","h_lo","levels","sLevelInfo","sLoggers","sConsoleLogger","LEVEL_LOCKED","NO_LEVEL_CHECK","INTERPOLATE","logMessage","messageLevelIndex","logger","prepareStandard","standard","prepareFull","prepareStandardFull","standardFull","makeLogger","logFunction","setLevel","lock","addLogger","levelHandlers","consoleLogger","jws","LRU","DEFAULT_HEADER","typ","maxAge","cachedToken","expiration","getExpirationTime","defaultClaims","claim","signedJWT","UserRefreshClient","_refreshToken","paramsSerializer","serializedParams","hashmarkIndex","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","adapter","getDefaultAdapter","transformRequest","transformResponse","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","settle","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","requestData","requestHeaders","auth","username","btoa","fullPath","baseURL","onreadystatechange","readyState","responseURL","responseHeaders","getAllResponseHeaders","responseType","onabort","ontimeout","timeoutErrorMessage","xsrfValue","withCredentials","onDownloadProgress","onUploadProgress","upload","cancelToken","abort","enhanceError","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","directMergeKeys","getMergedValue","mergeDeepProperties","axiosKeys","otherKeys","Cancel","GoogleSpreadsheetCell","checkForDuplicateHeaders","checkForDupes","grouped","parentSpreadsheet","_spreadsheet","_rawProperties","_cells","_rowMetadata","_columnMetadata","_fillCellData","_makeSingleUpdateRequest","requestType","requestParams","_ensureInfoLoaded","resetLocalCache","dataOnly","headerValues","dataRanges","startRow","startColumn","numRows","rowMetadata","numColumns","columnMetadata","actualRow","actualColumn","cellData","_updateRawData","_getProp","_setProp","sheetId","sheetType","gridProperties","hidden","tabColor","rightToLeft","columnCount","a1SheetName","encodedA1SheetName","lastColumnLetter","cellStats","allCells","nonEmpty","loaded","getCellByA1","a1Address","columnIndex","getCell","loadCells","sheetFilters","filtersArray","saveUpdatedCells","cellsToSave","_isDirty","saveCells","cellsToUpdate","requests","_getUpdateRequest","responseRanges","_makeBatchUpdateRequest","loadHeaderRow","getCellsInRange","setHeaderRow","trimmedHeaderValues","axios","valueInputOption","includeValuesInResponse","majorDimension","updatedData","addRows","rowsAsArrays","rowAsArray","insertDataOption","updatedRange","updates","rowNumber","firstRow","lastRow","lastColumn","rawRows","rowNum","updateProperties","fields","updateGridProperties","resize","updateDimensionProperties","columnsOrRows","bounds","dimension","endIndex","a1Range","updateNamedRange","addNamedRange","deleteNamedRange","repeatCell","autoFill","cutPaste","copyPaste","mergeCells","mergeType","unmergeCells","updateBorders","addFilterView","appendCells","clearBasicFilter","deleteDimension","deleteEmbeddedObject","deleteFilterView","duplicateFilterView","duplicateSheet","findReplace","insertDimension","insertRange","moveDimension","updateEmbeddedObjectPosition","pasteData","textToColumns","updateFilterView","deleteRange","appendDimension","addConditionalFormatRule","updateConditionalFormatRule","deleteConditionalFormatRule","sortRange","setDataValidation","setBasicFilter","addProtectedRange","updateProtectedRange","deleteProtectedRange","autoResizeDimensions","addChart","updateChartSpec","updateBanding","addBanding","deleteBanding","createDeveloperMetadata","updateDeveloperMetadata","deleteDeveloperMetadata","randomizeRange","addDimensionGroup","deleteDimensionGroup","updateDimensionGroup","trimWhitespace","deleteDuplicates","addSlicer","updateSlicerSpec","deleteSheet","del","copyToSpreadsheet","destinationSpreadsheetId","post","parentSheet","_sheet","_rowNumber","_rawData","_deleted","startRowIndex","endRowIndex","shiftDimension","errorInfo","MODE_NUMBER","MODE_ALPHA_NUM","MODE_8BIT_BYTE","MODE_KANJI","Q","math","QRPolynomial","getLength","gexp","glog","QRMath","LOG_TABLE","EXP_TABLE","reactIs","REACT_STATICS","contextType","defaultProps","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","KNOWN_STATICS","caller","MEMO_STATICS","TYPE_STATICS","getStatics","isMemo","ForwardRef","Memo","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","_QRCode2","_interopRequireDefault","_ErrorCorrectLevel2","_propTypes2","_react","_react2","_QRCodeCell2","_QRCodeSurface2","bgColor","fgColor","oneOf","QRCode","qrcode","addData","make","modules","tileSize","cellIndex","qrItemWidth","qrItemHeight","transformX","transformY","Fragment","StrictMode","Profiler","Suspense","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","E","isReactComponent","forceUpdate","F","isPureReactComponent","__self","__source","J","$$typeof","_owner","_status","_result","ReactCurrentDispatcher","ReactCurrentBatchConfig","transition","ReactCurrentOwner","IsSomeRendererActing","only","PureComponent","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","_context","createFactory","lazy","_payload","useCallback","useDebugValue","useEffect","useImperativeHandle","useLayoutEffect","useMemo","useReducer","useRef","useState","aa","ba","ca","da","ea","fa","ha","ka","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","sanitizeURL","removeEmptyString","oa","pa","qa","ma","na","la","xlinkHref","ra","sa","ta","wa","xa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ma","Ka","La","Na","Oa","Pa","prepareStackTrace","construct","Qa","_render","Ra","Sa","Ta","Va","_valueTracker","stopTracking","Ua","Wa","Xa","Ya","defaultChecked","_wrapperState","initialChecked","Za","initialValue","controlled","$a","ownerDocument","fb","defaultSelected","gb","hb","ib","kb","lb","mb","ob","namespaceURI","innerHTML","firstChild","removeChild","MSApp","execUnsafeLocalFunction","pb","nodeValue","qb","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","lineClamp","lineHeight","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","sb","tb","setProperty","ub","menuitem","area","embed","img","keygen","link","meta","track","wbr","vb","wb","is","xb","correspondingUseElement","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Ob","Pb","Qb","Rb","Sb","Tb","Ub","Vb","Wb","Xb","Zb","alternate","return","$b","memoizedState","dehydrated","cc","bc","dc","fc","gc","hc","ic","jc","kc","lc","mc","nc","oc","pc","rc","blockedOn","domEventName","eventSystemFlags","targetContainers","sc","pointerId","vc","wc","lanePriority","unstable_runWithPriority","priority","hydrate","containerInfo","Ac","Bc","unstable_scheduleCallback","unstable_NormalPriority","Cc","Dc","Ec","animationend","animationiteration","animationstart","transitionend","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Pc","Qc","unstable_now","Rc","Uc","pendingLanes","expiredLanes","suspendedLanes","pingedLanes","Vc","entangledLanes","entanglements","Wc","Xc","Yc","Zc","$c","eventTimes","bd","cd","dd","unstable_UserBlockingPriority","fd","gd","hd","uc","jd","kd","ld","nd","od","pd","_reactName","_targetInst","currentTarget","isDefaultPrevented","isPropagationStopped","cancelBubble","isPersistent","wd","xd","yd","eventPhase","bubbles","cancelable","timeStamp","isTrusted","ud","detail","Ad","screenX","screenY","pageX","pageY","getModifierState","zd","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","which","Rd","Td","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","le","datetime","month","tel","week","oe","pe","qe","te","ue","ve","we","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","Le","nextSibling","Me","compareDocumentPosition","Ne","HTMLIFrameElement","contentWindow","Oe","Pe","Qe","Re","Se","Te","Ue","selectionStart","selectionEnd","anchorNode","anchorOffset","focusNode","focusOffset","Ve","We","Xe","Ye","Ze","Yb","$e","af","bf","cf","df","passive","ef","ff","parentWindow","gf","hf","je","char","ke","jf","kf","lf","mf","autoFocus","nf","of","pf","qf","sf","previousSibling","tf","vf","wf","xf","yf","zf","Af","Bf","Cf","Df","Ef","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Ff","Gf","Hf","If","Jf","__reactInternalMemoizedMergedChildContext","Kf","Lf","Mf","Nf","Of","Pf","unstable_cancelCallback","Qf","unstable_shouldYield","Rf","unstable_requestPaint","Sf","Tf","unstable_getCurrentPriorityLevel","Uf","unstable_ImmediatePriority","Vf","Wf","Xf","unstable_LowPriority","Yf","unstable_IdlePriority","Zf","$f","ag","bg","cg","dg","eg","fg","gg","hg","ig","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","childLanes","tg","dependencies","firstContext","lanes","ug","vg","responders","wg","xg","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","effects","yg","zg","eventTime","lane","Ag","Bg","Cg","Dg","Eg","Fg","Gg","Kg","_reactInternals","Hg","Ig","Jg","Lg","Mg","Ng","UNSAFE_componentWillReceiveProps","Og","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","Pg","Qg","_stringRef","Rg","Sg","lastEffect","nextEffect","firstEffect","Tg","Ug","Vg","Wg","Xg","Yg","Zg","$g","ih","memoizedProps","revealOrder","jh","kh","lh","mh","nh","oh","pendingProps","qh","rh","th","uh","_workInProgressVersionPrimary","vh","wh","Ah","Bh","Dh","Eh","Fh","Gh","Hh","baseQueue","Ih","Jh","Kh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","dispatch","Lh","Mh","_getVersion","_source","mutableReadLanes","Nh","getSnapshot","subscribe","setSnapshot","Oh","Ph","Qh","Rh","deps","Sh","Th","Uh","Vh","Wh","Xh","Yh","Zh","$h","bi","di","readContext","useDeferredValue","useTransition","useMutableSource","useOpaqueIdentifier","unstable_isNewReconciler","uf","fi","gi","ji","ki","baseLanes","oi","pi","UNSAFE_componentWillUpdate","componentWillUpdate","qi","ri","pendingContext","Bi","Ci","Di","Ei","retryLane","ti","fallback","unstable_avoidThisFallback","ui","unstable_expectedLoadTime","yi","zi","isBackwards","rendering","renderingStartTime","tailMode","Ai","Fi","Gi","wasMultiple","createElementNS","V","Hi","Ii","Ji","Ki","Li","Mi","Ni","Oi","Pi","Qi","Ri","Si","componentDidCatch","Ti","componentStack","Ui","Vi","Wi","Xi","__reactInternalSnapshotBeforeUpdate","Yi","Zi","$i","aj","bj","onCommitFiberUnmount","cj","dj","ej","fj","gj","hj","_reactRootContainer","ij","jj","kj","lj","mj","nj","oj","pj","X","Y","rj","sj","tj","uj","vj","wj","Z","xj","yj","zj","Aj","Bj","Cj","Dj","Ej","Fj","Gj","Hj","Ij","Jj","Sc","Kj","Lj","Mj","callbackNode","expirationTimes","callbackPriority","Tc","Nj","Oj","Pj","Qj","Rj","Sj","Tj","finishedWork","finishedLanes","Uj","timeoutHandle","Wj","Xj","pingCache","Yj","Zj","va","ak","bk","focusedElem","selectionRange","ek","setStart","removeAllRanges","addRange","setEnd","scrollTop","onCommitFiberRoot","fk","gk","pendingChildren","jk","mutableSourceEagerHydrationData","lk","mk","nk","qk","hydrationOptions","mutableSources","_internalRoot","rk","tk","hasAttribute","sk","uk","kk","hk","unstable_observedBits","unmount","form","Vj","vk","Events","wk","findFiberByHostInstance","bundleType","rendererPackageName","xk","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","yk","supportsFiber","inject","findDOMNode","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","performance","MessageChannel","unstable_forceFrameRate","cancelAnimationFrame","requestAnimationFrame","port2","port1","onmessage","sortIndex","startTime","expirationTime","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_wrapCallback","jsx","jsxs","Axios","GOOGLE_AUTH_SCOPES","AUTH_MODES","spreadsheetId","authMode","_rawSheets","isParamTypeObject","isParamTypeArray","interceptors","use","_setAxiosRequestAuth","_handleAxiosResponse","_handleAxiosErrors","createNewSpreadsheetDocument","sheets","_updateOrCreateSheet","useApiKey","useRawAccessToken","useOAuth2Client","oAuth2Client","useServiceAccountAuth","impersonateAs","jwtClient","renewJwtAuth","includeSpreadsheetInResponse","_updateRawProperties","updatedSpreadsheet","replies","responseIncludeGridData","newProperties","timeZone","autoRecalc","defaultFormat","spreadsheetTheme","iterativeCalculationSettings","loadInfo","includeCells","includeGridData","getInfo","sheetCount","sheetsById","sheetsByIndex","sheetsByTitle","addSheet","newSheetId","newSheet","addWorksheet","namedRangeId","filters","readOnlyMode","dataFilters","gridRange","ranges","toPropertyKey","toPrimitive","GoogleAuth","googleauth_1","computeclient_1","envDetect_1","iam_1","IAMAuth","idtokenclient_1","jwtclient_1","refreshclient_1","transporters_1","CLOUD_SDK_CLIENT_ID","child_process_1","fs","os","checkIsGCE","jsonContent","cachedCredential","_cachedProjectId","keyFilename","clientOptions","isGCE","getProjectId","getProjectIdAsync","_getDefaultProjectIdPromise","getProductionProjectId","getFileProjectId","getDefaultServiceProjectId","getGCEProjectId","getApplicationDefault","optionsOrCallback","getApplicationDefaultAsync","credential","_tryGetApplicationCredentialsFromEnvironmentVariable","_tryGetApplicationCredentialsFromWellKnownFile","_checkIsGCE","credentialsPath","_getApplicationCredentialsFromFilePath","_isWindows","home","existsSync","filePath","realpathSync","lstatSync","readStream","createReadStream","_cacheClientFromJSON","sys","configuration","core","project","getClient","getCredentialsAsync","recursive","getIdTokenClient","authorizeRequest","uri","encodeBase64StringUtf8","signedBlob","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","rt","gOPD","hasOwnConstructor","hasIsPrototypeOf","getProperty","copyIsArray","deep","getGlobal","fetch","Headers","Request","Response","maxKeys","kstr","vstr","stringifyPrimitive","ks","duplex","noResponseRetries","punycode","Url","protocol","slashes","hostname","protocolPattern","portPattern","simplePathPattern","unwise","autoEscape","nonHostChars","hostEndingChars","hostnamePartPattern","hostnamePartStart","unsafeProtocol","javascript","hostlessProtocol","slashedProtocol","http","https","ftp","gopher","urlParse","parseQueryString","slashesDenoteHost","queryIndex","splitter","uSplit","simplePath","lowerProto","atSign","hostEnd","hec","parseHost","ipv6Hostname","hostparts","newpart","validParts","notHost","toASCII","esc","qm","arrayFormat","addQueryPrefix","resolveObject","rel","tkeys","tkey","rkeys","rkey","relPath","isSourceAbs","isRelAbs","removeAllDots","srcPath","psychotic","authInHost","maxInt","regexPunycode","regexNonASCII","regexSeparators","stringFromCharCode","mapDomain","ucs2decode","ucs2encode","digitToBasic","digit","flag","adapt","numPoints","firstTime","baseMinusTMin","basic","oldi","baseMinusT","bias","handledCPCount","basicLength","handledCPCountPlusOne","qMinusT","getSideChannel","arrayPrefixGenerators","brackets","comma","indices","pushToArray","valueOrArray","toISO","allowDots","allowEmptyArrays","charsetSentinel","commaRoundTrip","encodeDotInKeys","encoder","encodeValuesOnly","formatter","serializeDate","skipNulls","strictNullHandling","sentinel","generateArrayPrefix","sideChannel","tmpSc","findFlag","objKeys","encodedPrefix","adjustedPrefix","encodedKey","keyPrefix","valueSideChannel","normalizeStringifyOptions","joined","getSideChannelList","getSideChannelMap","makeChannel","$channelData","listGetNode","isDelete","curr","$o","deletedNode","listDelete","listGet","listHas","listSet","EvalError","ReferenceError","$isNaN","origSymbol","hasSymbolSham","reflectGetProto","originalGetProto","getDunderProto","hasProtoAccessor","callBind","$getPrototypeOf","concatty","bound","arrLike","slicy","boundLength","boundArgs","joiner","joiny","Empty","$reflectApply","$hasOwn","$WeakMap","$weakMapGet","$weakMapSet","$weakMapHas","$weakMapDelete","$wm","allowSparse","arrayLimit","decodeDotInKeys","duplicates","ignoreQueryPrefix","interpretNumericEntities","parameterLimit","parseArrays","strictDepth","throwOnLimitExceeded","numberStr","parseArrayValue","currentArrayLength","givenKey","valuesParsed","parentKey","leaf","cleanRoot","decodedRoot","parseObject","normalizeParseOptions","tempObj","cleanStr","skipIndex","bracketEqualsPos","encodedVal","parseValues","objectAssign","pSlice","functionsHaveNames","pToString","arrbuf","something","rawname","stackStartFunction","AssertionError","_deepEqual","memos","multiline","actualIndex","actualVisitedObjects","aIsArgs","bIsArgs","objEquiv","expectedException","isPrototypeOf","_throws","shouldThrow","_tryBlock","userProvidedMessage","isUnexpectedException","generatedMessage","getMessage","fn_name","next_line","notEqual","deepEqual","deepStrictEqual","notDeepEqual","notDeepStrictEqual","strictEqual","notStrictEqual","throws","doesNotThrow","ifError","letters","lacksProperEnumerationOrder","preventExtensions","thrower","assignHasPendingExceptions","$push","$propIsEnumerable","originalGetSymbols","source1","nextKey","propValue","origKeys","keysShim","originalKeys","shim","keysWorksWithArguments","hasDontEnumBug","hasProtoEnumBug","dontEnums","equalsConstructorPrototype","excludedKeys","$applicationCache","$console","$external","$frame","$frameElement","$frames","$innerHeight","$innerWidth","$onmozfullscreenchange","$onmozfullscreenerror","$outerHeight","$outerWidth","$pageXOffset","$pageYOffset","$parent","$scrollLeft","$scrollTop","$scrollX","$scrollY","$self","$webkitIndexedDB","$webkitStorageInfo","$window","hasAutomationEqualityBug","theKeys","skipProto","skipConstructor","equalsConstructorPrototypeIfNotBuggy","createDebug","prevTime","enableOverride","coerce","selectColor","newDebug","toNamespace","disable","skips","enable","plural","msAbs","isPlural","long","fmtLong","fmtShort","events_1","debug_1","__importDefault","promisify_1","json_stringify","json_parse","gap","escapable","mind","replacer","space","suspectProtoRx","suspectConstructorRx","_options","storeAsString","alwaysParseAsBig","useNativeBigInt","protoAction","constructorAction","escapee","uffff","startAt","white","reviver","walk","endianness","loadavg","uptime","freemem","totalmem","cpus","release","appVersion","networkInterfaces","getNetworkInterfaces","arch","tmpdir","tmpDir","EOL","homedir","base64js","TextEncoder","inputBuffer","outputBuffer","padBase64","pubkey","dataArray","signatureArray","cryptoKey","importKey","uint8array","TextDecoder","Constructor","_classCallCheck","registerImmediate","nextHandle","tasksByHandle","currentlyRunningATask","attachTo","runIfPresent","importScripts","postMessageIsAsynchronous","oldOnMessage","canUsePostMessage","messagePrefix","onGlobalMessage","installPostMessageImplementation","installMessageChannelImplementation","script","installReadyStateChangeImplementation","task","Sha","rotl30","ft","Sha1","rotl5","Sha224","Sha384","ZERO_BUF","toBrowser","checks","getNextTick","queueMicrotask","browserPbkdf2","deriveBits","resolvePromise","prom","checkNative","resp","aesModes","desModes","ebtk","suite","instantiate","EDE","modeName","_des","CBCState","_cbcInit","_cbcState","superProto","EDEState","k3","_edeState","MODES","AuthCipher","Splitter","_autopadding","PADDING","setTo","padBuff","encryptStart","encryptByte","byteParam","shiftIn","ZEROES","fromArray","_multiply","lsbVi","abl","_last","padded","autoPadding","generatePrime","DH","ENCODINGS","generator","genc","SEVEN","_pub","_priv","primeCache","malleable","setGenerator","__prime","_primeLen","_primeCode","formatReturnValue","checkPrime","__gen","_gen","getPublicKey","computeSecret","front","getGenerator","_hashType","_signType","sig","sigBuffer","EC","getKey","hbits","bits2int","bits2octets","obits","makeKey","kv","makeR","signType","curveId","keyFromPrivate","toDER","ecSign","dsaSign","ShortCurve","tinv","zeroA","threeA","endo","_getEndomorphism","_endoWnafT1","_endoWnafT2","isRed","inf","JPoint","zOne","betas","_getEndoRoots","lambdas","vec","_getEndoBasis","ntinv","prevR","aprxSqrt","y1","y2","len1","_endoSplit","v1","v2","q2","ax","rhs","_endoWnafMulAdd","npoints","ncoeffs","endoMul","obj2point","nx","ny","ys1","dyinv","mulAdd","jmulAdd","_precompute","zinv","zinv2","ay","pz2","z2","nz","jx","jy","jz","jz4","jyd","jx2","jyd2","jyd4","dny","_zeroDbl","_threeDbl","_dbl","xx","yy","yyyy","yyyy8","c8","gamma","alpha","beta4","beta8","ggamma8","jy2","jxd4","jyd8","trpl","zz","yyu4","kbase","z3","pz3","eqXToP","MontCurve","i4","a24","diffAdd","jumlAdd","EdwardsCurve","twisted","mOneA","oneC","_mulA","_mulC","lhs","pointFromY","_extDbl","nt","_projDbl","_extAdd","_projAdd","sha1_K","SHA1","SHA224","SHA384","HmacDRBG","KeyPair","Signature","keyPair","fromPrivate","keyFromPublic","fromPublic","genKeyPair","drbg","pers","persEnc","entropyEnc","nonce","ns2","_truncateToN","truncOnly","msgBitLength","bkey","getPrivate","ns1","kp","kpX","recoveryParam","canonical","sinv","getPublic","recoverPubKey","isYOdd","isSecondKey","rInv","getKeyRecoveryParam","Qprime","predResist","minEntropy","reseedInterval","nonceEnc","_hmac","kmac","reseed","addEnc","_importPrivate","privEnc","_importPublic","pubEnc","derive","_importDER","Position","place","octetLen","rmPadding","constructLength","octets","backHalf","EDDSA","pointClass","encodingLength","keyFromSecret","hashInt","Rencoded","encodePoint","s_","pubBytes","makeSignature","SG","fromSecret","lastIx","normed","xIsOdd","encodeInt","decodeInt","isPoint","_secret","_pubBytes","privBytes","getSecret","_S","_Rencoded","_Sencoded","Sencoded","toBytes","AlgorithmIdentifier","null_","bitstr","PrivateKeyInfo","octstr","EncryptedPrivateKeyInfo","ECParameters","namedCurve","explicit","Entity","_createNamed","named","runInThisContext","_initNamed","Object_keys","defineProp","globals","Script","iframe","win","wEval","wExecScript","execScript","winKeys","runInNewContext","isContext","createScript","ReporterError","rethrow","pathLen","enterKey","exitKey","leaveKey","enterObject","leaveObject","wrapResult","tags","methods","reverseArgs","useDecoder","implicit","_wrap","stateProps","cstate","_useArgs","def","prevObj","present","prevKey","_decodeGeneric","_decodeChoice","_getUse","_encodeChoice","_encodePrimitive","PEMDecoder","PEMEncoder","asn","Time","utcTime","utctime","generalTime","AttributeTypeValue","SubjectPublicKeyInfo","RelativeDistinguishedName","setof","RDNSequence","seqof","Name","rdnSequence","Validity","Extension","bool","TBSCertificate","X509Certificate","findProc","startRegex","fullRegex","evp","okey","decrypted","cipherKey","match2","checkValue","ecVerify","unpacked","montp","dsaVerify","ECDH","aliases","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1","curveType","p256","secp256r1","secp192r1","p384","p521","inenc","withPublic","iHash","hLen2","dblen","maskedDb","oaep","nonZero","zBuffer","dif","oldBrowser","safeBuffer","randombytes","kBufferMaxLength","kMaxUint32","assertOffset","actualFill","ourBuf","uint","vpairs","invalid","getParamSize","paramBytesForAlg","ES256","ES384","ES512","setCredentials","util_1","readFile","ErrorWithCode","GOOGLE_TOKEN_URL","getPem","rawToken","tokenType","hasExpired","inFlightRequest","getTokenAsyncInner","ensureEmail","requestToken","revokeTokenAsync","assertion","tokenExpires","error_description","jwa","jwsSign","secretOrKey","securedInput","encodedHeader","encodedPayload","jwsSecuredInput","secretStream","bufferEq","install","origBufEqual","origSlowBufEqual","JWS_REGEX","safeJsonParse","headerFromJWS","jwsSig","signatureFromJWS","isValidJws","jwsVerify","securedInputFromJWS","jwsDecode","payloadFromJWS","getPemAsync","filename","keyp12","p12base64","p12Der","p12Asn1","bags","convertToPem","_reverseAlphabets","digits","_encodeWithByteBuffer","decrypt_aes_cbc_sha1","encrypt_aes_cbc_sha1","encrypt_aes_cbc_sha1_padding","decrypt_aes_cbc_sha1_padding","macLen","mac2","mac1","compareMacs","asn1Validator","NativeBuffer","messageToNativeBuffer","PUBLIC_KEY_BYTE_LENGTH","PRIVATE_KEY_BYTE_LENGTH","SEED_BYTE_LENGTH","SIGN_BYTE_LENGTH","HASH_BYTE_LENGTH","pk","scalarbase","pack","crypto_sign_keypair","privateKeyOid","ed25519Oid","EdDSA25519","privateKeyBytes","publicKeyBytes","ed25519PublicKey","publicKeyFromPrivateKey","signedMsg","sm","smlen","modL","crypto_sign","chk","den","den2","den4","den6","set25519","gf1","unpack25519","pow2523","neq25519","par25519","gf0","unpackneg","scalarmult","crypto_verify_32","crypto_sign_open","D2","msgLen","cswap","sel25519","tx","ty","inv25519","pack25519","car25519","vn","t4","t5","t6","t7","t8","t9","t10","t11","t12","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","t24","t25","t26","t27","t28","t29","t30","b10","b11","b12","b13","b14","b15","kem","_createKDF","kdf","counterStart","encapsulation","kdf1","kdf2","p7","_recipientFromAsn1","encryptedContent","parameter","encKey","_recipientsToAsn1","recipients","_signerToAsn1","authenticatedAttributesAsn1","signatureAlgorithm","unauthenticatedAttributes","attrsAsn1","_attributeToAsn1","messageDigest","signingTime","_fromAsn1","rawCapture","_decryptContent","ciph","messageFromPem","messageFromAsn1","messageToPem","pemObj","toAsn1","envelopedData","createEnvelopedData","createEncryptedData","signedData","createSignedData","fromAsn1","crls","signers","digestAlgorithmIdentifiers","signerInfos","addSigner","authenticatedAttributes","detached","detachedContent","mds","_signersToAsn1","addSignerInfos","addDigestAlgorithmIds","addCertificateRevokationList","crl","infos","_recipientsFromAsn1","recipientInfos","findRecipient","sAttr","rAttr","recipient","privKey","desCBC","addRecipient","ciphFn","ssh","_addBigIntegerToBuffer","hexVal","_addStringToBuffer","_sha1","privateKeyToPutty","ppk","pubbuffer","privbuffer","encLen","aeskey","mackey","macbuffer","publicKeyToOpenSSH","privateKeyToOpenSSH","sTasks","sNextTaskId","sTaskQueues","READY","RUNNING","BLOCKED","SLEEPING","DONE","ERROR","STOP","START","BLOCK","UNBLOCK","SLEEP","WAKEUP","CANCEL","FAIL","sStateTable","Task","subtasks","timeoutId","swapTime","userData","subrun","subtask","successCallback","failureCallback","parallel","ptask","startParallelTask","pname","failure","runNext","sleep","wakeup","cancelTimeout","permitsNeeded","recurse","doNext","suppressCallbacks","tasks","Yallist","LENGTH","LENGTH_CALCULATOR","ALLOW_STALE","MAX_AGE","DISPOSE","NO_DISPOSE_ON_SET","LRU_LIST","CACHE","UPDATE_AGE_ON_GET","naiveLength","doUse","hit","isStale","unshiftNode","walker","removeNode","Entry","forEachStep","thisp","stale","noDisposeOnSet","updateAgeOnGet","mL","allowStale","mA","lengthCalculator","lC","itemCount","rforEach","dump","dumpLru","peek","prune","inserted","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","mergeConfig","defaultConfig","instanceConfig","CancelToken","all","promises","isAxiosError","InterceptorManager","dispatchRequest","fulfilled","rejected","getUri","eject","transformData","throwIfCancellationRequested","throwIfRequested","fns","normalizedName","lineNumber","columnNumber","expires","domain","secure","toGMTString","isAbsoluteURL","combineURLs","requestedURL","relativeURL","ignoreDuplicateOf","originURL","urlParsingNode","resolveURL","requestURL","executor","_row","_column","_draftData","_error","effectiveValue","errorValue","a1Column","a1Row","valueType","formattedValue","formula","formulaError","hyperlink","note","userEnteredFormat","effectiveFormat","_getFormatParam","freeze","_setFormatParam","clearFormat","numberFormat","borders","horizontalAlignment","verticalAlignment","wrapStrategy","textDirection","textFormat","hyperlinkDisplayType","textRotation","clearAllFormatting","discardUnsavedChanges","isValueUpdated","isNoteUpdated","isFormatUpdated","isFormatCleared","backgroundColorStyle","updateCells","userEnteredValue","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","propFullName","getShim","ReactPropTypes","arrayOf","instanceOf","objectOf","oneOfType","shape","checkPropTypes","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Lazy","Portal","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isForwardRef","isFragment","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","BitByte","RSBlock","BitBuffer","Polynomial","typeNumber","errorCorrectLevel","moduleCount","dataCache","isDark","getModuleCount","rsBlocks","getRSBlocks","totalDataCount","dataCount","put","getLengthInBits","makeImpl","getBestMaskPattern","maskPattern","setupPositionProbePattern","setupPositionAdjustPattern","setupTimingPattern","setupTypeInfo","setupTypeNumber","createData","mapData","minLostPoint","lostPoint","getLostPoint","createMovieClip","target_mc","instance_name","qr_mc","createEmptyMovieClip","beginFill","lineTo","endFill","getPatternPosition","getBCHTypeNumber","getBCHTypeInfo","inc","bitIndex","byteIndex","dark","getMask","PAD0","PAD1","putBit","createBytes","maxDcCount","maxEcCount","dcdata","ecdata","dcCount","ecCount","totalCount","rsPoly","getErrorCorrectPolynomial","modPoly","modIndex","totalCodeCount","QR8bitByte","ECL","QRRSBlock","RS_BLOCK_TABLE","rsBlock","getRsBlockTable","QRBitBuffer","bufIndex","Mode","QRMaskPattern","QRUtil","PATTERN_POSITION_TABLE","G15","G18","G15_MASK","getBCHDigit","errorCorrectLength","qrCode","sameCount","darkCount","QRCodeCell","QRCodeSurface"],"mappings":";0FAGEA,EAAOC,QAAUC,EAAQ,I,+BCAzBF,EAAOC,QAAUC,EAAQ,I,gBCI3BF,EAAOC,QAAU,CAEfE,QAAS,CACPC,mBAAmB,G,kBCTvB,IAAIC,EAASH,EAAQ,GACjBI,EAASD,EAAOC,OAGpB,SAASC,EAAWC,EAAKC,GACvB,IAAK,IAAIC,KAAOF,EACdC,EAAIC,GAAOF,EAAIE,EAEnB,CASA,SAASC,EAAYC,EAAKC,EAAkBC,GAC1C,OAAOR,EAAOM,EAAKC,EAAkBC,EACvC,CAVIR,EAAOS,MAAQT,EAAOU,OAASV,EAAOW,aAAeX,EAAOY,gBAC9DlB,EAAOC,QAAUI,GAGjBE,EAAUF,EAAQJ,GAClBA,EAAQK,OAASK,GAQnBJ,EAAUD,EAAQK,GAElBA,EAAWI,KAAO,SAAUH,EAAKC,EAAkBC,GACjD,GAAmB,kBAARF,EACT,MAAM,IAAIO,UAAU,iCAEtB,OAAOb,EAAOM,EAAKC,EAAkBC,EACvC,EAEAH,EAAWK,MAAQ,SAAUI,EAAMC,EAAMC,GACvC,GAAoB,kBAATF,EACT,MAAM,IAAID,UAAU,6BAEtB,IAAII,EAAMjB,EAAOc,GAUjB,YATaI,IAATH,EACsB,kBAAbC,EACTC,EAAIF,KAAKA,EAAMC,GAEfC,EAAIF,KAAKA,GAGXE,EAAIF,KAAK,GAEJE,CACT,EAEAZ,EAAW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B,EAAYC,EAAOC,GAC5B,6KACA,CAIA,SAASC,EAASn2D,EAAUo2D,GAC5B,kBACA,OACA,gBAGA,aACA,OAHA,KAGA,MAEA,QALA,KAKA,GAGA,yBACA,QACA,GAASA,EACT,CACA,CACA,CAOA,SAASC,EAAS7hC,EAAIvyB,EAAGoV,GACzB,gBACA,cACA,CAEA,SAASoP,EAAM+N,GACf,qBACA,8BAEA,gBACA,uBACa8hC,EACb,kBAEA,eAEA,CAEA,SAASC,EAAQ/hC,EAAIgiC,GACrB,2BACA,iBACA,mBACA,qBACA,sBACA,CAEA,SAASC,EAAUjiC,GACnB,mBACA,cACA,eACA,gBACA,gBACA,CAEA,IAAIkiC,EAAU,YAAa,IAAI11D,MAAOioD,UAEtC,SAAS0N,IACT,IACA,EADA,KAEA,OACA,iCACA,KACA,wBACA,gCACA,qBACA,0CACA,QACA,SACA,YAGA,WAAyCC,EAAgBA,EAAgBh6D,OAAS,GAAG45D,MAGrF,4BACA,cAEA,IACA,WACA,YAEA,CAEA,YAlBA,CAmBA,GACA,EACA,8BACA,SACA,EACA,iCACA,SApJA,SAAuBt3D,EAAK6K,GAC5B,eACA,uBAEA,eACA,wDAIA,QACA,CA0IA,IACA,WACU,EACV,EACA,uBACA,WAEA,2BAGA,OAFA,qBACA,4BAIA,SACA,IACA,uBACA,QACA,WACA,aACA,OACA,iBACA,eACA,SACA,UAEA,IAEA,WACA,aAGA,WAEA,yBAEA,kBACA,+DAEA,EA2EA,SAA2B8sD,EAAeC,EAAUC,EAAQ96D,GAC5D,4IACA,CA7EA,mBAKA,SACA,iBACA,eAEA,IACA,uBAGA,oBAGA,IACA,KACA,gBACA,oCACA,6CACA,kBACA,oBACA,gBACA,kBACA,4BACA,GAAau7C,GACb,0BAEA,IACA,gBAEA,EAGA,yBACA,0BACA,GAAWwf,GAJX,2BAOA,IACA,EACA,0BACA,MACA,qBACA,oBACA,iBACA,SACA,SACA,yBACA,uBACA,iBACA,iBACA,kDACA,qBAiBA,SAAiBn/C,GACjB,oBACA,CAnBA,IAEA,uFACA,sCACA,uDACA,kCACA,qBACA,oBACA,cACA,gBACA,eACA,GAAWo/C,EACX,CACA,EAEA,CAUA,IAAIC,EAAU,GACVC,EAAW,CACf,wBAEIC,EAAgB,CACpB,kBAEA,eACA,iCACA,WAIA,uBACA,+BACA,4EAEA,IACA,SACA,EACA,4BACA,WAEA,sBAEA,oBACA,kBACA,EAEA,iBACA,uBACA,kBAEA,oBACA,sBACA,YACWC,IAKX,6CACA,sBACA,YACWA,IAEX,GACA,EACA,oCAYA,aAXA,uBACA,mBACA,wCACA,2BACA,aACA,oBACA,OAEA,eANA,CAOA,IAEA,UACA,gCACA,0CAEA,yBACA,eAJA,CAOA,EACA,iCACA,SAMA,OALA,uBACA,uCAEA,8CACA,IACA,CACA,EACA,6BACA,MASA,OARA,uBAEA,iBAEA,8DACA,+CAEA,IACA,CACA,GAGA,SAASC,EAActrC,GACvB,iBACA,WACA,SACA,aACA,YACA,SACA,WACA,aACA,aACA,sBACA,sBACA,kBACA,gBACA,yBAEA,GADA,aACA,CACA,MACA,YACA,8CAEA,0BAMA,iCACA,mBANA,qBACA,WACA,gBAOA,UACA,YACA,YACA,UACA,aACA,aACA,sBACA,sBACA,kBACA,kCAEA,WAA6CurC,EAAsBH,EAAcI,mBAAmBltD,EAAMmtD,IAE1G,eACA,UAGA,GACA,mBAGA,MACA,cArCA,CAuCA,CAEA,IAAIC,EAAc,SAAqBC,EAAWF,GAClD,gEACA,QACA,eAEA,8BACA,SACA,WACA,UACA,SACA,UACA,cACA,WACA,eACA,eACA,eACA,yBACA,gBACA,YACA,qBACA,YACA,qBACA,sBACA,wBACA,0BACA,KACA,EACA,yBACA,KACA,EACA,kCACA,GACA,WACA,OACA,iBAEA,GACK54D,GACL,EAEA,SAAS+4D,EAAe9L,GACxB,KACA,eACA,WACA,WACA,SACA,YACA,qBACA,YACA,sBACKA,GACL,CAEA,IAAI+L,EACJ,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GAIA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GAGA,GAEAC,GAhBA,MACA,MACA,MAUA,MACA,MAIA,MAEAC,IAAU,EACV,MAGIC,GAAqC,qBAAb72D,SAC5B,KACA,2BAEA82D,GAAmBD,KAAmBrE,IAAqBD,GAAO,cAAevyD,SAASC,cAAc,OACxG,cACA,OAEA,KACA,SAGA,kCAEA,OADA,sCACA,8BARA,CASA,CAVA,GAWA,iBACA,WACA,8HACA,WACA,WACA,UACA,UACA,+DACA,+DAEA,sBACA,6FAGA,sBACA,0EAGA,iCACA,sCACA,+DACA,CAEA,oKACA,EAgCA,eACA,gBACA,yBACA,8FAEA,mBAGA,SACa,GAAa,MAATrD,IAA2B,IAAVA,EAClC,SACa,GAAIm6D,GAAkB,UAAVn6D,EACzB,SACa,GAAqB,oBAAVA,EACxB,gCAEA,iCACA,iEAEA,CACA,CAEA,SACA,UAEA,oBACA,GACA,SAIA,cACA,yBACA,oBACA,4BACA,SACA,EACA,eACA,OACA,qBAEA,EACA,eACA,OACA,iBAEA,EAGIi6D,IACJ,+CACA,MAKA,OAJA,mBACA,uCACA,yDACA,OACA,CAEA,IAAK,GAGL,IAAIG,GAAgC,SAAuCd,GAC3E,MAGA,MAhF8B,SAAqCp1D,EAAGoV,GACtE,MAYA,OAXA,qBACA,UACA,WACA,oCACA,4BACA,4BAEA,eACA,SADA,CANA,CASA,IACA,CACA,CAkEA,EAFA,4BAEA,mBAEA,MAEA,SAEA,eACA,sBACA,WAIA,oBACA,wBACA,yBAEA,mBACA,CACA,CACA,EAEI+gD,GAAwB,SAA+Bf,GAC3D,GACA,0CAEA,EAQA,SAASgB,GAAS7jC,EAAIv4B,GACtB,mCACA,6DAAkEgD,SAASiD,KAAKsyB,IAGhF,UAEA,oBAAwCv4B,GAExC,UACA,OACA,WACA,QACA,YACA,WACA,YACA,iDACA,gBAEA,cAEA,2BAEA,qBACA,qBACA,yBACA,EACA,4BACA,8BACA,0BACA,gBACA,YACA,mBACA,YACA,YACA,sBACA,+BACA,EACA,cACA,kBACA,qBACA,QACA,oBACA,4FACA,iBACA,kCACA,kBACA,oBACA,gBACA,IACA,KAEA,mEACA,wBAIA,aAFA,8BAEA,IACA,qBAMA,aAHA,MAGA,KACA,iDACA,4BAKA,0CAEA,uBAEA,oCAIA,iBACA,qCAEA,kCACA,oCAGA,uBACA,qBACA,uBAGA,iBAEA,uDAEA,WACA,CAqqCA,SAASq8D,GAAQC,EAAQC,EAAMX,EAAQY,EAAUC,EAAUC,EAAYC,EAAeC,GACtF,MAGA,EAFA,OACA,mBA2BA,OAxBA,0BAMA,iCACA,wBANA,0BACA,WACA,gBAOA,OACA,SACA,YACA,gBACA,eACA,sBACA,oBACA,kBACA,mBAEA,IACA,iBAGA,CACA,CAEA,SAASC,GAAkBtkC,GAC3B,cACA,CAEA,SAASukC,KACT,KACA,CA4EA,SAASC,GAAYxkC,GAKrB,IAJA,uDACA,WACA,IAEA,KACA,mBAGA,qBACA,CAaA,SAASykC,GAAUr1C,GACnB,sBACA,CAEA,SAASs1C,GAAgBpvD,GACzB,sBACA,CAnzCAuuD,GAASx6D,UAET,CACA,eACA,6BACA,mCACA,QAEA,EACA,4BACA,+GACA,EACA,qBAEA,GACA,iBAEA,WACA,UACA,eACA,oBACA,SACA,qEACA,gBACA,mFACA,WAKA,GAowCA,SAAgCs7D,GAChC,YAIA,IAHA,sCACA,WAEA,MACA,WACA,qBACA,CACA,CAhxCA,KAGA,KAIA,6DAKA,sBAKA,sEAIA,2BAEA,aAIA,QASA,GAHA,QACA,oBAEA,uBACA,yBAcA,OAbA,GACA,WACA,SACA,cACA,WACA,OACA,WAGA,cACA,aAEA,0CAGW,GAAIrpD,IACf,iCAGA,GAFA,qBAeA,OAZA,GACA,WACA,SACA,cACA,WACA,SACA,SAGA,cACA,SAEA,CAEA,KAIA,YADA,qCAKA,+BAKA,6BAvDA,CA1CA,CAkGA,EACA,2BAEA,EAEA,EAEA,GACA,IAIA,EAJA,OACA,OACA,YACA,kBAGA,4BACA,WAwEA,GAvEA,IAEA,GADA,KACA,WACA,iBACA,KACA,WACA,aACA,IACA,SACA,uBACA,wBAEA,qBACA,oBACA,2BACA,2BACA,6BAEA,aACA,kBACA,QAGA,iBACA,aAOA,+BAEA,uBACA,gBAIA,yBAGA,GACA,WACA,cACA,kBAIA,sBACA,EAGA,yCACA,gBACA,IACA,mBACA,oBACA,oBACA,yBACA,0BACA,6BAEA,0BACA,mCACA,gBAGA,qBACA,SAGA,8DAkBA,QAlBA,CACA,oBAGA,YAFA,eAQA,qCACA,sCACA,yCACA,gDACA,gDACA,oEACA,uCACA,CAGA,CACA,EACA,sCAEA,GACA,+BAEA,4KACA,0BAEA,EACA,+BACA,SACA,mCAEA,gCACA,EACA,qCACA,4BACA,wCACA,yCACA,4CACA,mDACA,mDACA,oDACA,EACA,2BAEA,EAEA,GACA,gCAEA,wBACA,4BACA,4CAEA,WADiBspD,EACjB,YAEA,YAFA,oBAKA,oBACA,oCAGA,IACA,mBAEA,eACA,0BACA,IAEA,uCAEA,CAAM,MAAOpnD,GAAM,CACnB,EACA,2BAIA,GAFA,MAEA,MACA,sBACA,QAGA,sBACA,0BAGA,oBAEA,uBACA,qBACA,eACA,uBAEA,GACA,cACA,aACA,iBAEA,MACA,eAEA,EACA,4BACA,OACA,uBACA,uBAEA,KAKA,IAHA,uDACA,IAEA,kBACA,0DACA,GACA,IAKA,GAFA,oCAEA,EACA,GACA,SAEA,kBACA,mBACA,mBACA,SACA,aAGA,4BACA,MAIA,GACA,OAEA,gBAGA,IACA,CACA,EACA,sBAEA,GACA,OACA,mBACA,sBACA,mBACA,2BACA,aACA,YACA,YACA,gBACA,4DACA,4DAEA,oBACA,kFACA,OAGA,uBACA,CAEA,MACA,GACA,eACA,gBAEA,GACA,IACA,IACA,IACA,IACA,IACA,KAIA,gHACA,yBACA,sBACA,qBACA,mBACA,KACA,KACA,IACA,CAEA,gCACA,CACA,EACA,wBAGA,OACA,kDACA,kBACA,eAEA,OAIA,IAFA,KAEA,wEACA,iBAGA,mDACA,wBACA,oBACA,uBAEA,OAGA,QACA,CAGA,EADA,kBACA,iBACA,wBACA,oBACA,qBACA,oBACA,+BACA,gBACA,iBACA,mBACA,qBACA,uBACA,qBACA,sCACA,uBACA,4BACA,WACA,iBAEA,+FACA,CACA,EACA,sBAEA,EAEA,GACA,WAEA,iBACA,YACA,oBACA,QAGA,iBACA,gBAKA,qBAEA,oBACA,SACA,aACA,2BAEA,kBAEA,kCACA,aAIA,yBACA,aACA,mBAEA,6BACA,qBAGA,eAEA,GACA,WACA,eAEA,KACA,uBAEA,GACA,MACA,+CAGA,gCACA,iCACA,oCAEA,IACA,uBACA,kCAGA,qBAEA,kCAGA,MACA,8CACA,4BACA,MAEA,GACA,sCAEA,EAEA,qBAEA,GACA,IAEA,EACA,EACA,EAOA,EAXA,UACA,WAIA,eACA,UACA,YACA,SACA,SACA,QAEA,OACA,KAEA,QAgHA,QANA,sBACA,iCAGA,wBACA,cACA,0BAEA,6FACA,aAKA,GAFA,MAEA,yCACA,iFAIA,GAHA,uCACA,OACA,mBACA,0BAEA,KAiBA,OAhBA,IAEA,IAEA,kBAEA,YAEA,mBACA,GACA,qBAEA,kBAIA,MAGA,uBAEA,OAqhBA,SAAsBqlD,EAAKgC,EAAU5B,GACrC,qCACA,KACA,oKACA,CAzhBA,yBAEA,SACA,aAYA,GARA,kBACA,KAGA,IACA,SAGA,0BAMA,OALA,IACA,iBACA,IAEA,IACA,KAEA,MAAa,GAAI5/C,EAAO88C,aAAengC,EAAI,CAC3C,OACA,MACA,EAcA,EAbA,mBACA,GAt7BA,gBACA,qBACA,qBACA,qBACA,iBACA,qBACA,qBACA,kCACA,CA86BA,oDACA,iBACA,qCACA,uBAWA,GATA,SACA,OACA,MACA,wBAGA,EAofA,SAA2B6iC,EAAKx/C,EAAQ8gD,EAAYU,EAAUC,EAAeC,EAAuBC,EAAYC,GAChH,4BACA,qBACA,iBACA,qBACA,KAEA,MAEA,cAQA,IALA,mCAEA,OAGA,GAOA,UALA,iBACA,OACA,eAOA,gCACA,OAwBA,SAA6B5hD,GAC7B,iBACA,GAEA,CAEA,CA9BA,IAOA,OAFA,UAIA,sBACA,aAIA,CACA,CAhiBA,8GAGA,OAEA,WAEA,GACA,KACA,sBACmB6hD,IAAwC,SAA5BnF,EAAImF,EAAS,YAAyBA,IAAYC,GACjF,CAGA,gBACA,aAGA,KACA,KACA,2BACA,KAGA,mBAFA,SAIA,UA4BA,OA3BA,gBACA,SAGA,MACA,kBACA,IAEA,MACA,iBAEA,mCAIA,GACA,qBAGA,oBAGA,YACA,wBAGA,IACA,KAEA,CAEA,iBACA,YAEA,CAEA,QA3PA,CAEA,gBACA,SACA,MACA,UACA,+BACA,SACA,WACA,aACA,UACA,eACA,SACA,YACA,qBACA,6BACA,EACA,WACSC,GACT,CAGA,aACA,8BAEA,0BAEA,OACA,yBAEA,CAGA,cAuDA,OAtDA,uBACA,cAGA,IAEA,EACA,eAEA,gBAGA,QAEA,sDACA,sBAGA,sBACA,KACmBC,IAAUxB,GAASyB,QAAUC,KAChD,SAIA,QACA,2BAGA,yBACA,+BACA,4BACA,IAEA,QACA,eACA,gCAKA,0CACA,SAIA,2CACA,4CAGA,WAGA,yDACA,IACA,CAGA,aACA,QACA,oBAEA,GACA,WACA,cACA,OACA,YACA,qBACA,iBAEA,CAoJA,EACA,2BACA,0BACA,0CACA,0CACA,4CACA,0BACA,2BACA,0BACA,EACA,wBACA,4BACA,4BACA,6BACA,8BACA,gCACA,8BACA,EACA,iBAEA,GACA,cACA,eAEA,QACA,oBACA,eACA,QAEA,kBAEA,QACA,oBAEA,mBAMA,MACA,MACA,MACA,4BACA,mCAEA,iBAEA,sBAGA,uBACA,wBACA,oCAGA,sBAEA,oBAEA,GACA,kCAGA,oBAEA,IACA,KACA,kCACA,mCAGA,8CAEA,sCAEA,iDAGA,IACA,sBACA,oBAGA,MAEA,0BAGA,SACA,yDAGA,iCAEA,GACA,cACA,gBACA,OACA,cACA,uBACA,kBAGA,OACA,QAEA,GACA,SACA,WACA,OACA,SACA,kBAIA,GACA,cACA,cACA,OACA,kBAIA,GACA,SACA,YACA,OACA,SACA,kBAGA,GACA,cACA,YACA,OACA,mBAIA,eAEA,SACA,QAEA,GACA,cACA,cACA,OACA,kBAGA,GACA,cACA,YACA,OACA,mBAMA,YAEA,oBACA,MACA,OAGA,GACA,cACA,WACA,OACA,kBAIA,gBA9IA,eAoJA,EACA,oBACA,kBACA,iGACA,wBACA,YACA,IACA,iBACA,EACA,qBAEA,GACA,eACA,WACA,cACA,gBAEA,MAEA,gBACA,eACA,IACA,oBA8KA,SAEA1C,GACA,iBACA,kCAGA,gCACA,CApLA,KAGA,MAEA,kBACA,mBAGA,EAMA,mBAQA,IAPA,IACA,EADA,KAEA,mBACA,IACA,WACA,eAEU,IAAO,IAGjB,EAFA,OAEA,yBACA,4CAIA,QACA,EAMA,mBACA,SACA,UACA,sCACA,oBAEA,mCACA,OAEA,GAAOz4D,MACP,gCACA,uBACA,OACA,oBACA,oBAEA,IACA,oBACA,EAKA,gBACA,yBACA,qBACA,EAQA,sBACA,gDACA,EAQA,qBACA,mBAEA,cACA,YAEA,+BAGA,KADA,uBACA,EAEA,EAGA,aACA,KAGA,EAKA,mBACA,kBACA,cACA,UACA,kCACA,mCACA,oCAEA,uBACA,qBACA,uBAIA,4EACA,8BACA,IAEA,eAEA,iCAEA,iCACA,cACA,EACA,sBACA,QAEA,GADA,oBACA,wBACA,uBAEA,+CACA,8BAGA,KACA,CACA,EACA,uBACA,4BAMA,OAEA,GADA,oBACA,wBAEA,gDAEiBo7D,GACjB,sBAEA,kBAJA,qBAOA,gCACA,mBAGA,mBACA,KACA,OAvBA,iBAwBA,GAgKIhC,IACJ,qCACA,8BACA,kBAEA,IAIAK,GAASxyC,MAAQ,CACjB,KACA,MACA,MACA,OACA,iBACA,mBACA,EACA,OAviEA,SAAgBtpB,EAAKD,GACrB,QACA,eACA,sBACA,WAKA,QACA,EA8hEA,WACA,UACA,cACA,QACA,QACA,YACA,kBACA,mBACA,YAQA+7D,GAASp8B,IAAM,SAAUlc,GACzB,WACA,EAOAs4C,GAAS4B,MAAQ,WACjB,8CAAwE,IAAa,IACrF,kBAGA,mCACA,uBACA,0CACA,+EAAsFh7D,SAASiD,KAAKg4D,IAGpG,wBAAyD7B,GAASxyC,MAAOq0C,EAAOr0C,QAChF,UACA,GACA,EAQAwyC,GAAS56D,OAAS,SAAU+2B,EAAIv4B,GAChC,kBACA,EAGAo8D,GAAS91C,QA9/EK,SAggFd,IACA,GACA,GAEA,GACA,GACA,GACA,GAPI43C,GAAc,GAGlB,MAmHA,SAASC,KACT,wBACA,oBACA,IACA,KACA,CAEA,SAASC,KACT,iBACA,CAEA,IAoLIC,GApLAC,GAAapE,GAAS,SAAUkB,EAAKp7D,EAASu+D,EAAQC,GAE1D,aACA,IAMA,EANA,qCACA,qCACA,sBACA,gBACA,MACA,KAGA,SACA,KACA,KACA,YACA,cAEA,SACA,aAIA,QACA,KAEA,GACA,QACA,OACA,QACA,WACA,SACA,UACA,UACA,WACA,SACA,SACA,gBACA,iBACA,OACA,eACA,cAEA,OACA,+EACA,iFAEA,sDACA,uDAGA,2DACA,uDAEA,UACA,YAAqB,KAAgB,IACrC,QACA,UAKA,yCACA,WACA,WACA,WACA,yBAEA,aACA,KAGA,iCAEA,mBACA,2BAIA,8CACA,0CAEA,uBACA,0EAKA,wBACA,EAAUn3C,KAAK,CACf,UACY,MAIZ,GACA,OAAWrnB,EAAQy+D,cAAgBC,IAAkB/E,IAAgB+E,EAAgB9E,EAA2B8E,GAAe,KAE/H,IA/FA,CAgGA,GAAG,IAECC,GAAO,SAAc5uC,GACzB,sBACA,gBACA,WACA,mBACA,0BACA,uBACA,yBACA,MACA,WACA,IACA,sEACA,iDACA,IAEA,uBACA,WACA,cACA,SACA,gBAXA,CAcA,EAEA,SAAS6uC,KAAU,CAsCnB,SAASC,KAAU,CAoBnB,SAASC,KACT,aACA,eACA,oCAEA,CA2DA,OAzDA,aACA,sBACA,eACA,IACA,EACA,0BACA,kBACA,WACA,WACA,mBACA,YACA,WACA,mBACA,uBACA,eAEA,aACA,UAEA,UACA,oBACA,MAEA,QAGA,WACA,mBAEA,CAEA,IACA,MACA,GArBA,CAsBA,EACA,iBACA,uBACA,gBACA,WACA,mBACA,eACA,yBAEA,iCACA,SACA,0BACA,iCAqBA,SAAmBC,EAAIC,GACvB,IAEA,EACA,EAHA,eACA,eAGA,6CACA,OACA,OAEA,uBACA,IAGA,gCACA,gCACA,CAnCA,OACA,eACA,sBAGA,EACA,mBACA,OACA,GAEA,KACA,kBACA,2BACA,OACA,YAEA,GAEA,CAhIAJ,GAAOh9D,UAAY,CACnB,gBACA,sBACA,0BACA,iBACA,EACA,oBACA,eACA,gBACA,sCAEA,GACA,0BAGA,uDAEA,EACA,mCAEA,gCAGA,2BAEA,GACA,cAEA,EACA,SAGAijB,EAAS+5C,GAAQ,CACjB,6BAKAC,GAAOj9D,UAAY,CACnB,oBACA,eAEA,EADA,eACA,cACA,0BACA,0CACA,cACA,EACA,SAGAijB,EAASg6C,GAAQ,CACjB,6BAgGA,IAEA,GAEAI,GAMA,GACA,GACA,GAZIC,GAAoB,GACxB,MAIA,MAEAC,IAAU,EAEVC,IAAc,EAKd,SAASC,KACT,cAEA,kBACA,iDACA,4BAIA,yBACA,iDAEA,8CACA,gDAGA,yCACA,qCACA,eACA,kCACA,kBACA,sBACA,SAEA,kBACA,0BACA,4BACA,IAEA,gBAGA,mBACA,EAEA,CA+bA,OA7bA,aACA,oBACA,eACA,6BACA,eACA,IACA,EACA,sBACA,gCACA,EACA,uBACA,iBACA,WACA,qBAEA,YAAqB,YAA8B,IACnD,kBACA,wCACA,mBACA,8BACA,uCACA,iDAGA,eAEA,GAbA,CAcA,EACA,kBACA,iBACA,WACA,0BACA,WACA,mBAEA,gCACA,oBACA,SACA,WACA,KAGA,EACA,sBACA,sBACA,WACA,WACA,mBACA,SACA,wBACA,iBACA,IACA,IACA,MACA,IACA,EACA,sBACA,WAGA,GADA,WACA,kBACA,WACA,mBACA,wBACA,sBAEA,2CACA,2BAEA,IACA,IACA,MACA,IACA,EACA,4BACA,YAEA,sBACA,kCAGA,wBACA,oBACA,IAEA,0BACA,sCACA,IACA,KACA,EACA,wBACA,WAEA,aACA,qBAEA,uBAOA,0BAEA,yBACA,wBACA,QACA,0BACA,IACA,qBACA,wBACA,QACA,MACA,IACA,MACA,KACA,CAGA,yBACA,MACA,MAEA,qBACA,wBACA,IACA,IAIA,gBACA,IAEA,GAxCA,CAyCA,EACA,qBACA,eACA,cACA,WAEA,qBACA,MACA,IAEA,EACA,mBACA,qBACA,WACA,aACA,aAEA,cAEA,wBACA,qBACA,SACA,iBAEA,KACA,aACA,yBACA,IACA,MA6WA,SAAiCC,EAAgBf,GACjD,0BACA,kDAEA,EACA,oBAEA,gBAEA,GACA,CAtXA,oCAEA,EACA,8BACA,iBACA,YACA,cACA,mBACA,aACA,gBACA,eAEA,MAQA,GANA,GACA,eAGA,MAEA,yDAEA,qBACA,wBACA,SACA,OAGA,iBACA,IACA,KACA,CAGA,MAMA,GAJA,IACA,KAGA,aACA,SAEA,gBAGA,6BACA,wBACA,qBACA,SACA,UAEA,cACA,4BACA,GAEA,MACA,eAGA,CACA,EACA,qCACA,iBACA,YACA,mBAKA,GAJA,wBACA,4BACA,IAEA,kDACA,QAAsC/B,GACtC,eACA,YACA,YACA,CACA,EACA,qCACA,KACA,MACA,KAEA,EACA,iBACA,sBACA,WACA,aACA,aACA,0BACA,aACA,gBACA,mBACA,MACA,mBACA,aAEA,OAOA,GANA,wCACA,0BAGA,wCAEA,eA8CA,4BACA,QACA,GACA,WACA,SACA,gBACA,YACA,oBArDA,CAUA,GATA,YACA,GACA,WACA,SACA,cACA,YACA,gBAGA,mCACA,IAMA,IANA,QACA,QAEA,iBAaA,IARA,KACA,IACA,MAEA,IACA,OAGoB,IAAO,KAC3B,mBACA,2BACA,cACA,GACA,WACA,SACA,cACA,cACA,gBAIA,MACA,MAGA,IACA,CAcA,yBAEA,4CACA,YACA,gDAIA,IAHA,iDACA,2BAEA,KACA,cACA,cACA,wBAGA,GAFA,6BAEA,QACA,gBACA,aAEA,qBACA,SACA,QAEA,CACA,KAKA,KACA,wBACA,KACA,uBAEA,iBAGA,GACA,IAIA,YACA,SACA,wBACA,yBACA,KAGA,IAEA,GACA,WAEA,CAIA,wBACA,IACA,IACA,cACA,CAEA,IACA,EAGA,oCACA,wBACA,yCACA,GA5IA,CA8IA,EACA,yBACA,uBACA,WACA,EACA,yBACA,0BAEA,gDACA,8CACA,+CACA,yCACA,oCACA,EACA,+BACA,mCAEA,sBAEA,+DAEA,iBAEA,iBACA,YACA,mCACA,WACA,GACA,uBACA,wBACA,gBACA,WACA,eAEA,CACA,EACA,0BACA,oCACA,yBAEA,EACA,wBACA,oCACA,yBAEA,GAEA,KAEA,uBACA,OAKA,mBACA,sBACA,0CAEA,aACA,kCAEA,MAGA,gCACA,WACA,EAMA,qBACA,sBACA,gBACA,6BACA,gCACA,eACA,GAEA,2BACA,WAEA,KACA,KAsBA,OArBA,wBAMA,MALA,QACA,mBACA,wBAMA,EADA,YACA,EACmB2C,GACnB,0CAEA,KAGA,QACA,mBACA,SAEA,IACA,CACA,YACA,qBACA,cACA,cAEA,EACA,iBACA,yBASA,MANA,UAFA,mBAGA,YACmB5+D,EAAII,OAAS,IAChC,yCAGA,CACA,IAGA,CAoBA,SAAS4+D,GAAsBC,EAAkBjB,GACjD,0BACA,kDAEA,EACA,oBAEA,gBAEA,GACA,CAEA,SAASkB,KACT,wBACA,QACA,yCACA,GACA,CAEArD,GAAS4B,MAAM,IAj/Bf,WACA,aAQA,aAPA,eACA,UACA,qBACA,eACA,iBAGA,KACA,iDACA,2BAGA,CAyFA,OAvFA,aACA,wBACA,sBAEA,8BACA,8CAEA,4BACA,yDACmBrB,EAAc+C,QACjC,uDAEA,sDAGA,EACA,8BACA,sBAGA,uCACA,yBAEA,EACA,gBACA,8BACA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AAOlO,KAAK0iE,iBAAiB,WAC/B,E,IACA,SAAoBx0D,GAuCb,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OAxNsBE,QAAQF,GAAO,GACrClO,KAAKyjE,iBAAiB,WAAYv1D,EACpC,E,gCAIA,sBAAW,0BAAW,C,IAAtB,WACE,OAAOlO,KAAK0iE,iBAAiB,eAAe,EAC9C,E,IACA,SAAuBx0D,GACrBlO,KAAKyjE,iBAAiB,cAAev1D,EACvC,E,gCACU,YAAAg4H,cAAV,SAAwBh4H,GACtB,GAAyB,QAArBlO,KAAKmmI,aAAwB,CAC/B,IAAIpiI,EAAI,IAAI3B,KAAK8L,GACjB,GAAMnK,GAAOA,EAAEqiI,mBAAoB,OAAOriI,EAAEqiI,oBAC7C,CACD,GAAyB,QAArBpmI,KAAKmmI,cAA0B,UAAQ9gH,SAASnX,GAAM,CACxD,IAAIgxF,EAASl/F,KAAKmlE,YACb+5B,IAAQA,EAAS,MACtB,IAAI7hG,EAAU,CACZg2C,MAAOrzC,KAAKmmI,aACZE,SAAUrmI,KAAKqmI,SACfC,YAAatmI,KAAKsmI,aAQpB,OANItmI,KAAKumI,uBAAyB,IAC1BlpI,EAAgC,sBAAI2C,KAAKumI,uBAE7CvmI,KAAKwmI,uBAAyB,IAC1BnpI,EAAgC,sBAAI2C,KAAKwmI,uBAE1Ct4H,EAAIu4H,eAAevnC,EAAQ7hG,EACnC,CACD,OAAO6Q,EAAI7N,UACb,EACF,EApJA,CAA6C,YAsJtC,SAASqmI,IACd,MAAO,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEJ,CAEA,aAAW/3D,SACT,aACA,CACE,wBACA,CAAEjjE,KAAM,SAAU04E,sBAAuB,aACzC,CACE14E,KAAM,eACN2oE,QAAS,OACTixB,QAAS,CAAC,OAAQ,UAAW,WAAY,UAAW,SAEtD,CACE55F,KAAM,WACN45F,QAAS,WACP,MAnMC,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAkBE,EACAjxB,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AA2BR,GACzB,OACE7zH,KAAKm8B,OAAOn+B,OAAS,IACpB61H,GACD7zH,KAAKs2H,wBAET,EACU,YAAAhG,YAAV,SAAsBpsD,GACpBA,EAAWlkE,KAAK+wJ,iBAAiB7sF,GACjC,YAAMosD,YAAW,UAACpsD,EACpB,EACU,YAAA6sF,iBAAV,SAA2B7sF,GACzB,OAAKA,GACiB,UAAlBlkE,KAAK6jJ,WAA2C,SAAlB7jJ,KAAK6jJ,UADjB3/E,EAEb,UAAQ7+C,SAAS6+C,GAAYhpC,WAAWgpC,GAAY,EAG/D,EACF,EA7YA,CAAuC,YA+YjC6rF,EAAc,CAClB,SACA,QACA,OACA,iBACA,QACA,OACA,QAGF,aAAWphF,SACT,OACA,CACE,CACEjjE,KAAM,YACN2oE,QAAS,OACTixB,QAAS,CACP,QACA,OACA,WACA,iBACA,QACA,QACA,SACA,WACA,QACA,MACA,OACA,OACA,MACA,SAGJ,CACE55F,KAAM,cACNy5F,SAAU,EACVK,UAAW,YACXpxB,UAAW,SAASjpE,GAClB,QAAKA,GACEA,EAAI2kJ,WACb,GAEF,CACEpkJ,KAAM,iBACN2oE,QAAS,UACTixB,QAAS,CAAC,UAAW,SAAU,YAC/BE,UAAW,YACXpxB,UAAW,SAASjpE,GAClB,QAAKA,GACmB,QAAjBA,EAAI04I,SACb,GAEF,CACEn4I,KAAM,eACN05F,SAAU,CACR,OACA,mBACA,aACA,kBACA,cACA,mBACA,WACA,qBACA,WACA,eACA,mBACA,eACA,iBACA,gBACA,gBACA,gBACA,iBACA,iBACA,iBACA,iBACA,UACA,eACA,cACA,UACA,gBACA,qBACA,iBACA,YACA,SACA,eACA,cACA,SACA,UACA,uBACA,qBACA,WACA,OACA,WACA,aACA,YACA,MACA,MACA,QACA,MACA,mBACA,eACA,gBACA,YACA,mBACA,mBACA,gBACA,QACA,SAGJ,CACE15F,KAAM,MACN85F,UAAW,YACXpxB,UAAW,SAASjpE,GAClB,QAASA,GAAOA,EAAIqlJ,YACtB,EAC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A8B,gCAC9B,gGACE,2CACF,sCAAuC,kBACvC,wGACE,yBAEF,0DACE,gFAEF,mEACE,qCACF,8CACE,sCAEF,UAAW,gCACX,mBAAoB,cACpB,8BAA+B,cAC/B,WACE,+EACF,kBACE,+DAEF,gCAAiC,mCACjC,wCACE,4xBACF,oDACE,6BACF,8BAA+B,qBAC/B,8BAA+B,qBAC/B,2BAA4B,gDAC5B,wBAAyB,gDACzB,oCAAqC,wBACrC,gDAAiD,yBACjD,8BACE,8DACF,cAAe,sBACf,sBAAuB,eACvB,kCAAmC,gBACnC,wBAAyB,sBACzB,uBAAwB,kCACxB,mCAAoC,kCACpC,yBAA0B,mBAC1B,iDAAkD,yBAClD,6CAA8C,yBAC9C,2EACE,sBACF,sDAAuD,qBACvD,wDACE,qBACF,uDACE,qBACF,oBAAqB,uCACrB,kCAAmC,eAEnC,cAAe,4CACf,yBAA0B,mBAC1B,yBAA0B,mBAC1B,6BAA8B,mCAC9B,qCACE,4xBACF,iDACE,6BACF,eAAgB,2DAEhB,gCAAiC,qBACjC,wBACE,wHACF,gCACE,qsBACF,mDACE,0BACF,gCACE,8CACF,6BAA8B,eAE9B,qDACE,yBACF,qBACE,2GACF,yBACE,uGACF,2BAA4B,uBAC5B,oBAAqB,mCAErB,oBAAqB,mBAErB,iBAAkB,mBAClB,uBAAwB,eAExB,iDACE,0GACF,iDACE,yGACF,iDACE,+GACF,iDACE,yGACF,iDACE,yGAEF,uDACE,2HACF,uDACE,6GACF,uDACE,mHACF,uDACE,6GACF,uDACE,6GAEF,4BAA6B,sBAE7B,oCACE,iIACF,qFACE,kBAEF,0CACE,4DAEF,UAAW,+DAEX,0BAA2B,uBAG3B,yCAA0C,sBAC1C,kCACE,6GACF,0CACE,gtBACF,2CACE,gtBACF,6CAA8C,sBAC9C,uCACE,yEACF,6BACE,6HACF,gCACE,8LACF,uCACE,2NACF,sCACE,gHACF,kDAAmD,iBACnD,8DACE,sHACF,oEACE,mGACF,iFACE,oDACF,qFACE,6BACF,kFACE,kDACF,4HACE,kDACF,uFACE,uBAGF,cAAe,iBACf,mBACE,0DACF,uDACE,sBACF,uDACE,uBACF,8EACE,sBACF,yBAA0B,iBAC1B,uDACE,kCACF,iDACE,gDACF,4BACE,mJACF,mCACE,2DACF,yBACE,yEACF,0BACE,uJACF,yBAA0B,yBAC1B,0BACE,6HACF,kDAAmD,kBACnD,oDAAqD,sBACrD,mDACE,oEACF,kEACE,sBACF,uDACE,uBACF,oDACE,oCACF,mHACE,qBAEF,+BACE,8DAEF,sDAAuD,kBAEvD,mFACE,yDACF,sBAAuB,4BACvB,8BACE,oJAGF,wBACE,8DACF,6BACE,mEAIF,gDACE,0FACF,qCAAsC,gBACtC,gDACE,8BACF,wCAAyC,sBACzC,+CACE,sCACF,2EACE,kHACF,sCACE,0CACF,uCACE,4CACF,mJACE,gBACF,2CACE,6EAGF,+BACE,mMACF,+BACE,mJACF,8BAA+B,2CAC/B,2DACE,iCACF,qDACE,kCACF,kCAAmC,gBACnC,6DACE,qCACF,uDACE,qCACF,kCAAmC,gBACnC,+CAAgD,gBAChD,0EACE,qCACF,oEACE,qCACF,+CAAgD,gBAGhD,qBAAsB,GACtB,4BAA6B,GAG7B,6BAA8B,sBAC9B,4BAA6B,0CAC7B,qCAAsC,qBACtC,8CAA+C,iBAI/C,oBAAqB,GACrB,0BACE,iEACF,2BACE,8EACF,gDAAiD,eACjD,yBACE,mDACF,4BACE,mDACF,4BACE,8DAEF,oCAAqC,wrBAErC,8CAA+C,6BAE/C,kDAAmD,yIACnD,oCAAqC,0HACrC,+BAAgC,gWAChC,sCAAuC,+CACvC,iDAAkD,oBAClD,sBAAuB,sCACvB,8BAA+B,qBAC/B,yCAA0C,kBAC1C,sCAAuC,gBACvC,qCAAsC,iBAEtC,6BAA8B,qCAC9B,oCACE,mDACF,kCAAmC,mBACnC,kGACE,mCACF,gCACE,2DACF,mCAAoC,qBAGxB,EAAAC,MAA6D,CACzE,gCAAiC,CAC/B5jI,MAAO,eACP6jI,M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EF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,kEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,sEAINzqI,IAAK,CACHwpB,IAAK,EACLihH,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,iEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,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,MACA0f,EAAS,CAAC,EAAGtE,EAAO,CAAEurG,OAAQ7qH,EAAM+0C,MAAOA,EAAOhT,MAAO/hC,EAAM26J,MAAOA,IACtEl6I,EAEJ,EAEAi9V,EAAcxuE,UAAYA,EAC1BwuE,EAAc7uE,aAAeA,EAE7BhwS,EAAQk3E,QAAU2nS,C","file":"static/js/2.c5437495.chunk.js","sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * Node.js module for Forge.\n *\n * @author Dave Longley\n *\n * Copyright 2011-2016 Digital Bazaar, Inc.\n */\nmodule.exports = {\n // default options\n options: {\n usePureJavaScript: false\n }\n};\n","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","/**\n * Utility functions for web applications.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2018 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nvar baseN = require('./baseN');\n\n/* Utilities API */\nvar util = module.exports = forge.util = forge.util || {};\n\n// define setImmediate and nextTick\n(function() {\n // use native nextTick (unless we're in webpack)\n // webpack (or better node-libs-browser polyfill) sets process.browser.\n // this way we can detect webpack properly\n if(typeof process !== 'undefined' && process.nextTick && !process.browser) {\n util.nextTick = process.nextTick;\n if(typeof setImmediate === 'function') {\n util.setImmediate = setImmediate;\n } else {\n // polyfill setImmediate with nextTick, older versions of node\n // (those w/o setImmediate) won't totally starve IO\n util.setImmediate = util.nextTick;\n }\n return;\n }\n\n // polyfill nextTick with native setImmediate\n if(typeof setImmediate === 'function') {\n util.setImmediate = function() { return setImmediate.apply(undefined, arguments); };\n util.nextTick = function(callback) {\n return setImmediate(callback);\n };\n return;\n }\n\n /* Note: A polyfill upgrade pattern is used here to allow combining\n polyfills. For example, MutationObserver is fast, but blocks UI updates,\n so it needs to allow UI updates periodically, so it falls back on\n postMessage or setTimeout. */\n\n // polyfill with setTimeout\n util.setImmediate = function(callback) {\n setTimeout(callback, 0);\n };\n\n // upgrade polyfill to use postMessage\n if(typeof window !== 'undefined' &&\n typeof window.postMessage === 'function') {\n var msg = 'forge.setImmediate';\n var callbacks = [];\n util.setImmediate = function(callback) {\n callbacks.push(callback);\n // only send message when one hasn't been sent in\n // the current turn of the event loop\n if(callbacks.length === 1) {\n window.postMessage(msg, '*');\n }\n };\n function handler(event) {\n if(event.source === window && event.data === msg) {\n event.stopPropagation();\n var copy = callbacks.slice();\n callbacks.length = 0;\n copy.forEach(function(callback) {\n callback();\n });\n }\n }\n window.addEventListener('message', handler, true);\n }\n\n // upgrade polyfill to use MutationObserver\n if(typeof MutationObserver !== 'undefined') {\n // polyfill with MutationObserver\n var now = Date.now();\n var attr = true;\n var div = document.createElement('div');\n var callbacks = [];\n new MutationObserver(function() {\n var copy = callbacks.slice();\n callbacks.length = 0;\n copy.forEach(function(callback) {\n callback();\n });\n }).observe(div, {attributes: true});\n var oldSetImmediate = util.setImmediate;\n util.setImmediate = function(callback) {\n if(Date.now() - now > 15) {\n now = Date.now();\n oldSetImmediate(callback);\n } else {\n callbacks.push(callback);\n // only trigger observer when it hasn't been triggered in\n // the current turn of the event loop\n if(callbacks.length === 1) {\n div.setAttribute('a', attr = !attr);\n }\n }\n };\n }\n\n util.nextTick = util.setImmediate;\n})();\n\n// check if running under Node.js\nutil.isNodejs =\n typeof process !== 'undefined' && process.versions && process.versions.node;\n\n\n// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while\n// it will point to `window` in the main thread.\n// To remain compatible with older browsers, we fall back to 'window' if 'self'\n// is not available.\nutil.globalScope = (function() {\n if(util.isNodejs) {\n return global;\n }\n\n return typeof self === 'undefined' ? window : self;\n})();\n\n// define isArray\nutil.isArray = Array.isArray || function(x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n};\n\n// define isArrayBuffer\nutil.isArrayBuffer = function(x) {\n return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer;\n};\n\n// define isArrayBufferView\nutil.isArrayBufferView = function(x) {\n return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined;\n};\n\n/**\n * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for\n * algorithms where bit manipulation, JavaScript limitations, and/or algorithm\n * design only allow for byte operations of a limited size.\n *\n * @param n number of bits.\n *\n * Throw Error if n invalid.\n */\nfunction _checkBitsParam(n) {\n if(!(n === 8 || n === 16 || n === 24 || n === 32)) {\n throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n);\n }\n}\n\n// TODO: set ByteBuffer to best available backing\nutil.ByteBuffer = ByteStringBuffer;\n\n/** Buffer w/BinaryString backing */\n\n/**\n * Constructor for a binary string backed byte buffer.\n *\n * @param [b] the bytes to wrap (either encoded as string, one byte per\n * character, or as an ArrayBuffer or Typed Array).\n */\nfunction ByteStringBuffer(b) {\n // TODO: update to match DataBuffer API\n\n // the data in this buffer\n this.data = '';\n // the pointer for reading from this buffer\n this.read = 0;\n\n if(typeof b === 'string') {\n this.data = b;\n } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) {\n if(typeof Buffer !== 'undefined' && b instanceof Buffer) {\n this.data = b.toString('binary');\n } else {\n // convert native buffer to forge buffer\n // FIXME: support native buffers internally instead\n var arr = new Uint8Array(b);\n try {\n this.data = String.fromCharCode.apply(null, arr);\n } catch(e) {\n for(var i = 0; i < arr.length; ++i) {\n this.putByte(arr[i]);\n }\n }\n }\n } else if(b instanceof ByteStringBuffer ||\n (typeof b === 'object' && typeof b.data === 'string' &&\n typeof b.read === 'number')) {\n // copy existing buffer\n this.data = b.data;\n this.read = b.read;\n }\n\n // used for v8 optimization\n this._constructedStringLength = 0;\n}\nutil.ByteStringBuffer = ByteStringBuffer;\n\n/* Note: This is an optimization for V8-based browsers. When V8 concatenates\n a string, the strings are only joined logically using a \"cons string\" or\n \"constructed/concatenated string\". These containers keep references to one\n another and can result in very large memory usage. For example, if a 2MB\n string is constructed by concatenating 4 bytes together at a time, the\n memory usage will be ~44MB; so ~22x increase. The strings are only joined\n together when an operation requiring their joining takes place, such as\n substr(). This function is called when adding data to this buffer to ensure\n these types of strings are periodically joined to reduce the memory\n footprint. */\nvar _MAX_CONSTRUCTED_STRING_LENGTH = 4096;\nutil.ByteStringBuffer.prototype._optimizeConstructedString = function(x) {\n this._constructedStringLength += x;\n if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) {\n // this substr() should cause the constructed string to join\n this.data.substr(0, 1);\n this._constructedStringLength = 0;\n }\n};\n\n/**\n * Gets the number of bytes in this buffer.\n *\n * @return the number of bytes in this buffer.\n */\nutil.ByteStringBuffer.prototype.length = function() {\n return this.data.length - this.read;\n};\n\n/**\n * Gets whether or not this buffer is empty.\n *\n * @return true if this buffer is empty, false if not.\n */\nutil.ByteStringBuffer.prototype.isEmpty = function() {\n return this.length() <= 0;\n};\n\n/**\n * Puts a byte in this buffer.\n *\n * @param b the byte to put.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putByte = function(b) {\n return this.putBytes(String.fromCharCode(b));\n};\n\n/**\n * Puts a byte in this buffer N times.\n *\n * @param b the byte to put.\n * @param n the number of bytes of value b to put.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.fillWithByte = function(b, n) {\n b = String.fromCharCode(b);\n var d = this.data;\n while(n > 0) {\n if(n & 1) {\n d += b;\n }\n n >>>= 1;\n if(n > 0) {\n b += b;\n }\n }\n this.data = d;\n this._optimizeConstructedString(n);\n return this;\n};\n\n/**\n * Puts bytes in this buffer.\n *\n * @param bytes the bytes (as a binary encoded string) to put.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putBytes = function(bytes) {\n this.data += bytes;\n this._optimizeConstructedString(bytes.length);\n return this;\n};\n\n/**\n * Puts a UTF-16 encoded string into this buffer.\n *\n * @param str the string to put.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putString = function(str) {\n return this.putBytes(util.encodeUtf8(str));\n};\n\n/**\n * Puts a 16-bit integer in this buffer in big-endian order.\n *\n * @param i the 16-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt16 = function(i) {\n return this.putBytes(\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i & 0xFF));\n};\n\n/**\n * Puts a 24-bit integer in this buffer in big-endian order.\n *\n * @param i the 24-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt24 = function(i) {\n return this.putBytes(\n String.fromCharCode(i >> 16 & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i & 0xFF));\n};\n\n/**\n * Puts a 32-bit integer in this buffer in big-endian order.\n *\n * @param i the 32-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt32 = function(i) {\n return this.putBytes(\n String.fromCharCode(i >> 24 & 0xFF) +\n String.fromCharCode(i >> 16 & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i & 0xFF));\n};\n\n/**\n * Puts a 16-bit integer in this buffer in little-endian order.\n *\n * @param i the 16-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt16Le = function(i) {\n return this.putBytes(\n String.fromCharCode(i & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF));\n};\n\n/**\n * Puts a 24-bit integer in this buffer in little-endian order.\n *\n * @param i the 24-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt24Le = function(i) {\n return this.putBytes(\n String.fromCharCode(i & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i >> 16 & 0xFF));\n};\n\n/**\n * Puts a 32-bit integer in this buffer in little-endian order.\n *\n * @param i the 32-bit integer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt32Le = function(i) {\n return this.putBytes(\n String.fromCharCode(i & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i >> 16 & 0xFF) +\n String.fromCharCode(i >> 24 & 0xFF));\n};\n\n/**\n * Puts an n-bit integer in this buffer in big-endian order.\n *\n * @param i the n-bit integer.\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putInt = function(i, n) {\n _checkBitsParam(n);\n var bytes = '';\n do {\n n -= 8;\n bytes += String.fromCharCode((i >> n) & 0xFF);\n } while(n > 0);\n return this.putBytes(bytes);\n};\n\n/**\n * Puts a signed n-bit integer in this buffer in big-endian order. Two's\n * complement representation is used.\n *\n * @param i the n-bit integer.\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putSignedInt = function(i, n) {\n // putInt checks n\n if(i < 0) {\n i += 2 << (n - 1);\n }\n return this.putInt(i, n);\n};\n\n/**\n * Puts the given buffer into this buffer.\n *\n * @param buffer the buffer to put into this one.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.putBuffer = function(buffer) {\n return this.putBytes(buffer.getBytes());\n};\n\n/**\n * Gets a byte from this buffer and advances the read pointer by 1.\n *\n * @return the byte.\n */\nutil.ByteStringBuffer.prototype.getByte = function() {\n return this.data.charCodeAt(this.read++);\n};\n\n/**\n * Gets a uint16 from this buffer in big-endian order and advances the read\n * pointer by 2.\n *\n * @return the uint16.\n */\nutil.ByteStringBuffer.prototype.getInt16 = function() {\n var rval = (\n this.data.charCodeAt(this.read) << 8 ^\n this.data.charCodeAt(this.read + 1));\n this.read += 2;\n return rval;\n};\n\n/**\n * Gets a uint24 from this buffer in big-endian order and advances the read\n * pointer by 3.\n *\n * @return the uint24.\n */\nutil.ByteStringBuffer.prototype.getInt24 = function() {\n var rval = (\n this.data.charCodeAt(this.read) << 16 ^\n this.data.charCodeAt(this.read + 1) << 8 ^\n this.data.charCodeAt(this.read + 2));\n this.read += 3;\n return rval;\n};\n\n/**\n * Gets a uint32 from this buffer in big-endian order and advances the read\n * pointer by 4.\n *\n * @return the word.\n */\nutil.ByteStringBuffer.prototype.getInt32 = function() {\n var rval = (\n this.data.charCodeAt(this.read) << 24 ^\n this.data.charCodeAt(this.read + 1) << 16 ^\n this.data.charCodeAt(this.read + 2) << 8 ^\n this.data.charCodeAt(this.read + 3));\n this.read += 4;\n return rval;\n};\n\n/**\n * Gets a uint16 from this buffer in little-endian order and advances the read\n * pointer by 2.\n *\n * @return the uint16.\n */\nutil.ByteStringBuffer.prototype.getInt16Le = function() {\n var rval = (\n this.data.charCodeAt(this.read) ^\n this.data.charCodeAt(this.read + 1) << 8);\n this.read += 2;\n return rval;\n};\n\n/**\n * Gets a uint24 from this buffer in little-endian order and advances the read\n * pointer by 3.\n *\n * @return the uint24.\n */\nutil.ByteStringBuffer.prototype.getInt24Le = function() {\n var rval = (\n this.data.charCodeAt(this.read) ^\n this.data.charCodeAt(this.read + 1) << 8 ^\n this.data.charCodeAt(this.read + 2) << 16);\n this.read += 3;\n return rval;\n};\n\n/**\n * Gets a uint32 from this buffer in little-endian order and advances the read\n * pointer by 4.\n *\n * @return the word.\n */\nutil.ByteStringBuffer.prototype.getInt32Le = function() {\n var rval = (\n this.data.charCodeAt(this.read) ^\n this.data.charCodeAt(this.read + 1) << 8 ^\n this.data.charCodeAt(this.read + 2) << 16 ^\n this.data.charCodeAt(this.read + 3) << 24);\n this.read += 4;\n return rval;\n};\n\n/**\n * Gets an n-bit integer from this buffer in big-endian order and advances the\n * read pointer by ceil(n/8).\n *\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return the integer.\n */\nutil.ByteStringBuffer.prototype.getInt = function(n) {\n _checkBitsParam(n);\n var rval = 0;\n do {\n // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits.\n rval = (rval << 8) + this.data.charCodeAt(this.read++);\n n -= 8;\n } while(n > 0);\n return rval;\n};\n\n/**\n * Gets a signed n-bit integer from this buffer in big-endian order, using\n * two's complement, and advances the read pointer by n/8.\n *\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return the integer.\n */\nutil.ByteStringBuffer.prototype.getSignedInt = function(n) {\n // getInt checks n\n var x = this.getInt(n);\n var max = 2 << (n - 2);\n if(x >= max) {\n x -= max << 1;\n }\n return x;\n};\n\n/**\n * Reads bytes out as a binary encoded string and clears them from the\n * buffer. Note that the resulting string is binary encoded (in node.js this\n * encoding is referred to as `binary`, it is *not* `utf8`).\n *\n * @param count the number of bytes to read, undefined or null for all.\n *\n * @return a binary encoded string of bytes.\n */\nutil.ByteStringBuffer.prototype.getBytes = function(count) {\n var rval;\n if(count) {\n // read count bytes\n count = Math.min(this.length(), count);\n rval = this.data.slice(this.read, this.read + count);\n this.read += count;\n } else if(count === 0) {\n rval = '';\n } else {\n // read all bytes, optimize to only copy when needed\n rval = (this.read === 0) ? this.data : this.data.slice(this.read);\n this.clear();\n }\n return rval;\n};\n\n/**\n * Gets a binary encoded string of the bytes from this buffer without\n * modifying the read pointer.\n *\n * @param count the number of bytes to get, omit to get all.\n *\n * @return a string full of binary encoded characters.\n */\nutil.ByteStringBuffer.prototype.bytes = function(count) {\n return (typeof(count) === 'undefined' ?\n this.data.slice(this.read) :\n this.data.slice(this.read, this.read + count));\n};\n\n/**\n * Gets a byte at the given index without modifying the read pointer.\n *\n * @param i the byte index.\n *\n * @return the byte.\n */\nutil.ByteStringBuffer.prototype.at = function(i) {\n return this.data.charCodeAt(this.read + i);\n};\n\n/**\n * Puts a byte at the given index without modifying the read pointer.\n *\n * @param i the byte index.\n * @param b the byte to put.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.setAt = function(i, b) {\n this.data = this.data.substr(0, this.read + i) +\n String.fromCharCode(b) +\n this.data.substr(this.read + i + 1);\n return this;\n};\n\n/**\n * Gets the last byte without modifying the read pointer.\n *\n * @return the last byte.\n */\nutil.ByteStringBuffer.prototype.last = function() {\n return this.data.charCodeAt(this.data.length - 1);\n};\n\n/**\n * Creates a copy of this buffer.\n *\n * @return the copy.\n */\nutil.ByteStringBuffer.prototype.copy = function() {\n var c = util.createBuffer(this.data);\n c.read = this.read;\n return c;\n};\n\n/**\n * Compacts this buffer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.compact = function() {\n if(this.read > 0) {\n this.data = this.data.slice(this.read);\n this.read = 0;\n }\n return this;\n};\n\n/**\n * Clears this buffer.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.clear = function() {\n this.data = '';\n this.read = 0;\n return this;\n};\n\n/**\n * Shortens this buffer by triming bytes off of the end of this buffer.\n *\n * @param count the number of bytes to trim off.\n *\n * @return this buffer.\n */\nutil.ByteStringBuffer.prototype.truncate = function(count) {\n var len = Math.max(0, this.length() - count);\n this.data = this.data.substr(this.read, len);\n this.read = 0;\n return this;\n};\n\n/**\n * Converts this buffer to a hexadecimal string.\n *\n * @return a hexadecimal string.\n */\nutil.ByteStringBuffer.prototype.toHex = function() {\n var rval = '';\n for(var i = this.read; i < this.data.length; ++i) {\n var b = this.data.charCodeAt(i);\n if(b < 16) {\n rval += '0';\n }\n rval += b.toString(16);\n }\n return rval;\n};\n\n/**\n * Converts this buffer to a UTF-16 string (standard JavaScript string).\n *\n * @return a UTF-16 string.\n */\nutil.ByteStringBuffer.prototype.toString = function() {\n return util.decodeUtf8(this.bytes());\n};\n\n/** End Buffer w/BinaryString backing */\n\n/** Buffer w/UInt8Array backing */\n\n/**\n * FIXME: Experimental. Do not use yet.\n *\n * Constructor for an ArrayBuffer-backed byte buffer.\n *\n * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a\n * TypedArray.\n *\n * If a string is given, its encoding should be provided as an option,\n * otherwise it will default to 'binary'. A 'binary' string is encoded such\n * that each character is one byte in length and size.\n *\n * If an ArrayBuffer, DataView, or TypedArray is given, it will be used\n * *directly* without any copying. Note that, if a write to the buffer requires\n * more space, the buffer will allocate a new backing ArrayBuffer to\n * accommodate. The starting read and write offsets for the buffer may be\n * given as options.\n *\n * @param [b] the initial bytes for this buffer.\n * @param options the options to use:\n * [readOffset] the starting read offset to use (default: 0).\n * [writeOffset] the starting write offset to use (default: the\n * length of the first parameter).\n * [growSize] the minimum amount, in bytes, to grow the buffer by to\n * accommodate writes (default: 1024).\n * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the\n * first parameter, if it is a string (default: 'binary').\n */\nfunction DataBuffer(b, options) {\n // default options\n options = options || {};\n\n // pointers for read from/write to buffer\n this.read = options.readOffset || 0;\n this.growSize = options.growSize || 1024;\n\n var isArrayBuffer = util.isArrayBuffer(b);\n var isArrayBufferView = util.isArrayBufferView(b);\n if(isArrayBuffer || isArrayBufferView) {\n // use ArrayBuffer directly\n if(isArrayBuffer) {\n this.data = new DataView(b);\n } else {\n // TODO: adjust read/write offset based on the type of view\n // or specify that this must be done in the options ... that the\n // offsets are byte-based\n this.data = new DataView(b.buffer, b.byteOffset, b.byteLength);\n }\n this.write = ('writeOffset' in options ?\n options.writeOffset : this.data.byteLength);\n return;\n }\n\n // initialize to empty array buffer and add any given bytes using putBytes\n this.data = new DataView(new ArrayBuffer(0));\n this.write = 0;\n\n if(b !== null && b !== undefined) {\n this.putBytes(b);\n }\n\n if('writeOffset' in options) {\n this.write = options.writeOffset;\n }\n}\nutil.DataBuffer = DataBuffer;\n\n/**\n * Gets the number of bytes in this buffer.\n *\n * @return the number of bytes in this buffer.\n */\nutil.DataBuffer.prototype.length = function() {\n return this.write - this.read;\n};\n\n/**\n * Gets whether or not this buffer is empty.\n *\n * @return true if this buffer is empty, false if not.\n */\nutil.DataBuffer.prototype.isEmpty = function() {\n return this.length() <= 0;\n};\n\n/**\n * Ensures this buffer has enough empty space to accommodate the given number\n * of bytes. An optional parameter may be given that indicates a minimum\n * amount to grow the buffer if necessary. If the parameter is not given,\n * the buffer will be grown by some previously-specified default amount\n * or heuristic.\n *\n * @param amount the number of bytes to accommodate.\n * @param [growSize] the minimum amount, in bytes, to grow the buffer by if\n * necessary.\n */\nutil.DataBuffer.prototype.accommodate = function(amount, growSize) {\n if(this.length() >= amount) {\n return this;\n }\n growSize = Math.max(growSize || this.growSize, amount);\n\n // grow buffer\n var src = new Uint8Array(\n this.data.buffer, this.data.byteOffset, this.data.byteLength);\n var dst = new Uint8Array(this.length() + growSize);\n dst.set(src);\n this.data = new DataView(dst.buffer);\n\n return this;\n};\n\n/**\n * Puts a byte in this buffer.\n *\n * @param b the byte to put.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putByte = function(b) {\n this.accommodate(1);\n this.data.setUint8(this.write++, b);\n return this;\n};\n\n/**\n * Puts a byte in this buffer N times.\n *\n * @param b the byte to put.\n * @param n the number of bytes of value b to put.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.fillWithByte = function(b, n) {\n this.accommodate(n);\n for(var i = 0; i < n; ++i) {\n this.data.setUint8(b);\n }\n return this;\n};\n\n/**\n * Puts bytes in this buffer. The bytes may be given as a string, an\n * ArrayBuffer, a DataView, or a TypedArray.\n *\n * @param bytes the bytes to put.\n * @param [encoding] the encoding for the first parameter ('binary', 'utf8',\n * 'utf16', 'hex'), if it is a string (default: 'binary').\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putBytes = function(bytes, encoding) {\n if(util.isArrayBufferView(bytes)) {\n var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength);\n var len = src.byteLength - src.byteOffset;\n this.accommodate(len);\n var dst = new Uint8Array(this.data.buffer, this.write);\n dst.set(src);\n this.write += len;\n return this;\n }\n\n if(util.isArrayBuffer(bytes)) {\n var src = new Uint8Array(bytes);\n this.accommodate(src.byteLength);\n var dst = new Uint8Array(this.data.buffer);\n dst.set(src, this.write);\n this.write += src.byteLength;\n return this;\n }\n\n // bytes is a util.DataBuffer or equivalent\n if(bytes instanceof util.DataBuffer ||\n (typeof bytes === 'object' &&\n typeof bytes.read === 'number' && typeof bytes.write === 'number' &&\n util.isArrayBufferView(bytes.data))) {\n var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length());\n this.accommodate(src.byteLength);\n var dst = new Uint8Array(bytes.data.byteLength, this.write);\n dst.set(src);\n this.write += src.byteLength;\n return this;\n }\n\n if(bytes instanceof util.ByteStringBuffer) {\n // copy binary string and process as the same as a string parameter below\n bytes = bytes.data;\n encoding = 'binary';\n }\n\n // string conversion\n encoding = encoding || 'binary';\n if(typeof bytes === 'string') {\n var view;\n\n // decode from string\n if(encoding === 'hex') {\n this.accommodate(Math.ceil(bytes.length / 2));\n view = new Uint8Array(this.data.buffer, this.write);\n this.write += util.binary.hex.decode(bytes, view, this.write);\n return this;\n }\n if(encoding === 'base64') {\n this.accommodate(Math.ceil(bytes.length / 4) * 3);\n view = new Uint8Array(this.data.buffer, this.write);\n this.write += util.binary.base64.decode(bytes, view, this.write);\n return this;\n }\n\n // encode text as UTF-8 bytes\n if(encoding === 'utf8') {\n // encode as UTF-8 then decode string as raw binary\n bytes = util.encodeUtf8(bytes);\n encoding = 'binary';\n }\n\n // decode string as raw binary\n if(encoding === 'binary' || encoding === 'raw') {\n // one byte per character\n this.accommodate(bytes.length);\n view = new Uint8Array(this.data.buffer, this.write);\n this.write += util.binary.raw.decode(view);\n return this;\n }\n\n // encode text as UTF-16 bytes\n if(encoding === 'utf16') {\n // two bytes per character\n this.accommodate(bytes.length * 2);\n view = new Uint16Array(this.data.buffer, this.write);\n this.write += util.text.utf16.encode(view);\n return this;\n }\n\n throw new Error('Invalid encoding: ' + encoding);\n }\n\n throw Error('Invalid parameter: ' + bytes);\n};\n\n/**\n * Puts the given buffer into this buffer.\n *\n * @param buffer the buffer to put into this one.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putBuffer = function(buffer) {\n this.putBytes(buffer);\n buffer.clear();\n return this;\n};\n\n/**\n * Puts a string into this buffer.\n *\n * @param str the string to put.\n * @param [encoding] the encoding for the string (default: 'utf16').\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putString = function(str) {\n return this.putBytes(str, 'utf16');\n};\n\n/**\n * Puts a 16-bit integer in this buffer in big-endian order.\n *\n * @param i the 16-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt16 = function(i) {\n this.accommodate(2);\n this.data.setInt16(this.write, i);\n this.write += 2;\n return this;\n};\n\n/**\n * Puts a 24-bit integer in this buffer in big-endian order.\n *\n * @param i the 24-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt24 = function(i) {\n this.accommodate(3);\n this.data.setInt16(this.write, i >> 8 & 0xFFFF);\n this.data.setInt8(this.write, i >> 16 & 0xFF);\n this.write += 3;\n return this;\n};\n\n/**\n * Puts a 32-bit integer in this buffer in big-endian order.\n *\n * @param i the 32-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt32 = function(i) {\n this.accommodate(4);\n this.data.setInt32(this.write, i);\n this.write += 4;\n return this;\n};\n\n/**\n * Puts a 16-bit integer in this buffer in little-endian order.\n *\n * @param i the 16-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt16Le = function(i) {\n this.accommodate(2);\n this.data.setInt16(this.write, i, true);\n this.write += 2;\n return this;\n};\n\n/**\n * Puts a 24-bit integer in this buffer in little-endian order.\n *\n * @param i the 24-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt24Le = function(i) {\n this.accommodate(3);\n this.data.setInt8(this.write, i >> 16 & 0xFF);\n this.data.setInt16(this.write, i >> 8 & 0xFFFF, true);\n this.write += 3;\n return this;\n};\n\n/**\n * Puts a 32-bit integer in this buffer in little-endian order.\n *\n * @param i the 32-bit integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt32Le = function(i) {\n this.accommodate(4);\n this.data.setInt32(this.write, i, true);\n this.write += 4;\n return this;\n};\n\n/**\n * Puts an n-bit integer in this buffer in big-endian order.\n *\n * @param i the n-bit integer.\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putInt = function(i, n) {\n _checkBitsParam(n);\n this.accommodate(n / 8);\n do {\n n -= 8;\n this.data.setInt8(this.write++, (i >> n) & 0xFF);\n } while(n > 0);\n return this;\n};\n\n/**\n * Puts a signed n-bit integer in this buffer in big-endian order. Two's\n * complement representation is used.\n *\n * @param i the n-bit integer.\n * @param n the number of bits in the integer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.putSignedInt = function(i, n) {\n _checkBitsParam(n);\n this.accommodate(n / 8);\n if(i < 0) {\n i += 2 << (n - 1);\n }\n return this.putInt(i, n);\n};\n\n/**\n * Gets a byte from this buffer and advances the read pointer by 1.\n *\n * @return the byte.\n */\nutil.DataBuffer.prototype.getByte = function() {\n return this.data.getInt8(this.read++);\n};\n\n/**\n * Gets a uint16 from this buffer in big-endian order and advances the read\n * pointer by 2.\n *\n * @return the uint16.\n */\nutil.DataBuffer.prototype.getInt16 = function() {\n var rval = this.data.getInt16(this.read);\n this.read += 2;\n return rval;\n};\n\n/**\n * Gets a uint24 from this buffer in big-endian order and advances the read\n * pointer by 3.\n *\n * @return the uint24.\n */\nutil.DataBuffer.prototype.getInt24 = function() {\n var rval = (\n this.data.getInt16(this.read) << 8 ^\n this.data.getInt8(this.read + 2));\n this.read += 3;\n return rval;\n};\n\n/**\n * Gets a uint32 from this buffer in big-endian order and advances the read\n * pointer by 4.\n *\n * @return the word.\n */\nutil.DataBuffer.prototype.getInt32 = function() {\n var rval = this.data.getInt32(this.read);\n this.read += 4;\n return rval;\n};\n\n/**\n * Gets a uint16 from this buffer in little-endian order and advances the read\n * pointer by 2.\n *\n * @return the uint16.\n */\nutil.DataBuffer.prototype.getInt16Le = function() {\n var rval = this.data.getInt16(this.read, true);\n this.read += 2;\n return rval;\n};\n\n/**\n * Gets a uint24 from this buffer in little-endian order and advances the read\n * pointer by 3.\n *\n * @return the uint24.\n */\nutil.DataBuffer.prototype.getInt24Le = function() {\n var rval = (\n this.data.getInt8(this.read) ^\n this.data.getInt16(this.read + 1, true) << 8);\n this.read += 3;\n return rval;\n};\n\n/**\n * Gets a uint32 from this buffer in little-endian order and advances the read\n * pointer by 4.\n *\n * @return the word.\n */\nutil.DataBuffer.prototype.getInt32Le = function() {\n var rval = this.data.getInt32(this.read, true);\n this.read += 4;\n return rval;\n};\n\n/**\n * Gets an n-bit integer from this buffer in big-endian order and advances the\n * read pointer by n/8.\n *\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return the integer.\n */\nutil.DataBuffer.prototype.getInt = function(n) {\n _checkBitsParam(n);\n var rval = 0;\n do {\n // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits.\n rval = (rval << 8) + this.data.getInt8(this.read++);\n n -= 8;\n } while(n > 0);\n return rval;\n};\n\n/**\n * Gets a signed n-bit integer from this buffer in big-endian order, using\n * two's complement, and advances the read pointer by n/8.\n *\n * @param n the number of bits in the integer (8, 16, 24, or 32).\n *\n * @return the integer.\n */\nutil.DataBuffer.prototype.getSignedInt = function(n) {\n // getInt checks n\n var x = this.getInt(n);\n var max = 2 << (n - 2);\n if(x >= max) {\n x -= max << 1;\n }\n return x;\n};\n\n/**\n * Reads bytes out as a binary encoded string and clears them from the\n * buffer.\n *\n * @param count the number of bytes to read, undefined or null for all.\n *\n * @return a binary encoded string of bytes.\n */\nutil.DataBuffer.prototype.getBytes = function(count) {\n // TODO: deprecate this method, it is poorly named and\n // this.toString('binary') replaces it\n // add a toTypedArray()/toArrayBuffer() function\n var rval;\n if(count) {\n // read count bytes\n count = Math.min(this.length(), count);\n rval = this.data.slice(this.read, this.read + count);\n this.read += count;\n } else if(count === 0) {\n rval = '';\n } else {\n // read all bytes, optimize to only copy when needed\n rval = (this.read === 0) ? this.data : this.data.slice(this.read);\n this.clear();\n }\n return rval;\n};\n\n/**\n * Gets a binary encoded string of the bytes from this buffer without\n * modifying the read pointer.\n *\n * @param count the number of bytes to get, omit to get all.\n *\n * @return a string full of binary encoded characters.\n */\nutil.DataBuffer.prototype.bytes = function(count) {\n // TODO: deprecate this method, it is poorly named, add \"getString()\"\n return (typeof(count) === 'undefined' ?\n this.data.slice(this.read) :\n this.data.slice(this.read, this.read + count));\n};\n\n/**\n * Gets a byte at the given index without modifying the read pointer.\n *\n * @param i the byte index.\n *\n * @return the byte.\n */\nutil.DataBuffer.prototype.at = function(i) {\n return this.data.getUint8(this.read + i);\n};\n\n/**\n * Puts a byte at the given index without modifying the read pointer.\n *\n * @param i the byte index.\n * @param b the byte to put.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.setAt = function(i, b) {\n this.data.setUint8(i, b);\n return this;\n};\n\n/**\n * Gets the last byte without modifying the read pointer.\n *\n * @return the last byte.\n */\nutil.DataBuffer.prototype.last = function() {\n return this.data.getUint8(this.write - 1);\n};\n\n/**\n * Creates a copy of this buffer.\n *\n * @return the copy.\n */\nutil.DataBuffer.prototype.copy = function() {\n return new util.DataBuffer(this);\n};\n\n/**\n * Compacts this buffer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.compact = function() {\n if(this.read > 0) {\n var src = new Uint8Array(this.data.buffer, this.read);\n var dst = new Uint8Array(src.byteLength);\n dst.set(src);\n this.data = new DataView(dst);\n this.write -= this.read;\n this.read = 0;\n }\n return this;\n};\n\n/**\n * Clears this buffer.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.clear = function() {\n this.data = new DataView(new ArrayBuffer(0));\n this.read = this.write = 0;\n return this;\n};\n\n/**\n * Shortens this buffer by triming bytes off of the end of this buffer.\n *\n * @param count the number of bytes to trim off.\n *\n * @return this buffer.\n */\nutil.DataBuffer.prototype.truncate = function(count) {\n this.write = Math.max(0, this.length() - count);\n this.read = Math.min(this.read, this.write);\n return this;\n};\n\n/**\n * Converts this buffer to a hexadecimal string.\n *\n * @return a hexadecimal string.\n */\nutil.DataBuffer.prototype.toHex = function() {\n var rval = '';\n for(var i = this.read; i < this.data.byteLength; ++i) {\n var b = this.data.getUint8(i);\n if(b < 16) {\n rval += '0';\n }\n rval += b.toString(16);\n }\n return rval;\n};\n\n/**\n * Converts this buffer to a string, using the given encoding. If no\n * encoding is given, 'utf8' (UTF-8) is used.\n *\n * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex',\n * 'base64' (default: 'utf8').\n *\n * @return a string representation of the bytes in this buffer.\n */\nutil.DataBuffer.prototype.toString = function(encoding) {\n var view = new Uint8Array(this.data, this.read, this.length());\n encoding = encoding || 'utf8';\n\n // encode to string\n if(encoding === 'binary' || encoding === 'raw') {\n return util.binary.raw.encode(view);\n }\n if(encoding === 'hex') {\n return util.binary.hex.encode(view);\n }\n if(encoding === 'base64') {\n return util.binary.base64.encode(view);\n }\n\n // decode to text\n if(encoding === 'utf8') {\n return util.text.utf8.decode(view);\n }\n if(encoding === 'utf16') {\n return util.text.utf16.decode(view);\n }\n\n throw new Error('Invalid encoding: ' + encoding);\n};\n\n/** End Buffer w/UInt8Array backing */\n\n/**\n * Creates a buffer that stores bytes. A value may be given to populate the\n * buffer with data. This value can either be string of encoded bytes or a\n * regular string of characters. When passing a string of binary encoded\n * bytes, the encoding `raw` should be given. This is also the default. When\n * passing a string of characters, the encoding `utf8` should be given.\n *\n * @param [input] a string with encoded bytes to store in the buffer.\n * @param [encoding] (default: 'raw', other: 'utf8').\n */\nutil.createBuffer = function(input, encoding) {\n // TODO: deprecate, use new ByteBuffer() instead\n encoding = encoding || 'raw';\n if(input !== undefined && encoding === 'utf8') {\n input = util.encodeUtf8(input);\n }\n return new util.ByteBuffer(input);\n};\n\n/**\n * Fills a string with a particular value. If you want the string to be a byte\n * string, pass in String.fromCharCode(theByte).\n *\n * @param c the character to fill the string with, use String.fromCharCode\n * to fill the string with a byte value.\n * @param n the number of characters of value c to fill with.\n *\n * @return the filled string.\n */\nutil.fillString = function(c, n) {\n var s = '';\n while(n > 0) {\n if(n & 1) {\n s += c;\n }\n n >>>= 1;\n if(n > 0) {\n c += c;\n }\n }\n return s;\n};\n\n/**\n * Performs a per byte XOR between two byte strings and returns the result as a\n * string of bytes.\n *\n * @param s1 first string of bytes.\n * @param s2 second string of bytes.\n * @param n the number of bytes to XOR.\n *\n * @return the XOR'd result.\n */\nutil.xorBytes = function(s1, s2, n) {\n var s3 = '';\n var b = '';\n var t = '';\n var i = 0;\n var c = 0;\n for(; n > 0; --n, ++i) {\n b = s1.charCodeAt(i) ^ s2.charCodeAt(i);\n if(c >= 10) {\n s3 += t;\n t = '';\n c = 0;\n }\n t += String.fromCharCode(b);\n ++c;\n }\n s3 += t;\n return s3;\n};\n\n/**\n * Converts a hex string into a 'binary' encoded string of bytes.\n *\n * @param hex the hexadecimal string to convert.\n *\n * @return the binary-encoded string of bytes.\n */\nutil.hexToBytes = function(hex) {\n // TODO: deprecate: \"Deprecated. Use util.binary.hex.decode instead.\"\n var rval = '';\n var i = 0;\n if(hex.length & 1 == 1) {\n // odd number of characters, convert first character alone\n i = 1;\n rval += String.fromCharCode(parseInt(hex[0], 16));\n }\n // convert 2 characters (1 byte) at a time\n for(; i < hex.length; i += 2) {\n rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16));\n }\n return rval;\n};\n\n/**\n * Converts a 'binary' encoded string of bytes to hex.\n *\n * @param bytes the byte string to convert.\n *\n * @return the string of hexadecimal characters.\n */\nutil.bytesToHex = function(bytes) {\n // TODO: deprecate: \"Deprecated. Use util.binary.hex.encode instead.\"\n return util.createBuffer(bytes).toHex();\n};\n\n/**\n * Converts an 32-bit integer to 4-big-endian byte string.\n *\n * @param i the integer.\n *\n * @return the byte string.\n */\nutil.int32ToBytes = function(i) {\n return (\n String.fromCharCode(i >> 24 & 0xFF) +\n String.fromCharCode(i >> 16 & 0xFF) +\n String.fromCharCode(i >> 8 & 0xFF) +\n String.fromCharCode(i & 0xFF));\n};\n\n// base64 characters, reverse mapping\nvar _base64 =\n 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nvar _base64Idx = [\n/*43 -43 = 0*/\n/*'+', 1, 2, 3,'/' */\n 62, -1, -1, -1, 63,\n\n/*'0','1','2','3','4','5','6','7','8','9' */\n 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,\n\n/*15, 16, 17,'=', 19, 20, 21 */\n -1, -1, -1, 64, -1, -1, -1,\n\n/*65 - 43 = 22*/\n/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,\n\n/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */\n 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,\n\n/*91 - 43 = 48 */\n/*48, 49, 50, 51, 52, 53 */\n -1, -1, -1, -1, -1, -1,\n\n/*97 - 43 = 54*/\n/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */\n 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,\n\n/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */\n 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51\n];\n\n// base58 characters (Bitcoin alphabet)\nvar _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';\n\n/**\n * Base64 encodes a 'binary' encoded string of bytes.\n *\n * @param input the binary encoded string of bytes to base64-encode.\n * @param maxline the maximum number of encoded characters per line to use,\n * defaults to none.\n *\n * @return the base64-encoded output.\n */\nutil.encode64 = function(input, maxline) {\n // TODO: deprecate: \"Deprecated. Use util.binary.base64.encode instead.\"\n var line = '';\n var output = '';\n var chr1, chr2, chr3;\n var i = 0;\n while(i < input.length) {\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n\n // encode 4 character group\n line += _base64.charAt(chr1 >> 2);\n line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4));\n if(isNaN(chr2)) {\n line += '==';\n } else {\n line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6));\n line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63);\n }\n\n if(maxline && line.length > maxline) {\n output += line.substr(0, maxline) + '\\r\\n';\n line = line.substr(maxline);\n }\n }\n output += line;\n return output;\n};\n\n/**\n * Base64 decodes a string into a 'binary' encoded string of bytes.\n *\n * @param input the base64-encoded input.\n *\n * @return the binary encoded string.\n */\nutil.decode64 = function(input) {\n // TODO: deprecate: \"Deprecated. Use util.binary.base64.decode instead.\"\n\n // remove all non-base64 characters\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, '');\n\n var output = '';\n var enc1, enc2, enc3, enc4;\n var i = 0;\n\n while(i < input.length) {\n enc1 = _base64Idx[input.charCodeAt(i++) - 43];\n enc2 = _base64Idx[input.charCodeAt(i++) - 43];\n enc3 = _base64Idx[input.charCodeAt(i++) - 43];\n enc4 = _base64Idx[input.charCodeAt(i++) - 43];\n\n output += String.fromCharCode((enc1 << 2) | (enc2 >> 4));\n if(enc3 !== 64) {\n // decoded at least 2 bytes\n output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2));\n if(enc4 !== 64) {\n // decoded 3 bytes\n output += String.fromCharCode(((enc3 & 3) << 6) | enc4);\n }\n }\n }\n\n return output;\n};\n\n/**\n * Encodes the given string of characters (a standard JavaScript\n * string) as a binary encoded string where the bytes represent\n * a UTF-8 encoded string of characters. Non-ASCII characters will be\n * encoded as multiple bytes according to UTF-8.\n *\n * @param str a standard string of characters to encode.\n *\n * @return the binary encoded string.\n */\nutil.encodeUtf8 = function(str) {\n return unescape(encodeURIComponent(str));\n};\n\n/**\n * Decodes a binary encoded string that contains bytes that\n * represent a UTF-8 encoded string of characters -- into a\n * string of characters (a standard JavaScript string).\n *\n * @param str the binary encoded string to decode.\n *\n * @return the resulting standard string of characters.\n */\nutil.decodeUtf8 = function(str) {\n return decodeURIComponent(escape(str));\n};\n\n// binary encoding/decoding tools\n// FIXME: Experimental. Do not use yet.\nutil.binary = {\n raw: {},\n hex: {},\n base64: {},\n base58: {},\n baseN : {\n encode: baseN.encode,\n decode: baseN.decode\n }\n};\n\n/**\n * Encodes a Uint8Array as a binary-encoded string. This encoding uses\n * a value between 0 and 255 for each character.\n *\n * @param bytes the Uint8Array to encode.\n *\n * @return the binary-encoded string.\n */\nutil.binary.raw.encode = function(bytes) {\n return String.fromCharCode.apply(null, bytes);\n};\n\n/**\n * Decodes a binary-encoded string to a Uint8Array. This encoding uses\n * a value between 0 and 255 for each character.\n *\n * @param str the binary-encoded string to decode.\n * @param [output] an optional Uint8Array to write the output to; if it\n * is too small, an exception will be thrown.\n * @param [offset] the start offset for writing to the output (default: 0).\n *\n * @return the Uint8Array or the number of bytes written if output was given.\n */\nutil.binary.raw.decode = function(str, output, offset) {\n var out = output;\n if(!out) {\n out = new Uint8Array(str.length);\n }\n offset = offset || 0;\n var j = offset;\n for(var i = 0; i < str.length; ++i) {\n out[j++] = str.charCodeAt(i);\n }\n return output ? (j - offset) : out;\n};\n\n/**\n * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or\n * ByteBuffer as a string of hexadecimal characters.\n *\n * @param bytes the bytes to convert.\n *\n * @return the string of hexadecimal characters.\n */\nutil.binary.hex.encode = util.bytesToHex;\n\n/**\n * Decodes a hex-encoded string to a Uint8Array.\n *\n * @param hex the hexadecimal string to convert.\n * @param [output] an optional Uint8Array to write the output to; if it\n * is too small, an exception will be thrown.\n * @param [offset] the start offset for writing to the output (default: 0).\n *\n * @return the Uint8Array or the number of bytes written if output was given.\n */\nutil.binary.hex.decode = function(hex, output, offset) {\n var out = output;\n if(!out) {\n out = new Uint8Array(Math.ceil(hex.length / 2));\n }\n offset = offset || 0;\n var i = 0, j = offset;\n if(hex.length & 1) {\n // odd number of characters, convert first character alone\n i = 1;\n out[j++] = parseInt(hex[0], 16);\n }\n // convert 2 characters (1 byte) at a time\n for(; i < hex.length; i += 2) {\n out[j++] = parseInt(hex.substr(i, 2), 16);\n }\n return output ? (j - offset) : out;\n};\n\n/**\n * Base64-encodes a Uint8Array.\n *\n * @param input the Uint8Array to encode.\n * @param maxline the maximum number of encoded characters per line to use,\n * defaults to none.\n *\n * @return the base64-encoded output string.\n */\nutil.binary.base64.encode = function(input, maxline) {\n var line = '';\n var output = '';\n var chr1, chr2, chr3;\n var i = 0;\n while(i < input.byteLength) {\n chr1 = input[i++];\n chr2 = input[i++];\n chr3 = input[i++];\n\n // encode 4 character group\n line += _base64.charAt(chr1 >> 2);\n line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4));\n if(isNaN(chr2)) {\n line += '==';\n } else {\n line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6));\n line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63);\n }\n\n if(maxline && line.length > maxline) {\n output += line.substr(0, maxline) + '\\r\\n';\n line = line.substr(maxline);\n }\n }\n output += line;\n return output;\n};\n\n/**\n * Decodes a base64-encoded string to a Uint8Array.\n *\n * @param input the base64-encoded input string.\n * @param [output] an optional Uint8Array to write the output to; if it\n * is too small, an exception will be thrown.\n * @param [offset] the start offset for writing to the output (default: 0).\n *\n * @return the Uint8Array or the number of bytes written if output was given.\n */\nutil.binary.base64.decode = function(input, output, offset) {\n var out = output;\n if(!out) {\n out = new Uint8Array(Math.ceil(input.length / 4) * 3);\n }\n\n // remove all non-base64 characters\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, '');\n\n offset = offset || 0;\n var enc1, enc2, enc3, enc4;\n var i = 0, j = offset;\n\n while(i < input.length) {\n enc1 = _base64Idx[input.charCodeAt(i++) - 43];\n enc2 = _base64Idx[input.charCodeAt(i++) - 43];\n enc3 = _base64Idx[input.charCodeAt(i++) - 43];\n enc4 = _base64Idx[input.charCodeAt(i++) - 43];\n\n out[j++] = (enc1 << 2) | (enc2 >> 4);\n if(enc3 !== 64) {\n // decoded at least 2 bytes\n out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2);\n if(enc4 !== 64) {\n // decoded 3 bytes\n out[j++] = ((enc3 & 3) << 6) | enc4;\n }\n }\n }\n\n // make sure result is the exact decoded length\n return output ? (j - offset) : out.subarray(0, j);\n};\n\n// add support for base58 encoding/decoding with Bitcoin alphabet\nutil.binary.base58.encode = function(input, maxline) {\n return util.binary.baseN.encode(input, _base58, maxline);\n};\nutil.binary.base58.decode = function(input, maxline) {\n return util.binary.baseN.decode(input, _base58, maxline);\n};\n\n// text encoding/decoding tools\n// FIXME: Experimental. Do not use yet.\nutil.text = {\n utf8: {},\n utf16: {}\n};\n\n/**\n * Encodes the given string as UTF-8 in a Uint8Array.\n *\n * @param str the string to encode.\n * @param [output] an optional Uint8Array to write the output to; if it\n * is too small, an exception will be thrown.\n * @param [offset] the start offset for writing to the output (default: 0).\n *\n * @return the Uint8Array or the number of bytes written if output was given.\n */\nutil.text.utf8.encode = function(str, output, offset) {\n str = util.encodeUtf8(str);\n var out = output;\n if(!out) {\n out = new Uint8Array(str.length);\n }\n offset = offset || 0;\n var j = offset;\n for(var i = 0; i < str.length; ++i) {\n out[j++] = str.charCodeAt(i);\n }\n return output ? (j - offset) : out;\n};\n\n/**\n * Decodes the UTF-8 contents from a Uint8Array.\n *\n * @param bytes the Uint8Array to decode.\n *\n * @return the resulting string.\n */\nutil.text.utf8.decode = function(bytes) {\n return util.decodeUtf8(String.fromCharCode.apply(null, bytes));\n};\n\n/**\n * Encodes the given string as UTF-16 in a Uint8Array.\n *\n * @param str the string to encode.\n * @param [output] an optional Uint8Array to write the output to; if it\n * is too small, an exception will be thrown.\n * @param [offset] the start offset for writing to the output (default: 0).\n *\n * @return the Uint8Array or the number of bytes written if output was given.\n */\nutil.text.utf16.encode = function(str, output, offset) {\n var out = output;\n if(!out) {\n out = new Uint8Array(str.length * 2);\n }\n var view = new Uint16Array(out.buffer);\n offset = offset || 0;\n var j = offset;\n var k = offset;\n for(var i = 0; i < str.length; ++i) {\n view[k++] = str.charCodeAt(i);\n j += 2;\n }\n return output ? (j - offset) : out;\n};\n\n/**\n * Decodes the UTF-16 contents from a Uint8Array.\n *\n * @param bytes the Uint8Array to decode.\n *\n * @return the resulting string.\n */\nutil.text.utf16.decode = function(bytes) {\n return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer));\n};\n\n/**\n * Deflates the given data using a flash interface.\n *\n * @param api the flash interface.\n * @param bytes the data.\n * @param raw true to return only raw deflate data, false to include zlib\n * header and trailer.\n *\n * @return the deflated data as a string.\n */\nutil.deflate = function(api, bytes, raw) {\n bytes = util.decode64(api.deflate(util.encode64(bytes)).rval);\n\n // strip zlib header and trailer if necessary\n if(raw) {\n // zlib header is 2 bytes (CMF,FLG) where FLG indicates that\n // there is a 4-byte DICT (alder-32) block before the data if\n // its 5th bit is set\n var start = 2;\n var flg = bytes.charCodeAt(1);\n if(flg & 0x20) {\n start = 6;\n }\n // zlib trailer is 4 bytes of adler-32\n bytes = bytes.substring(start, bytes.length - 4);\n }\n\n return bytes;\n};\n\n/**\n * Inflates the given data using a flash interface.\n *\n * @param api the flash interface.\n * @param bytes the data.\n * @param raw true if the incoming data has no zlib header or trailer and is\n * raw DEFLATE data.\n *\n * @return the inflated data as a string, null on error.\n */\nutil.inflate = function(api, bytes, raw) {\n // TODO: add zlib header and trailer if necessary/possible\n var rval = api.inflate(util.encode64(bytes)).rval;\n return (rval === null) ? null : util.decode64(rval);\n};\n\n/**\n * Sets a storage object.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n * @param obj the storage object, null to remove.\n */\nvar _setStorageObject = function(api, id, obj) {\n if(!api) {\n throw new Error('WebStorage not available.');\n }\n\n var rval;\n if(obj === null) {\n rval = api.removeItem(id);\n } else {\n // json-encode and base64-encode object\n obj = util.encode64(JSON.stringify(obj));\n rval = api.setItem(id, obj);\n }\n\n // handle potential flash error\n if(typeof(rval) !== 'undefined' && rval.rval !== true) {\n var error = new Error(rval.error.message);\n error.id = rval.error.id;\n error.name = rval.error.name;\n throw error;\n }\n};\n\n/**\n * Gets a storage object.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n *\n * @return the storage object entry or null if none exists.\n */\nvar _getStorageObject = function(api, id) {\n if(!api) {\n throw new Error('WebStorage not available.');\n }\n\n // get the existing entry\n var rval = api.getItem(id);\n\n /* Note: We check api.init because we can't do (api == localStorage)\n on IE because of \"Class doesn't support Automation\" exception. Only\n the flash api has an init method so this works too, but we need a\n better solution in the future. */\n\n // flash returns item wrapped in an object, handle special case\n if(api.init) {\n if(rval.rval === null) {\n if(rval.error) {\n var error = new Error(rval.error.message);\n error.id = rval.error.id;\n error.name = rval.error.name;\n throw error;\n }\n // no error, but also no item\n rval = null;\n } else {\n rval = rval.rval;\n }\n }\n\n // handle decoding\n if(rval !== null) {\n // base64-decode and json-decode data\n rval = JSON.parse(util.decode64(rval));\n }\n\n return rval;\n};\n\n/**\n * Stores an item in local storage.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n * @param key the key for the item.\n * @param data the data for the item (any javascript object/primitive).\n */\nvar _setItem = function(api, id, key, data) {\n // get storage object\n var obj = _getStorageObject(api, id);\n if(obj === null) {\n // create a new storage object\n obj = {};\n }\n // update key\n obj[key] = data;\n\n // set storage object\n _setStorageObject(api, id, obj);\n};\n\n/**\n * Gets an item from local storage.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n * @param key the key for the item.\n *\n * @return the item.\n */\nvar _getItem = function(api, id, key) {\n // get storage object\n var rval = _getStorageObject(api, id);\n if(rval !== null) {\n // return data at key\n rval = (key in rval) ? rval[key] : null;\n }\n\n return rval;\n};\n\n/**\n * Removes an item from local storage.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n * @param key the key for the item.\n */\nvar _removeItem = function(api, id, key) {\n // get storage object\n var obj = _getStorageObject(api, id);\n if(obj !== null && key in obj) {\n // remove key\n delete obj[key];\n\n // see if entry has no keys remaining\n var empty = true;\n for(var prop in obj) {\n empty = false;\n break;\n }\n if(empty) {\n // remove entry entirely if no keys are left\n obj = null;\n }\n\n // set storage object\n _setStorageObject(api, id, obj);\n }\n};\n\n/**\n * Clears the local disk storage identified by the given ID.\n *\n * @param api the storage interface.\n * @param id the storage ID to use.\n */\nvar _clearItems = function(api, id) {\n _setStorageObject(api, id, null);\n};\n\n/**\n * Calls a storage function.\n *\n * @param func the function to call.\n * @param args the arguments for the function.\n * @param location the location argument.\n *\n * @return the return value from the function.\n */\nvar _callStorageFunction = function(func, args, location) {\n var rval = null;\n\n // default storage types\n if(typeof(location) === 'undefined') {\n location = ['web', 'flash'];\n }\n\n // apply storage types in order of preference\n var type;\n var done = false;\n var exception = null;\n for(var idx in location) {\n type = location[idx];\n try {\n if(type === 'flash' || type === 'both') {\n if(args[0] === null) {\n throw new Error('Flash local storage not available.');\n }\n rval = func.apply(this, args);\n done = (type === 'flash');\n }\n if(type === 'web' || type === 'both') {\n args[0] = localStorage;\n rval = func.apply(this, args);\n done = true;\n }\n } catch(ex) {\n exception = ex;\n }\n if(done) {\n break;\n }\n }\n\n if(!done) {\n throw exception;\n }\n\n return rval;\n};\n\n/**\n * Stores an item on local disk.\n *\n * The available types of local storage include 'flash', 'web', and 'both'.\n *\n * The type 'flash' refers to flash local storage (SharedObject). In order\n * to use flash local storage, the 'api' parameter must be valid. The type\n * 'web' refers to WebStorage, if supported by the browser. The type 'both'\n * refers to storing using both 'flash' and 'web', not just one or the\n * other.\n *\n * The location array should list the storage types to use in order of\n * preference:\n *\n * ['flash']: flash only storage\n * ['web']: web only storage\n * ['both']: try to store in both\n * ['flash','web']: store in flash first, but if not available, 'web'\n * ['web','flash']: store in web first, but if not available, 'flash'\n *\n * The location array defaults to: ['web', 'flash']\n *\n * @param api the flash interface, null to use only WebStorage.\n * @param id the storage ID to use.\n * @param key the key for the item.\n * @param data the data for the item (any javascript object/primitive).\n * @param location an array with the preferred types of storage to use.\n */\nutil.setItem = function(api, id, key, data, location) {\n _callStorageFunction(_setItem, arguments, location);\n};\n\n/**\n * Gets an item on local disk.\n *\n * Set setItem() for details on storage types.\n *\n * @param api the flash interface, null to use only WebStorage.\n * @param id the storage ID to use.\n * @param key the key for the item.\n * @param location an array with the preferred types of storage to use.\n *\n * @return the item.\n */\nutil.getItem = function(api, id, key, location) {\n return _callStorageFunction(_getItem, arguments, location);\n};\n\n/**\n * Removes an item on local disk.\n *\n * Set setItem() for details on storage types.\n *\n * @param api the flash interface.\n * @param id the storage ID to use.\n * @param key the key for the item.\n * @param location an array with the preferred types of storage to use.\n */\nutil.removeItem = function(api, id, key, location) {\n _callStorageFunction(_removeItem, arguments, location);\n};\n\n/**\n * Clears the local disk storage identified by the given ID.\n *\n * Set setItem() for details on storage types.\n *\n * @param api the flash interface if flash is available.\n * @param id the storage ID to use.\n * @param location an array with the preferred types of storage to use.\n */\nutil.clearItems = function(api, id, location) {\n _callStorageFunction(_clearItems, arguments, location);\n};\n\n/**\n * Parses the scheme, host, and port from an http(s) url.\n *\n * @param str the url string.\n *\n * @return the parsed url object or null if the url is invalid.\n */\nutil.parseUrl = function(str) {\n // FIXME: this regex looks a bit broken\n var regex = /^(https?):\\/\\/([^:&^\\/]*):?(\\d*)(.*)$/g;\n regex.lastIndex = 0;\n var m = regex.exec(str);\n var url = (m === null) ? null : {\n full: str,\n scheme: m[1],\n host: m[2],\n port: m[3],\n path: m[4]\n };\n if(url) {\n url.fullHost = url.host;\n if(url.port) {\n if(url.port !== 80 && url.scheme === 'http') {\n url.fullHost += ':' + url.port;\n } else if(url.port !== 443 && url.scheme === 'https') {\n url.fullHost += ':' + url.port;\n }\n } else if(url.scheme === 'http') {\n url.port = 80;\n } else if(url.scheme === 'https') {\n url.port = 443;\n }\n url.full = url.scheme + '://' + url.fullHost;\n }\n return url;\n};\n\n/* Storage for query variables */\nvar _queryVariables = null;\n\n/**\n * Returns the window location query variables. Query is parsed on the first\n * call and the same object is returned on subsequent calls. The mapping\n * is from keys to an array of values. Parameters without values will have\n * an object key set but no value added to the value array. Values are\n * unescaped.\n *\n * ...?k1=v1&k2=v2:\n * {\n * \"k1\": [\"v1\"],\n * \"k2\": [\"v2\"]\n * }\n *\n * ...?k1=v1&k1=v2:\n * {\n * \"k1\": [\"v1\", \"v2\"]\n * }\n *\n * ...?k1=v1&k2:\n * {\n * \"k1\": [\"v1\"],\n * \"k2\": []\n * }\n *\n * ...?k1=v1&k1:\n * {\n * \"k1\": [\"v1\"]\n * }\n *\n * ...?k1&k1:\n * {\n * \"k1\": []\n * }\n *\n * @param query the query string to parse (optional, default to cached\n * results from parsing window location search query).\n *\n * @return object mapping keys to variables.\n */\nutil.getQueryVariables = function(query) {\n var parse = function(q) {\n var rval = {};\n var kvpairs = q.split('&');\n for(var i = 0; i < kvpairs.length; i++) {\n var pos = kvpairs[i].indexOf('=');\n var key;\n var val;\n if(pos > 0) {\n key = kvpairs[i].substring(0, pos);\n val = kvpairs[i].substring(pos + 1);\n } else {\n key = kvpairs[i];\n val = null;\n }\n if(!(key in rval)) {\n rval[key] = [];\n }\n // disallow overriding object prototype keys\n if(!(key in Object.prototype) && val !== null) {\n rval[key].push(unescape(val));\n }\n }\n return rval;\n };\n\n var rval;\n if(typeof(query) === 'undefined') {\n // set cached variables if needed\n if(_queryVariables === null) {\n if(typeof(window) !== 'undefined' && window.location && window.location.search) {\n // parse window search query\n _queryVariables = parse(window.location.search.substring(1));\n } else {\n // no query variables available\n _queryVariables = {};\n }\n }\n rval = _queryVariables;\n } else {\n // parse given query\n rval = parse(query);\n }\n return rval;\n};\n\n/**\n * Parses a fragment into a path and query. This method will take a URI\n * fragment and break it up as if it were the main URI. For example:\n * /bar/baz?a=1&b=2\n * results in:\n * {\n * path: [\"bar\", \"baz\"],\n * query: {\"k1\": [\"v1\"], \"k2\": [\"v2\"]}\n * }\n *\n * @return object with a path array and query object.\n */\nutil.parseFragment = function(fragment) {\n // default to whole fragment\n var fp = fragment;\n var fq = '';\n // split into path and query if possible at the first '?'\n var pos = fragment.indexOf('?');\n if(pos > 0) {\n fp = fragment.substring(0, pos);\n fq = fragment.substring(pos + 1);\n }\n // split path based on '/' and ignore first element if empty\n var path = fp.split('/');\n if(path.length > 0 && path[0] === '') {\n path.shift();\n }\n // convert query into object\n var query = (fq === '') ? {} : util.getQueryVariables(fq);\n\n return {\n pathString: fp,\n queryString: fq,\n path: path,\n query: query\n };\n};\n\n/**\n * Makes a request out of a URI-like request string. This is intended to\n * be used where a fragment id (after a URI '#') is parsed as a URI with\n * path and query parts. The string should have a path beginning and\n * delimited by '/' and optional query parameters following a '?'. The\n * query should be a standard URL set of key value pairs delimited by\n * '&'. For backwards compatibility the initial '/' on the path is not\n * required. The request object has the following API, (fully described\n * in the method code):\n * {\n * path: .\n * query: ,\n * getPath(i): get part or all of the split path array,\n * getQuery(k, i): get part or all of a query key array,\n * getQueryLast(k, _default): get last element of a query key array.\n * }\n *\n * @return object with request parameters.\n */\nutil.makeRequest = function(reqString) {\n var frag = util.parseFragment(reqString);\n var req = {\n // full path string\n path: frag.pathString,\n // full query string\n query: frag.queryString,\n /**\n * Get path or element in path.\n *\n * @param i optional path index.\n *\n * @return path or part of path if i provided.\n */\n getPath: function(i) {\n return (typeof(i) === 'undefined') ? frag.path : frag.path[i];\n },\n /**\n * Get query, values for a key, or value for a key index.\n *\n * @param k optional query key.\n * @param i optional query key index.\n *\n * @return query, values for a key, or value for a key index.\n */\n getQuery: function(k, i) {\n var rval;\n if(typeof(k) === 'undefined') {\n rval = frag.query;\n } else {\n rval = frag.query[k];\n if(rval && typeof(i) !== 'undefined') {\n rval = rval[i];\n }\n }\n return rval;\n },\n getQueryLast: function(k, _default) {\n var rval;\n var vals = req.getQuery(k);\n if(vals) {\n rval = vals[vals.length - 1];\n } else {\n rval = _default;\n }\n return rval;\n }\n };\n return req;\n};\n\n/**\n * Makes a URI out of a path, an object with query parameters, and a\n * fragment. Uses jQuery.param() internally for query string creation.\n * If the path is an array, it will be joined with '/'.\n *\n * @param path string path or array of strings.\n * @param query object with query parameters. (optional)\n * @param fragment fragment string. (optional)\n *\n * @return string object with request parameters.\n */\nutil.makeLink = function(path, query, fragment) {\n // join path parts if needed\n path = jQuery.isArray(path) ? path.join('/') : path;\n\n var qstr = jQuery.param(query || {});\n fragment = fragment || '';\n return path +\n ((qstr.length > 0) ? ('?' + qstr) : '') +\n ((fragment.length > 0) ? ('#' + fragment) : '');\n};\n\n/**\n * Check if an object is empty.\n *\n * Taken from:\n * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937\n *\n * @param object the object to check.\n */\nutil.isEmpty = function(obj) {\n for(var prop in obj) {\n if(obj.hasOwnProperty(prop)) {\n return false;\n }\n }\n return true;\n};\n\n/**\n * Format with simple printf-style interpolation.\n *\n * %%: literal '%'\n * %s,%o: convert next argument into a string.\n *\n * @param format the string to format.\n * @param ... arguments to interpolate into the format string.\n */\nutil.format = function(format) {\n var re = /%./g;\n // current match\n var match;\n // current part\n var part;\n // current arg index\n var argi = 0;\n // collected parts to recombine later\n var parts = [];\n // last index found\n var last = 0;\n // loop while matches remain\n while((match = re.exec(format))) {\n part = format.substring(last, re.lastIndex - 2);\n // don't add empty strings (ie, parts between %s%s)\n if(part.length > 0) {\n parts.push(part);\n }\n last = re.lastIndex;\n // switch on % code\n var code = match[0][1];\n switch(code) {\n case 's':\n case 'o':\n // check if enough arguments were given\n if(argi < arguments.length) {\n parts.push(arguments[argi++ + 1]);\n } else {\n parts.push('');\n }\n break;\n // FIXME: do proper formating for numbers, etc\n //case 'f':\n //case 'd':\n case '%':\n parts.push('%');\n break;\n default:\n parts.push('<%' + code + '?>');\n }\n }\n // add trailing part of format string\n parts.push(format.substring(last));\n return parts.join('');\n};\n\n/**\n * Formats a number.\n *\n * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/\n */\nutil.formatNumber = function(number, decimals, dec_point, thousands_sep) {\n // http://kevin.vanzonneveld.net\n // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)\n // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)\n // + bugfix by: Michael White (http://crestidg.com)\n // + bugfix by: Benjamin Lupton\n // + bugfix by: Allan Jensen (http://www.winternet.no)\n // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)\n // * example 1: number_format(1234.5678, 2, '.', '');\n // * returns 1: 1234.57\n\n var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals;\n var d = dec_point === undefined ? ',' : dec_point;\n var t = thousands_sep === undefined ?\n '.' : thousands_sep, s = n < 0 ? '-' : '';\n var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + '';\n var j = (i.length > 3) ? i.length % 3 : 0;\n return s + (j ? i.substr(0, j) + t : '') +\n i.substr(j).replace(/(\\d{3})(?=\\d)/g, '$1' + t) +\n (c ? d + Math.abs(n - i).toFixed(c).slice(2) : '');\n};\n\n/**\n * Formats a byte size.\n *\n * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/\n */\nutil.formatSize = function(size) {\n if(size >= 1073741824) {\n size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB';\n } else if(size >= 1048576) {\n size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB';\n } else if(size >= 1024) {\n size = util.formatNumber(size / 1024, 0) + ' KiB';\n } else {\n size = util.formatNumber(size, 0) + ' bytes';\n }\n return size;\n};\n\n/**\n * Converts an IPv4 or IPv6 string representation into bytes (in network order).\n *\n * @param ip the IPv4 or IPv6 address to convert.\n *\n * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't\n * be parsed.\n */\nutil.bytesFromIP = function(ip) {\n if(ip.indexOf('.') !== -1) {\n return util.bytesFromIPv4(ip);\n }\n if(ip.indexOf(':') !== -1) {\n return util.bytesFromIPv6(ip);\n }\n return null;\n};\n\n/**\n * Converts an IPv4 string representation into bytes (in network order).\n *\n * @param ip the IPv4 address to convert.\n *\n * @return the 4-byte address or null if the address can't be parsed.\n */\nutil.bytesFromIPv4 = function(ip) {\n ip = ip.split('.');\n if(ip.length !== 4) {\n return null;\n }\n var b = util.createBuffer();\n for(var i = 0; i < ip.length; ++i) {\n var num = parseInt(ip[i], 10);\n if(isNaN(num)) {\n return null;\n }\n b.putByte(num);\n }\n return b.getBytes();\n};\n\n/**\n * Converts an IPv6 string representation into bytes (in network order).\n *\n * @param ip the IPv6 address to convert.\n *\n * @return the 16-byte address or null if the address can't be parsed.\n */\nutil.bytesFromIPv6 = function(ip) {\n var blanks = 0;\n ip = ip.split(':').filter(function(e) {\n if(e.length === 0) ++blanks;\n return true;\n });\n var zeros = (8 - ip.length + blanks) * 2;\n var b = util.createBuffer();\n for(var i = 0; i < 8; ++i) {\n if(!ip[i] || ip[i].length === 0) {\n b.fillWithByte(0, zeros);\n zeros = 0;\n continue;\n }\n var bytes = util.hexToBytes(ip[i]);\n if(bytes.length < 2) {\n b.putByte(0);\n }\n b.putBytes(bytes);\n }\n return b.getBytes();\n};\n\n/**\n * Converts 4-bytes into an IPv4 string representation or 16-bytes into\n * an IPv6 string representation. The bytes must be in network order.\n *\n * @param bytes the bytes to convert.\n *\n * @return the IPv4 or IPv6 string representation if 4 or 16 bytes,\n * respectively, are given, otherwise null.\n */\nutil.bytesToIP = function(bytes) {\n if(bytes.length === 4) {\n return util.bytesToIPv4(bytes);\n }\n if(bytes.length === 16) {\n return util.bytesToIPv6(bytes);\n }\n return null;\n};\n\n/**\n * Converts 4-bytes into an IPv4 string representation. The bytes must be\n * in network order.\n *\n * @param bytes the bytes to convert.\n *\n * @return the IPv4 string representation or null for an invalid # of bytes.\n */\nutil.bytesToIPv4 = function(bytes) {\n if(bytes.length !== 4) {\n return null;\n }\n var ip = [];\n for(var i = 0; i < bytes.length; ++i) {\n ip.push(bytes.charCodeAt(i));\n }\n return ip.join('.');\n};\n\n/**\n * Converts 16-bytes into an IPv16 string representation. The bytes must be\n * in network order.\n *\n * @param bytes the bytes to convert.\n *\n * @return the IPv16 string representation or null for an invalid # of bytes.\n */\nutil.bytesToIPv6 = function(bytes) {\n if(bytes.length !== 16) {\n return null;\n }\n var ip = [];\n var zeroGroups = [];\n var zeroMaxGroup = 0;\n for(var i = 0; i < bytes.length; i += 2) {\n var hex = util.bytesToHex(bytes[i] + bytes[i + 1]);\n // canonicalize zero representation\n while(hex[0] === '0' && hex !== '0') {\n hex = hex.substr(1);\n }\n if(hex === '0') {\n var last = zeroGroups[zeroGroups.length - 1];\n var idx = ip.length;\n if(!last || idx !== last.end + 1) {\n zeroGroups.push({start: idx, end: idx});\n } else {\n last.end = idx;\n if((last.end - last.start) >\n (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) {\n zeroMaxGroup = zeroGroups.length - 1;\n }\n }\n }\n ip.push(hex);\n }\n if(zeroGroups.length > 0) {\n var group = zeroGroups[zeroMaxGroup];\n // only shorten group of length > 0\n if(group.end - group.start > 0) {\n ip.splice(group.start, group.end - group.start + 1, '');\n if(group.start === 0) {\n ip.unshift('');\n }\n if(group.end === 7) {\n ip.push('');\n }\n }\n }\n return ip.join(':');\n};\n\n/**\n * Estimates the number of processes that can be run concurrently. If\n * creating Web Workers, keep in mind that the main JavaScript process needs\n * its own core.\n *\n * @param options the options to use:\n * update true to force an update (not use the cached value).\n * @param callback(err, max) called once the operation completes.\n */\nutil.estimateCores = function(options, callback) {\n if(typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n if('cores' in util && !options.update) {\n return callback(null, util.cores);\n }\n if(typeof navigator !== 'undefined' &&\n 'hardwareConcurrency' in navigator &&\n navigator.hardwareConcurrency > 0) {\n util.cores = navigator.hardwareConcurrency;\n return callback(null, util.cores);\n }\n if(typeof Worker === 'undefined') {\n // workers not available\n util.cores = 1;\n return callback(null, util.cores);\n }\n if(typeof Blob === 'undefined') {\n // can't estimate, default to 2\n util.cores = 2;\n return callback(null, util.cores);\n }\n\n // create worker concurrency estimation code as blob\n var blobUrl = URL.createObjectURL(new Blob(['(',\n function() {\n self.addEventListener('message', function(e) {\n // run worker for 4 ms\n var st = Date.now();\n var et = st + 4;\n while(Date.now() < et);\n self.postMessage({st: st, et: et});\n });\n }.toString(),\n ')()'], {type: 'application/javascript'}));\n\n // take 5 samples using 16 workers\n sample([], 5, 16);\n\n function sample(max, samples, numWorkers) {\n if(samples === 0) {\n // get overlap average\n var avg = Math.floor(max.reduce(function(avg, x) {\n return avg + x;\n }, 0) / max.length);\n util.cores = Math.max(1, avg);\n URL.revokeObjectURL(blobUrl);\n return callback(null, util.cores);\n }\n map(numWorkers, function(err, results) {\n max.push(reduce(numWorkers, results));\n sample(max, samples - 1, numWorkers);\n });\n }\n\n function map(numWorkers, callback) {\n var workers = [];\n var results = [];\n for(var i = 0; i < numWorkers; ++i) {\n var worker = new Worker(blobUrl);\n worker.addEventListener('message', function(e) {\n results.push(e.data);\n if(results.length === numWorkers) {\n for(var i = 0; i < numWorkers; ++i) {\n workers[i].terminate();\n }\n callback(null, results);\n }\n });\n workers.push(worker);\n }\n for(var i = 0; i < numWorkers; ++i) {\n workers[i].postMessage(i);\n }\n }\n\n function reduce(numWorkers, results) {\n // find overlapping time windows\n var overlaps = [];\n for(var n = 0; n < numWorkers; ++n) {\n var r1 = results[n];\n var overlap = overlaps[n] = [];\n for(var i = 0; i < numWorkers; ++i) {\n if(n === i) {\n continue;\n }\n var r2 = results[i];\n if((r1.st > r2.st && r1.st < r2.et) ||\n (r2.st > r1.st && r2.st < r1.et)) {\n overlap.push(i);\n }\n }\n }\n // get maximum overlaps ... don't include overlapping worker itself\n // as the main JS process was also being scheduled during the work and\n // would have to be subtracted from the estimate anyway\n return overlaps.reduce(function(max, overlap) {\n return Math.max(max, overlap.length);\n }, 0);\n }\n};\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","// TODO: Replace with React.createContext once we can assume React 16+\nimport createContext from \"mini-create-react-context\";\n\nconst createNamedContext = name => {\n const context = createContext();\n context.displayName = name;\n\n return context;\n};\n\nexport default createNamedContext;\n","import createNamedContext from \"./createNameContext\";\n\nconst historyContext = /*#__PURE__*/ createNamedContext(\"Router-History\");\nexport default historyContext;\n","// TODO: Replace with React.createContext once we can assume React 16+\nimport createContext from \"mini-create-react-context\";\n\nconst createNamedContext = name => {\n const context = createContext();\n context.displayName = name;\n\n return context;\n};\n\nconst context = /*#__PURE__*/ createNamedContext(\"Router\");\nexport default context;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\nimport HistoryContext from \"./HistoryContext.js\";\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * The public API for putting history on context.\n */\nclass Router extends React.Component {\n static computeRootMatch(pathname) {\n return { path: \"/\", url: \"/\", params: {}, isExact: pathname === \"/\" };\n }\n\n constructor(props) {\n super(props);\n\n this.state = {\n location: props.history.location\n };\n\n // This is a bit of a hack. We have to start listening for location\n // changes here in the constructor in case there are any s\n // on the initial render. If there are, they will replace/push when\n // they mount and since cDM fires in children before parents, we may\n // get a new location before the is mounted.\n this._isMounted = false;\n this._pendingLocation = null;\n\n if (!props.staticContext) {\n this.unlisten = props.history.listen(location => {\n if (this._isMounted) {\n this.setState({ location });\n } else {\n this._pendingLocation = location;\n }\n });\n }\n }\n\n componentDidMount() {\n this._isMounted = true;\n\n if (this._pendingLocation) {\n this.setState({ location: this._pendingLocation });\n }\n }\n\n componentWillUnmount() {\n if (this.unlisten) this.unlisten();\n }\n\n render() {\n return (\n \n \n \n );\n }\n}\n\nif (__DEV__) {\n Router.propTypes = {\n children: PropTypes.node,\n history: PropTypes.object.isRequired,\n staticContext: PropTypes.object\n };\n\n Router.prototype.componentDidUpdate = function(prevProps) {\n warning(\n prevProps.history === this.props.history,\n \"You cannot change \"\n );\n };\n}\n\nexport default Router;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createMemoryHistory as createHistory } from \"history\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\n/**\n * The public API for a that stores location in memory.\n */\nclass MemoryRouter extends React.Component {\n history = createHistory(this.props);\n\n render() {\n return ;\n }\n}\n\nif (__DEV__) {\n MemoryRouter.propTypes = {\n initialEntries: PropTypes.array,\n initialIndex: PropTypes.number,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n };\n\n MemoryRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\"\n );\n };\n}\n\nexport default MemoryRouter;\n","import React from \"react\";\n\nclass Lifecycle extends React.Component {\n componentDidMount() {\n if (this.props.onMount) this.props.onMount.call(this, this);\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);\n }\n\n componentWillUnmount() {\n if (this.props.onUnmount) this.props.onUnmount.call(this, this);\n }\n\n render() {\n return null;\n }\n}\n\nexport default Lifecycle;\n","import pathToRegexp from \"path-to-regexp\";\n\nconst cache = {};\nconst cacheLimit = 10000;\nlet cacheCount = 0;\n\nfunction compilePath(path, options) {\n const cacheKey = `${options.end}${options.strict}${options.sensitive}`;\n const pathCache = cache[cacheKey] || (cache[cacheKey] = {});\n\n if (pathCache[path]) return pathCache[path];\n\n const keys = [];\n const regexp = pathToRegexp(path, keys, options);\n const result = { regexp, keys };\n\n if (cacheCount < cacheLimit) {\n pathCache[path] = result;\n cacheCount++;\n }\n\n return result;\n}\n\n/**\n * Public API for matching a URL pathname to a path.\n */\nfunction matchPath(pathname, options = {}) {\n if (typeof options === \"string\" || Array.isArray(options)) {\n options = { path: options };\n }\n\n const { path, exact = false, strict = false, sensitive = false } = options;\n\n const paths = [].concat(path);\n\n return paths.reduce((matched, path) => {\n if (!path && path !== \"\") return null;\n if (matched) return matched;\n\n const { regexp, keys } = compilePath(path, {\n end: exact,\n strict,\n sensitive\n });\n const match = regexp.exec(pathname);\n\n if (!match) return null;\n\n const [url, ...values] = match;\n const isExact = pathname === url;\n\n if (exact && !isExact) return null;\n\n return {\n path, // the path used to match\n url: path === \"/\" && url === \"\" ? \"/\" : url, // the matched portion of the URL\n isExact, // whether or not we matched exactly\n params: keys.reduce((memo, key, index) => {\n memo[key.name] = values[index];\n return memo;\n }, {})\n };\n }, null);\n}\n\nexport default matchPath;\n","import React from \"react\";\nimport { isValidElementType } from \"react-is\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nfunction isEmptyChildren(children) {\n return React.Children.count(children) === 0;\n}\n\nfunction evalChildrenDev(children, props, path) {\n const value = children(props);\n\n warning(\n value !== undefined,\n \"You returned `undefined` from the `children` function of \" +\n `, but you ` +\n \"should have returned a React element or `null`\"\n );\n\n return value || null;\n}\n\n/**\n * The public API for matching a single path and rendering.\n */\nclass Route extends React.Component {\n render() {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const location = this.props.location || context.location;\n const match = this.props.computedMatch\n ? this.props.computedMatch // already computed the match for us\n : this.props.path\n ? matchPath(location.pathname, this.props)\n : context.match;\n\n const props = { ...context, location, match };\n\n let { children, component, render } = this.props;\n\n // Preact uses an empty array as children by\n // default, so use null if that's the case.\n if (Array.isArray(children) && children.length === 0) {\n children = null;\n }\n\n return (\n \n {props.match\n ? children\n ? typeof children === \"function\"\n ? __DEV__\n ? evalChildrenDev(children, props, this.props.path)\n : children(props)\n : children\n : component\n ? React.createElement(component, props)\n : render\n ? render(props)\n : null\n : typeof children === \"function\"\n ? __DEV__\n ? evalChildrenDev(children, props, this.props.path)\n : children(props)\n : null}\n \n );\n }}\n \n );\n }\n}\n\nif (__DEV__) {\n Route.propTypes = {\n children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n component: (props, propName) => {\n if (props[propName] && !isValidElementType(props[propName])) {\n return new Error(\n `Invalid prop 'component' supplied to 'Route': the prop is not a valid React component`\n );\n }\n },\n exact: PropTypes.bool,\n location: PropTypes.object,\n path: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string)\n ]),\n render: PropTypes.func,\n sensitive: PropTypes.bool,\n strict: PropTypes.bool\n };\n\n Route.prototype.componentDidMount = function() {\n warning(\n !(\n this.props.children &&\n !isEmptyChildren(this.props.children) &&\n this.props.component\n ),\n \"You should not use and in the same route; will be ignored\"\n );\n\n warning(\n !(\n this.props.children &&\n !isEmptyChildren(this.props.children) &&\n this.props.render\n ),\n \"You should not use and in the same route; will be ignored\"\n );\n\n warning(\n !(this.props.component && this.props.render),\n \"You should not use and in the same route; will be ignored\"\n );\n };\n\n Route.prototype.componentDidUpdate = function(prevProps) {\n warning(\n !(this.props.location && !prevProps.location),\n ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n );\n\n warning(\n !(!this.props.location && prevProps.location),\n ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n );\n };\n}\n\nexport default Route;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, createPath } from \"history\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === \"/\" ? path : \"/\" + path;\n}\n\nfunction addBasename(basename, location) {\n if (!basename) return location;\n\n return {\n ...location,\n pathname: addLeadingSlash(basename) + location.pathname\n };\n}\n\nfunction stripBasename(basename, location) {\n if (!basename) return location;\n\n const base = addLeadingSlash(basename);\n\n if (location.pathname.indexOf(base) !== 0) return location;\n\n return {\n ...location,\n pathname: location.pathname.substr(base.length)\n };\n}\n\nfunction createURL(location) {\n return typeof location === \"string\" ? location : createPath(location);\n}\n\nfunction staticHandler(methodName) {\n return () => {\n invariant(false, \"You cannot %s with \", methodName);\n };\n}\n\nfunction noop() {}\n\n/**\n * The public top-level API for a \"static\" , so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\nclass StaticRouter extends React.Component {\n navigateTo(location, action) {\n const { basename = \"\", context = {} } = this.props;\n context.action = action;\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n }\n\n handlePush = location => this.navigateTo(location, \"PUSH\");\n handleReplace = location => this.navigateTo(location, \"REPLACE\");\n handleListen = () => noop;\n handleBlock = () => noop;\n\n render() {\n const { basename = \"\", context = {}, location = \"/\", ...rest } = this.props;\n\n const history = {\n createHref: path => addLeadingSlash(basename + createURL(path)),\n action: \"POP\",\n location: stripBasename(basename, createLocation(location)),\n push: this.handlePush,\n replace: this.handleReplace,\n go: staticHandler(\"go\"),\n goBack: staticHandler(\"goBack\"),\n goForward: staticHandler(\"goForward\"),\n listen: this.handleListen,\n block: this.handleBlock\n };\n\n return ;\n }\n}\n\nif (__DEV__) {\n StaticRouter.propTypes = {\n basename: PropTypes.string,\n context: PropTypes.object,\n location: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n };\n\n StaticRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { StaticRouter as Router }`.\"\n );\n };\n}\n\nexport default StaticRouter;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\n/**\n * The public API for rendering the first that matches.\n */\nclass Switch extends React.Component {\n render() {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const location = this.props.location || context.location;\n\n let element, match;\n\n // We use React.Children.forEach instead of React.Children.toArray().find()\n // here because toArray adds keys to all child elements and we do not want\n // to trigger an unmount/remount for two s that render the same\n // component at different URLs.\n React.Children.forEach(this.props.children, child => {\n if (match == null && React.isValidElement(child)) {\n element = child;\n\n const path = child.props.path || child.props.from;\n\n match = path\n ? matchPath(location.pathname, { ...child.props, path })\n : context.match;\n }\n });\n\n return match\n ? React.cloneElement(element, { location, computedMatch: match })\n : null;\n }}\n \n );\n }\n}\n\nif (__DEV__) {\n Switch.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object\n };\n\n Switch.prototype.componentDidUpdate = function(prevProps) {\n warning(\n !(this.props.location && !prevProps.location),\n ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n );\n\n warning(\n !(!this.props.location && prevProps.location),\n ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n );\n };\n}\n\nexport default Switch;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport invariant from \"tiny-invariant\";\n\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * A public higher-order component to access the imperative API\n */\nfunction withRouter(Component) {\n const displayName = `withRouter(${Component.displayName || Component.name})`;\n const C = props => {\n const { wrappedComponentRef, ...remainingProps } = props;\n\n return (\n \n {context => {\n invariant(\n context,\n `You should not use <${displayName} /> outside a `\n );\n return (\n \n );\n }}\n \n );\n };\n\n C.displayName = displayName;\n C.WrappedComponent = Component;\n\n if (__DEV__) {\n C.propTypes = {\n wrappedComponentRef: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.object\n ])\n };\n }\n\n return hoistStatics(C, Component);\n}\n\nexport default withRouter;\n","import React from \"react\";\nimport invariant from \"tiny-invariant\";\n\nimport Context from \"./RouterContext.js\";\nimport HistoryContext from \"./HistoryContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nconst useContext = React.useContext;\n\nexport function useHistory() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useHistory()\"\n );\n }\n\n return useContext(HistoryContext);\n}\n\nexport function useLocation() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useLocation()\"\n );\n }\n\n return useContext(Context).location;\n}\n\nexport function useParams() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useParams()\"\n );\n }\n\n const match = useContext(Context).match;\n return match ? match.params : {};\n}\n\nexport function useRouteMatch(path) {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useRouteMatch()\"\n );\n }\n\n const location = useLocation();\n const match = useContext(Context).match;\n\n return path ? matchPath(location.pathname, path) : match;\n}\n","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n throw new Error(prefix + \": \" + (message || ''));\n}\n\nexport default invariant;\n","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","'use strict';\n\nvar utils = exports;\nvar BN = require('bn.js');\nvar minAssert = require('minimalistic-assert');\nvar minUtils = require('minimalistic-crypto-utils');\n\nutils.assert = minAssert;\nutils.toArray = minUtils.toArray;\nutils.zero2 = minUtils.zero2;\nutils.toHex = minUtils.toHex;\nutils.encode = minUtils.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n var i;\n for (i = 0; i < naf.length; i += 1) {\n naf[i] = 0;\n }\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n [],\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n var m8;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n\n","function isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nexport default resolvePathname;\n","function valueOf(obj) {\n return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);\n}\n\nfunction valueEqual(a, b) {\n // Test for strict equality first.\n if (a === b) return true;\n\n // Otherwise, if either of them == null they are not equal.\n if (a == null || b == null) return false;\n\n if (Array.isArray(a)) {\n return (\n Array.isArray(b) &&\n a.length === b.length &&\n a.every(function(item, index) {\n return valueEqual(item, b[index]);\n })\n );\n }\n\n if (typeof a === 'object' || typeof b === 'object') {\n var aValue = valueOf(a);\n var bValue = valueOf(b);\n\n if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);\n\n return Object.keys(Object.assign({}, a, b)).every(function(key) {\n return valueEqual(a[key], b[key]);\n });\n }\n\n return false;\n}\n\nexport default valueEqual;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport resolvePathname from 'resolve-pathname';\nimport valueEqual from 'value-equal';\nimport warning from 'tiny-warning';\nimport invariant from 'tiny-invariant';\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === '/' ? path : '/' + path;\n}\nfunction stripLeadingSlash(path) {\n return path.charAt(0) === '/' ? path.substr(1) : path;\n}\nfunction hasBasename(path, prefix) {\n return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;\n}\nfunction stripBasename(path, prefix) {\n return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n}\nfunction stripTrailingSlash(path) {\n return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n}\nfunction parsePath(path) {\n var pathname = path || '/';\n var search = '';\n var hash = '';\n var hashIndex = pathname.indexOf('#');\n\n if (hashIndex !== -1) {\n hash = pathname.substr(hashIndex);\n pathname = pathname.substr(0, hashIndex);\n }\n\n var searchIndex = pathname.indexOf('?');\n\n if (searchIndex !== -1) {\n search = pathname.substr(searchIndex);\n pathname = pathname.substr(0, searchIndex);\n }\n\n return {\n pathname: pathname,\n search: search === '?' ? '' : search,\n hash: hash === '#' ? '' : hash\n };\n}\nfunction createPath(location) {\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n var path = pathname || '/';\n if (search && search !== '?') path += search.charAt(0) === '?' ? search : \"?\" + search;\n if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : \"#\" + hash;\n return path;\n}\n\nfunction createLocation(path, state, key, currentLocation) {\n var location;\n\n if (typeof path === 'string') {\n // Two-arg form: push(path, state)\n location = parsePath(path);\n location.state = state;\n } else {\n // One-arg form: push(location)\n location = _extends({}, path);\n if (location.pathname === undefined) location.pathname = '';\n\n if (location.search) {\n if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n } else {\n location.search = '';\n }\n\n if (location.hash) {\n if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n } else {\n location.hash = '';\n }\n\n if (state !== undefined && location.state === undefined) location.state = state;\n }\n\n try {\n location.pathname = decodeURI(location.pathname);\n } catch (e) {\n if (e instanceof URIError) {\n throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n } else {\n throw e;\n }\n }\n\n if (key) location.key = key;\n\n if (currentLocation) {\n // Resolve incomplete/relative pathname relative to current location.\n if (!location.pathname) {\n location.pathname = currentLocation.pathname;\n } else if (location.pathname.charAt(0) !== '/') {\n location.pathname = resolvePathname(location.pathname, currentLocation.pathname);\n }\n } else {\n // When there is no prior location and pathname is empty, set it to /\n if (!location.pathname) {\n location.pathname = '/';\n }\n }\n\n return location;\n}\nfunction locationsAreEqual(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);\n}\n\nfunction createTransitionManager() {\n var prompt = null;\n\n function setPrompt(nextPrompt) {\n process.env.NODE_ENV !== \"production\" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;\n prompt = nextPrompt;\n return function () {\n if (prompt === nextPrompt) prompt = null;\n };\n }\n\n function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n // TODO: If another transition starts while we're still confirming\n // the previous one, we may end up in a weird state. Figure out the\n // best way to handle this.\n if (prompt != null) {\n var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n if (typeof result === 'string') {\n if (typeof getUserConfirmation === 'function') {\n getUserConfirmation(result, callback);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;\n callback(true);\n }\n } else {\n // Return false from a transition hook to cancel the transition.\n callback(result !== false);\n }\n } else {\n callback(true);\n }\n }\n\n var listeners = [];\n\n function appendListener(fn) {\n var isActive = true;\n\n function listener() {\n if (isActive) fn.apply(void 0, arguments);\n }\n\n listeners.push(listener);\n return function () {\n isActive = false;\n listeners = listeners.filter(function (item) {\n return item !== listener;\n });\n };\n }\n\n function notifyListeners() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n listeners.forEach(function (listener) {\n return listener.apply(void 0, args);\n });\n }\n\n return {\n setPrompt: setPrompt,\n confirmTransitionTo: confirmTransitionTo,\n appendListener: appendListener,\n notifyListeners: notifyListeners\n };\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction getConfirmation(message, callback) {\n callback(window.confirm(message)); // eslint-disable-line no-alert\n}\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nfunction supportsHistory() {\n var ua = window.navigator.userAgent;\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n return window.history && 'pushState' in window.history;\n}\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nfunction supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n}\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nfunction supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n}\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nfunction isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n}\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nfunction getHistoryState() {\n try {\n return window.history.state || {};\n } catch (e) {\n // IE 11 sometimes throws when accessing window.history.state\n // See https://github.com/ReactTraining/history/pull/289\n return {};\n }\n}\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\n\n\nfunction createBrowserHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Browser history needs a DOM') : invariant(false) : void 0;\n var globalHistory = window.history;\n var canUseHistory = supportsHistory();\n var needsHashChangeListener = !supportsPopStateOnHashChange();\n var _props = props,\n _props$forceRefresh = _props.forceRefresh,\n forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n function getDOMLocation(historyState) {\n var _ref = historyState || {},\n key = _ref.key,\n state = _ref.state;\n\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var path = pathname + search + hash;\n process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path, state, key);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function handlePopState(event) {\n // Ignore extraneous popstate events in WebKit.\n if (isExtraneousPopstateEvent(event)) return;\n handlePop(getDOMLocation(event.state));\n }\n\n function handleHashChange() {\n handlePop(getDOMLocation(getHistoryState()));\n }\n\n var forceNextPop = false;\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of keys we've seen in sessionStorage.\n // Instead, we just default to 0 for keys we don't know.\n\n var toIndex = allKeys.indexOf(toLocation.key);\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allKeys.indexOf(fromLocation.key);\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n }\n\n var initialLocation = getDOMLocation(getHistoryState());\n var allKeys = [initialLocation.key]; // Public interface\n\n function createHref(location) {\n return basename + createPath(location);\n }\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.pushState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.href = href;\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n var nextKeys = allKeys.slice(0, prevIndex + 1);\n nextKeys.push(location.key);\n allKeys = nextKeys;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;\n window.location.href = href;\n }\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.replaceState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.replace(href);\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;\n window.location.replace(href);\n }\n });\n }\n\n function go(n) {\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nvar HashChangeEvent$1 = 'hashchange';\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nfunction stripHash(url) {\n var hashIndex = url.indexOf('#');\n return hashIndex === -1 ? url : url.slice(0, hashIndex);\n}\n\nfunction getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n}\n\nfunction pushHashPath(path) {\n window.location.hash = path;\n}\n\nfunction replaceHashPath(path) {\n window.location.replace(stripHash(window.location.href) + '#' + path);\n}\n\nfunction createHashHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Hash history needs a DOM') : invariant(false) : void 0;\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n var _props = props,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$hashType = _props.hashType,\n hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n function getDOMLocation() {\n var path = decodePath(getHashPath());\n process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n var forceNextPop = false;\n var ignorePath = null;\n\n function locationsAreEqual$$1(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;\n }\n\n function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n handlePop(location);\n }\n }\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n } // Ensure the hash is encoded properly before doing anything else.\n\n\n var path = getHashPath();\n var encodedPath = encodePath(path);\n if (path !== encodedPath) replaceHashPath(encodedPath);\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)]; // Public interface\n\n function createHref(location) {\n var baseTag = document.querySelector('base');\n var href = '';\n\n if (baseTag && baseTag.getAttribute('href')) {\n href = stripHash(window.location.href);\n }\n\n return href + '#' + encodePath(basename + createPath(location));\n }\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex + 1);\n nextPaths.push(path);\n allPaths = nextPaths;\n setState({\n action: action,\n location: location\n });\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;\n setState();\n }\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n process.env.NODE_ENV !== \"production\" ? warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(HashChangeEvent$1, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(HashChangeEvent$1, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nfunction createMemoryHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n getUserConfirmation = _props.getUserConfirmation,\n _props$initialEntries = _props.initialEntries,\n initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,\n _props$initialIndex = _props.initialIndex,\n initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = history.entries.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n }); // Public interface\n\n var createHref = createPath;\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n var nextEntries = history.entries.slice(0);\n\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n history.entries[history.index] = location;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n var action = 'POP';\n var location = history.entries[nextIndex];\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n }\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n return transitionManager.setPrompt(prompt);\n }\n\n function listen(listener) {\n return transitionManager.appendListener(listener);\n }\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n return history;\n}\n\nexport { createBrowserHistory, createHashHistory, createMemoryHistory, createLocation, locationsAreEqual, parsePath, createPath };\n","/**\n * An API for getting cryptographically-secure random bytes. The bytes are\n * generated using the Fortuna algorithm devised by Bruce Schneier and\n * Niels Ferguson.\n *\n * Getting strong random bytes is not yet easy to do in javascript. The only\n * truish random entropy that can be collected is from the mouse, keyboard, or\n * from timing with respect to page loads, etc. This generator makes a poor\n * attempt at providing random bytes when those sources haven't yet provided\n * enough entropy to initially seed or to reseed the PRNG.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2009-2014 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nrequire('./aes');\nrequire('./sha256');\nrequire('./prng');\nrequire('./util');\n\n(function() {\n\n// forge.random already defined\nif(forge.random && forge.random.getBytes) {\n module.exports = forge.random;\n return;\n}\n\n(function(jQuery) {\n\n// the default prng plugin, uses AES-128\nvar prng_aes = {};\nvar _prng_aes_output = new Array(4);\nvar _prng_aes_buffer = forge.util.createBuffer();\nprng_aes.formatKey = function(key) {\n // convert the key into 32-bit integers\n var tmp = forge.util.createBuffer(key);\n key = new Array(4);\n key[0] = tmp.getInt32();\n key[1] = tmp.getInt32();\n key[2] = tmp.getInt32();\n key[3] = tmp.getInt32();\n\n // return the expanded key\n return forge.aes._expandKey(key, false);\n};\nprng_aes.formatSeed = function(seed) {\n // convert seed into 32-bit integers\n var tmp = forge.util.createBuffer(seed);\n seed = new Array(4);\n seed[0] = tmp.getInt32();\n seed[1] = tmp.getInt32();\n seed[2] = tmp.getInt32();\n seed[3] = tmp.getInt32();\n return seed;\n};\nprng_aes.cipher = function(key, seed) {\n forge.aes._updateBlock(key, seed, _prng_aes_output, false);\n _prng_aes_buffer.putInt32(_prng_aes_output[0]);\n _prng_aes_buffer.putInt32(_prng_aes_output[1]);\n _prng_aes_buffer.putInt32(_prng_aes_output[2]);\n _prng_aes_buffer.putInt32(_prng_aes_output[3]);\n return _prng_aes_buffer.getBytes();\n};\nprng_aes.increment = function(seed) {\n // FIXME: do we care about carry or signed issues?\n ++seed[3];\n return seed;\n};\nprng_aes.md = forge.md.sha256;\n\n/**\n * Creates a new PRNG.\n */\nfunction spawnPrng() {\n var ctx = forge.prng.create(prng_aes);\n\n /**\n * Gets random bytes. If a native secure crypto API is unavailable, this\n * method tries to make the bytes more unpredictable by drawing from data that\n * can be collected from the user of the browser, eg: mouse movement.\n *\n * If a callback is given, this method will be called asynchronously.\n *\n * @param count the number of random bytes to get.\n * @param [callback(err, bytes)] called once the operation completes.\n *\n * @return the random bytes in a string.\n */\n ctx.getBytes = function(count, callback) {\n return ctx.generate(count, callback);\n };\n\n /**\n * Gets random bytes asynchronously. If a native secure crypto API is\n * unavailable, this method tries to make the bytes more unpredictable by\n * drawing from data that can be collected from the user of the browser,\n * eg: mouse movement.\n *\n * @param count the number of random bytes to get.\n *\n * @return the random bytes in a string.\n */\n ctx.getBytesSync = function(count) {\n return ctx.generate(count);\n };\n\n return ctx;\n}\n\n// create default prng context\nvar _ctx = spawnPrng();\n\n// add other sources of entropy only if window.crypto.getRandomValues is not\n// available -- otherwise this source will be automatically used by the prng\nvar getRandomValues = null;\nvar globalScope = forge.util.globalScope;\nvar _crypto = globalScope.crypto || globalScope.msCrypto;\nif(_crypto && _crypto.getRandomValues) {\n getRandomValues = function(arr) {\n return _crypto.getRandomValues(arr);\n };\n}\n\nif(forge.options.usePureJavaScript ||\n (!forge.util.isNodejs && !getRandomValues)) {\n // if this is a web worker, do not use weak entropy, instead register to\n // receive strong entropy asynchronously from the main thread\n if(typeof window === 'undefined' || window.document === undefined) {\n // FIXME:\n }\n\n // get load time entropy\n _ctx.collectInt(+new Date(), 32);\n\n // add some entropy from navigator object\n if(typeof(navigator) !== 'undefined') {\n var _navBytes = '';\n for(var key in navigator) {\n try {\n if(typeof(navigator[key]) == 'string') {\n _navBytes += navigator[key];\n }\n } catch(e) {\n /* Some navigator keys might not be accessible, e.g. the geolocation\n attribute throws an exception if touched in Mozilla chrome://\n context.\n\n Silently ignore this and just don't use this as a source of\n entropy. */\n }\n }\n _ctx.collect(_navBytes);\n _navBytes = null;\n }\n\n // add mouse and keyboard collectors if jquery is available\n if(jQuery) {\n // set up mouse entropy capture\n jQuery().mousemove(function(e) {\n // add mouse coords\n _ctx.collectInt(e.clientX, 16);\n _ctx.collectInt(e.clientY, 16);\n });\n\n // set up keyboard entropy capture\n jQuery().keypress(function(e) {\n _ctx.collectInt(e.charCode, 8);\n });\n }\n}\n\n/* Random API */\nif(!forge.random) {\n forge.random = _ctx;\n} else {\n // extend forge.random with _ctx\n for(var key in _ctx) {\n forge.random[key] = _ctx[key];\n }\n}\n\n// expose spawn PRNG\nforge.random.createInstance = spawnPrng;\n\nmodule.exports = forge.random;\n\n})(typeof(jQuery) !== 'undefined' ? jQuery : null);\n\n})();\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","/**\n * Javascript implementation of Abstract Syntax Notation Number One.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2015 Digital Bazaar, Inc.\n *\n * An API for storing data using the Abstract Syntax Notation Number One\n * format using DER (Distinguished Encoding Rules) encoding. This encoding is\n * commonly used to store data for PKI, i.e. X.509 Certificates, and this\n * implementation exists for that purpose.\n *\n * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract\n * syntax of information without restricting the way the information is encoded\n * for transmission. It provides a standard that allows for open systems\n * communication. ASN.1 defines the syntax of information data and a number of\n * simple data types as well as a notation for describing them and specifying\n * values for them.\n *\n * The RSA algorithm creates public and private keys that are often stored in\n * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This\n * class provides the most basic functionality required to store and load DSA\n * keys that are encoded according to ASN.1.\n *\n * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules)\n * and DER (Distinguished Encoding Rules). DER is just a subset of BER that\n * has stricter requirements for how data must be encoded.\n *\n * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type)\n * and a byte array for the value of this ASN1 structure which may be data or a\n * list of ASN.1 structures.\n *\n * Each ASN.1 structure using BER is (Tag-Length-Value):\n *\n * | byte 0 | bytes X | bytes Y |\n * |--------|---------|----------\n * | tag | length | value |\n *\n * ASN.1 allows for tags to be of \"High-tag-number form\" which allows a tag to\n * be two or more octets, but that is not supported by this class. A tag is\n * only 1 byte. Bits 1-5 give the tag number (ie the data type within a\n * particular 'class'), 6 indicates whether or not the ASN.1 value is\n * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If\n * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set,\n * then the class is APPLICATION. If only bit 8 is set, then the class is\n * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE.\n * The tag numbers for the data types for the class UNIVERSAL are listed below:\n *\n * UNIVERSAL 0 Reserved for use by the encoding rules\n * UNIVERSAL 1 Boolean type\n * UNIVERSAL 2 Integer type\n * UNIVERSAL 3 Bitstring type\n * UNIVERSAL 4 Octetstring type\n * UNIVERSAL 5 Null type\n * UNIVERSAL 6 Object identifier type\n * UNIVERSAL 7 Object descriptor type\n * UNIVERSAL 8 External type and Instance-of type\n * UNIVERSAL 9 Real type\n * UNIVERSAL 10 Enumerated type\n * UNIVERSAL 11 Embedded-pdv type\n * UNIVERSAL 12 UTF8String type\n * UNIVERSAL 13 Relative object identifier type\n * UNIVERSAL 14-15 Reserved for future editions\n * UNIVERSAL 16 Sequence and Sequence-of types\n * UNIVERSAL 17 Set and Set-of types\n * UNIVERSAL 18-22, 25-30 Character string types\n * UNIVERSAL 23-24 Time types\n *\n * The length of an ASN.1 structure is specified after the tag identifier.\n * There is a definite form and an indefinite form. The indefinite form may\n * be used if the encoding is constructed and not all immediately available.\n * The indefinite form is encoded using a length byte with only the 8th bit\n * set. The end of the constructed object is marked using end-of-contents\n * octets (two zero bytes).\n *\n * The definite form looks like this:\n *\n * The length may take up 1 or more bytes, it depends on the length of the\n * value of the ASN.1 structure. DER encoding requires that if the ASN.1\n * structure has a value that has a length greater than 127, more than 1 byte\n * will be used to store its length, otherwise just one byte will be used.\n * This is strict.\n *\n * In the case that the length of the ASN.1 value is less than 127, 1 octet\n * (byte) is used to store the \"short form\" length. The 8th bit has a value of\n * 0 indicating the length is \"short form\" and not \"long form\" and bits 7-1\n * give the length of the data. (The 8th bit is the left-most, most significant\n * bit: also known as big endian or network format).\n *\n * In the case that the length of the ASN.1 value is greater than 127, 2 to\n * 127 octets (bytes) are used to store the \"long form\" length. The first\n * byte's 8th bit is set to 1 to indicate the length is \"long form.\" Bits 7-1\n * give the number of additional octets. All following octets are in base 256\n * with the most significant digit first (typical big-endian binary unsigned\n * integer storage). So, for instance, if the length of a value was 257, the\n * first byte would be set to:\n *\n * 10000010 = 130 = 0x82.\n *\n * This indicates there are 2 octets (base 256) for the length. The second and\n * third bytes (the octets just mentioned) would store the length in base 256:\n *\n * octet 2: 00000001 = 1 * 256^1 = 256\n * octet 3: 00000001 = 1 * 256^0 = 1\n * total = 257\n *\n * The algorithm for converting a js integer value of 257 to base-256 is:\n *\n * var value = 257;\n * var bytes = [];\n * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first\n * bytes[1] = value & 0xFF; // least significant byte last\n *\n * On the ASN.1 UNIVERSAL Object Identifier (OID) type:\n *\n * An OID can be written like: \"value1.value2.value3...valueN\"\n *\n * The DER encoding rules:\n *\n * The first byte has the value 40 * value1 + value2.\n * The following bytes, if any, encode the remaining values. Each value is\n * encoded in base 128, most significant digit first (big endian), with as\n * few digits as possible, and the most significant bit of each byte set\n * to 1 except the last in each value's encoding. For example: Given the\n * OID \"1.2.840.113549\", its DER encoding is (remember each byte except the\n * last one in each encoding is OR'd with 0x80):\n *\n * byte 1: 40 * 1 + 2 = 42 = 0x2A.\n * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648\n * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D\n *\n * The final value is: 0x2A864886F70D.\n * The full OID (including ASN.1 tag and length of 6 bytes) is:\n * 0x06062A864886F70D\n */\nvar forge = require('./forge');\nrequire('./util');\nrequire('./oids');\n\n/* ASN.1 API */\nvar asn1 = module.exports = forge.asn1 = forge.asn1 || {};\n\n/**\n * ASN.1 classes.\n */\nasn1.Class = {\n UNIVERSAL: 0x00,\n APPLICATION: 0x40,\n CONTEXT_SPECIFIC: 0x80,\n PRIVATE: 0xC0\n};\n\n/**\n * ASN.1 types. Not all types are supported by this implementation, only\n * those necessary to implement a simple PKI are implemented.\n */\nasn1.Type = {\n NONE: 0,\n BOOLEAN: 1,\n INTEGER: 2,\n BITSTRING: 3,\n OCTETSTRING: 4,\n NULL: 5,\n OID: 6,\n ODESC: 7,\n EXTERNAL: 8,\n REAL: 9,\n ENUMERATED: 10,\n EMBEDDED: 11,\n UTF8: 12,\n ROID: 13,\n SEQUENCE: 16,\n SET: 17,\n PRINTABLESTRING: 19,\n IA5STRING: 22,\n UTCTIME: 23,\n GENERALIZEDTIME: 24,\n BMPSTRING: 30\n};\n\n/**\n * Creates a new asn1 object.\n *\n * @param tagClass the tag class for the object.\n * @param type the data type (tag number) for the object.\n * @param constructed true if the asn1 object is in constructed form.\n * @param value the value for the object, if it is not constructed.\n * @param [options] the options to use:\n * [bitStringContents] the plain BIT STRING content including padding\n * byte.\n *\n * @return the asn1 object.\n */\nasn1.create = function(tagClass, type, constructed, value, options) {\n /* An asn1 object has a tagClass, a type, a constructed flag, and a\n value. The value's type depends on the constructed flag. If\n constructed, it will contain a list of other asn1 objects. If not,\n it will contain the ASN.1 value as an array of bytes formatted\n according to the ASN.1 data type. */\n\n // remove undefined values\n if(forge.util.isArray(value)) {\n var tmp = [];\n for(var i = 0; i < value.length; ++i) {\n if(value[i] !== undefined) {\n tmp.push(value[i]);\n }\n }\n value = tmp;\n }\n\n var obj = {\n tagClass: tagClass,\n type: type,\n constructed: constructed,\n composed: constructed || forge.util.isArray(value),\n value: value\n };\n if(options && 'bitStringContents' in options) {\n // TODO: copy byte buffer if it's a buffer not a string\n obj.bitStringContents = options.bitStringContents;\n // TODO: add readonly flag to avoid this overhead\n // save copy to detect changes\n obj.original = asn1.copy(obj);\n }\n return obj;\n};\n\n/**\n * Copies an asn1 object.\n *\n * @param obj the asn1 object.\n * @param [options] copy options:\n * [excludeBitStringContents] true to not copy bitStringContents\n *\n * @return the a copy of the asn1 object.\n */\nasn1.copy = function(obj, options) {\n var copy;\n\n if(forge.util.isArray(obj)) {\n copy = [];\n for(var i = 0; i < obj.length; ++i) {\n copy.push(asn1.copy(obj[i], options));\n }\n return copy;\n }\n\n if(typeof obj === 'string') {\n // TODO: copy byte buffer if it's a buffer not a string\n return obj;\n }\n\n copy = {\n tagClass: obj.tagClass,\n type: obj.type,\n constructed: obj.constructed,\n composed: obj.composed,\n value: asn1.copy(obj.value, options)\n };\n if(options && !options.excludeBitStringContents) {\n // TODO: copy byte buffer if it's a buffer not a string\n copy.bitStringContents = obj.bitStringContents;\n }\n return copy;\n};\n\n/**\n * Compares asn1 objects for equality.\n *\n * Note this function does not run in constant time.\n *\n * @param obj1 the first asn1 object.\n * @param obj2 the second asn1 object.\n * @param [options] compare options:\n * [includeBitStringContents] true to compare bitStringContents\n *\n * @return true if the asn1 objects are equal.\n */\nasn1.equals = function(obj1, obj2, options) {\n if(forge.util.isArray(obj1)) {\n if(!forge.util.isArray(obj2)) {\n return false;\n }\n if(obj1.length !== obj2.length) {\n return false;\n }\n for(var i = 0; i < obj1.length; ++i) {\n if(!asn1.equals(obj1[i], obj2[i])) {\n return false;\n }\n }\n return true;\n }\n\n if(typeof obj1 !== typeof obj2) {\n return false;\n }\n\n if(typeof obj1 === 'string') {\n return obj1 === obj2;\n }\n\n var equal = obj1.tagClass === obj2.tagClass &&\n obj1.type === obj2.type &&\n obj1.constructed === obj2.constructed &&\n obj1.composed === obj2.composed &&\n asn1.equals(obj1.value, obj2.value);\n if(options && options.includeBitStringContents) {\n equal = equal && (obj1.bitStringContents === obj2.bitStringContents);\n }\n\n return equal;\n};\n\n/**\n * Gets the length of a BER-encoded ASN.1 value.\n *\n * In case the length is not specified, undefined is returned.\n *\n * @param b the BER-encoded ASN.1 byte buffer, starting with the first\n * length byte.\n *\n * @return the length of the BER-encoded ASN.1 value or undefined.\n */\nasn1.getBerValueLength = function(b) {\n // TODO: move this function and related DER/BER functions to a der.js\n // file; better abstract ASN.1 away from der/ber.\n var b2 = b.getByte();\n if(b2 === 0x80) {\n return undefined;\n }\n\n // see if the length is \"short form\" or \"long form\" (bit 8 set)\n var length;\n var longForm = b2 & 0x80;\n if(!longForm) {\n // length is just the first byte\n length = b2;\n } else {\n // the number of bytes the length is specified in bits 7 through 1\n // and each length byte is in big-endian base-256\n length = b.getInt((b2 & 0x7F) << 3);\n }\n return length;\n};\n\n/**\n * Check if the byte buffer has enough bytes. Throws an Error if not.\n *\n * @param bytes the byte buffer to parse from.\n * @param remaining the bytes remaining in the current parsing state.\n * @param n the number of bytes the buffer must have.\n */\nfunction _checkBufferLength(bytes, remaining, n) {\n if(n > remaining) {\n var error = new Error('Too few bytes to parse DER.');\n error.available = bytes.length();\n error.remaining = remaining;\n error.requested = n;\n throw error;\n }\n}\n\n/**\n * Gets the length of a BER-encoded ASN.1 value.\n *\n * In case the length is not specified, undefined is returned.\n *\n * @param bytes the byte buffer to parse from.\n * @param remaining the bytes remaining in the current parsing state.\n *\n * @return the length of the BER-encoded ASN.1 value or undefined.\n */\nvar _getValueLength = function(bytes, remaining) {\n // TODO: move this function and related DER/BER functions to a der.js\n // file; better abstract ASN.1 away from der/ber.\n // fromDer already checked that this byte exists\n var b2 = bytes.getByte();\n remaining--;\n if(b2 === 0x80) {\n return undefined;\n }\n\n // see if the length is \"short form\" or \"long form\" (bit 8 set)\n var length;\n var longForm = b2 & 0x80;\n if(!longForm) {\n // length is just the first byte\n length = b2;\n } else {\n // the number of bytes the length is specified in bits 7 through 1\n // and each length byte is in big-endian base-256\n var longFormBytes = b2 & 0x7F;\n _checkBufferLength(bytes, remaining, longFormBytes);\n length = bytes.getInt(longFormBytes << 3);\n }\n // FIXME: this will only happen for 32 bit getInt with high bit set\n if(length < 0) {\n throw new Error('Negative length: ' + length);\n }\n return length;\n};\n\n/**\n * Parses an asn1 object from a byte buffer in DER format.\n *\n * @param bytes the byte buffer to parse from.\n * @param [strict] true to be strict when checking value lengths, false to\n * allow truncated values (default: true).\n * @param [options] object with options or boolean strict flag\n * [strict] true to be strict when checking value lengths, false to\n * allow truncated values (default: true).\n * [decodeBitStrings] true to attempt to decode the content of\n * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that\n * without schema support to understand the data context this can\n * erroneously decode values that happen to be valid ASN.1. This\n * flag will be deprecated or removed as soon as schema support is\n * available. (default: true)\n *\n * @return the parsed asn1 object.\n */\nasn1.fromDer = function(bytes, options) {\n if(options === undefined) {\n options = {\n strict: true,\n decodeBitStrings: true\n };\n }\n if(typeof options === 'boolean') {\n options = {\n strict: options,\n decodeBitStrings: true\n };\n }\n if(!('strict' in options)) {\n options.strict = true;\n }\n if(!('decodeBitStrings' in options)) {\n options.decodeBitStrings = true;\n }\n\n // wrap in buffer if needed\n if(typeof bytes === 'string') {\n bytes = forge.util.createBuffer(bytes);\n }\n\n return _fromDer(bytes, bytes.length(), 0, options);\n};\n\n/**\n * Internal function to parse an asn1 object from a byte buffer in DER format.\n *\n * @param bytes the byte buffer to parse from.\n * @param remaining the number of bytes remaining for this chunk.\n * @param depth the current parsing depth.\n * @param options object with same options as fromDer().\n *\n * @return the parsed asn1 object.\n */\nfunction _fromDer(bytes, remaining, depth, options) {\n // temporary storage for consumption calculations\n var start;\n\n // minimum length for ASN.1 DER structure is 2\n _checkBufferLength(bytes, remaining, 2);\n\n // get the first byte\n var b1 = bytes.getByte();\n // consumed one byte\n remaining--;\n\n // get the tag class\n var tagClass = (b1 & 0xC0);\n\n // get the type (bits 1-5)\n var type = b1 & 0x1F;\n\n // get the variable value length and adjust remaining bytes\n start = bytes.length();\n var length = _getValueLength(bytes, remaining);\n remaining -= start - bytes.length();\n\n // ensure there are enough bytes to get the value\n if(length !== undefined && length > remaining) {\n if(options.strict) {\n var error = new Error('Too few bytes to read ASN.1 value.');\n error.available = bytes.length();\n error.remaining = remaining;\n error.requested = length;\n throw error;\n }\n // Note: be lenient with truncated values and use remaining state bytes\n length = remaining;\n }\n\n // value storage\n var value;\n // possible BIT STRING contents storage\n var bitStringContents;\n\n // constructed flag is bit 6 (32 = 0x20) of the first byte\n var constructed = ((b1 & 0x20) === 0x20);\n if(constructed) {\n // parse child asn1 objects from the value\n value = [];\n if(length === undefined) {\n // asn1 object of indefinite length, read until end tag\n for(;;) {\n _checkBufferLength(bytes, remaining, 2);\n if(bytes.bytes(2) === String.fromCharCode(0, 0)) {\n bytes.getBytes(2);\n remaining -= 2;\n break;\n }\n start = bytes.length();\n value.push(_fromDer(bytes, remaining, depth + 1, options));\n remaining -= start - bytes.length();\n }\n } else {\n // parsing asn1 object of definite length\n while(length > 0) {\n start = bytes.length();\n value.push(_fromDer(bytes, length, depth + 1, options));\n remaining -= start - bytes.length();\n length -= start - bytes.length();\n }\n }\n }\n\n // if a BIT STRING, save the contents including padding\n if(value === undefined && tagClass === asn1.Class.UNIVERSAL &&\n type === asn1.Type.BITSTRING) {\n bitStringContents = bytes.bytes(length);\n }\n\n // determine if a non-constructed value should be decoded as a composed\n // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs)\n // can be used this way.\n if(value === undefined && options.decodeBitStrings &&\n tagClass === asn1.Class.UNIVERSAL &&\n // FIXME: OCTET STRINGs not yet supported here\n // .. other parts of forge expect to decode OCTET STRINGs manually\n (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) &&\n length > 1) {\n // save read position\n var savedRead = bytes.read;\n var savedRemaining = remaining;\n var unused = 0;\n if(type === asn1.Type.BITSTRING) {\n /* The first octet gives the number of bits by which the length of the\n bit string is less than the next multiple of eight (this is called\n the \"number of unused bits\").\n\n The second and following octets give the value of the bit string\n converted to an octet string. */\n _checkBufferLength(bytes, remaining, 1);\n unused = bytes.getByte();\n remaining--;\n }\n // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs\n if(unused === 0) {\n try {\n // attempt to parse child asn1 object from the value\n // (stored in array to signal composed value)\n start = bytes.length();\n var subOptions = {\n // enforce strict mode to avoid parsing ASN.1 from plain data\n verbose: options.verbose,\n strict: true,\n decodeBitStrings: true\n };\n var composed = _fromDer(bytes, remaining, depth + 1, subOptions);\n var used = start - bytes.length();\n remaining -= used;\n if(type == asn1.Type.BITSTRING) {\n used++;\n }\n\n // if the data all decoded and the class indicates UNIVERSAL or\n // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object\n var tc = composed.tagClass;\n if(used === length &&\n (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) {\n value = [composed];\n }\n } catch(ex) {\n }\n }\n if(value === undefined) {\n // restore read position\n bytes.read = savedRead;\n remaining = savedRemaining;\n }\n }\n\n if(value === undefined) {\n // asn1 not constructed or composed, get raw value\n // TODO: do DER to OID conversion and vice-versa in .toDer?\n\n if(length === undefined) {\n if(options.strict) {\n throw new Error('Non-constructed ASN.1 object of indefinite length.');\n }\n // be lenient and use remaining state bytes\n length = remaining;\n }\n\n if(type === asn1.Type.BMPSTRING) {\n value = '';\n for(; length > 0; length -= 2) {\n _checkBufferLength(bytes, remaining, 2);\n value += String.fromCharCode(bytes.getInt16());\n remaining -= 2;\n }\n } else {\n value = bytes.getBytes(length);\n }\n }\n\n // add BIT STRING contents if available\n var asn1Options = bitStringContents === undefined ? null : {\n bitStringContents: bitStringContents\n };\n\n // create and return asn1 object\n return asn1.create(tagClass, type, constructed, value, asn1Options);\n}\n\n/**\n * Converts the given asn1 object to a buffer of bytes in DER format.\n *\n * @param asn1 the asn1 object to convert to bytes.\n *\n * @return the buffer of bytes.\n */\nasn1.toDer = function(obj) {\n var bytes = forge.util.createBuffer();\n\n // build the first byte\n var b1 = obj.tagClass | obj.type;\n\n // for storing the ASN.1 value\n var value = forge.util.createBuffer();\n\n // use BIT STRING contents if available and data not changed\n var useBitStringContents = false;\n if('bitStringContents' in obj) {\n useBitStringContents = true;\n if(obj.original) {\n useBitStringContents = asn1.equals(obj, obj.original);\n }\n }\n\n if(useBitStringContents) {\n value.putBytes(obj.bitStringContents);\n } else if(obj.composed) {\n // if composed, use each child asn1 object's DER bytes as value\n // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed\n // from other asn1 objects\n if(obj.constructed) {\n b1 |= 0x20;\n } else {\n // type is a bit string, add unused bits of 0x00\n value.putByte(0x00);\n }\n\n // add all of the child DER bytes together\n for(var i = 0; i < obj.value.length; ++i) {\n if(obj.value[i] !== undefined) {\n value.putBuffer(asn1.toDer(obj.value[i]));\n }\n }\n } else {\n // use asn1.value directly\n if(obj.type === asn1.Type.BMPSTRING) {\n for(var i = 0; i < obj.value.length; ++i) {\n value.putInt16(obj.value.charCodeAt(i));\n }\n } else {\n // ensure integer is minimally-encoded\n // TODO: should all leading bytes be stripped vs just one?\n // .. ex '00 00 01' => '01'?\n if(obj.type === asn1.Type.INTEGER &&\n obj.value.length > 1 &&\n // leading 0x00 for positive integer\n ((obj.value.charCodeAt(0) === 0 &&\n (obj.value.charCodeAt(1) & 0x80) === 0) ||\n // leading 0xFF for negative integer\n (obj.value.charCodeAt(0) === 0xFF &&\n (obj.value.charCodeAt(1) & 0x80) === 0x80))) {\n value.putBytes(obj.value.substr(1));\n } else {\n value.putBytes(obj.value);\n }\n }\n }\n\n // add tag byte\n bytes.putByte(b1);\n\n // use \"short form\" encoding\n if(value.length() <= 127) {\n // one byte describes the length\n // bit 8 = 0 and bits 7-1 = length\n bytes.putByte(value.length() & 0x7F);\n } else {\n // use \"long form\" encoding\n // 2 to 127 bytes describe the length\n // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes\n // other bytes: length in base 256, big-endian\n var len = value.length();\n var lenBytes = '';\n do {\n lenBytes += String.fromCharCode(len & 0xFF);\n len = len >>> 8;\n } while(len > 0);\n\n // set first byte to # bytes used to store the length and turn on\n // bit 8 to indicate long-form length is used\n bytes.putByte(lenBytes.length | 0x80);\n\n // concatenate length bytes in reverse since they were generated\n // little endian and we need big endian\n for(var i = lenBytes.length - 1; i >= 0; --i) {\n bytes.putByte(lenBytes.charCodeAt(i));\n }\n }\n\n // concatenate value bytes\n bytes.putBuffer(value);\n return bytes;\n};\n\n/**\n * Converts an OID dot-separated string to a byte buffer. The byte buffer\n * contains only the DER-encoded value, not any tag or length bytes.\n *\n * @param oid the OID dot-separated string.\n *\n * @return the byte buffer.\n */\nasn1.oidToDer = function(oid) {\n // split OID into individual values\n var values = oid.split('.');\n var bytes = forge.util.createBuffer();\n\n // first byte is 40 * value1 + value2\n bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10));\n // other bytes are each value in base 128 with 8th bit set except for\n // the last byte for each value\n var last, valueBytes, value, b;\n for(var i = 2; i < values.length; ++i) {\n // produce value bytes in reverse because we don't know how many\n // bytes it will take to store the value\n last = true;\n valueBytes = [];\n value = parseInt(values[i], 10);\n do {\n b = value & 0x7F;\n value = value >>> 7;\n // if value is not last, then turn on 8th bit\n if(!last) {\n b |= 0x80;\n }\n valueBytes.push(b);\n last = false;\n } while(value > 0);\n\n // add value bytes in reverse (needs to be in big endian)\n for(var n = valueBytes.length - 1; n >= 0; --n) {\n bytes.putByte(valueBytes[n]);\n }\n }\n\n return bytes;\n};\n\n/**\n * Converts a DER-encoded byte buffer to an OID dot-separated string. The\n * byte buffer should contain only the DER-encoded value, not any tag or\n * length bytes.\n *\n * @param bytes the byte buffer.\n *\n * @return the OID dot-separated string.\n */\nasn1.derToOid = function(bytes) {\n var oid;\n\n // wrap in buffer if needed\n if(typeof bytes === 'string') {\n bytes = forge.util.createBuffer(bytes);\n }\n\n // first byte is 40 * value1 + value2\n var b = bytes.getByte();\n oid = Math.floor(b / 40) + '.' + (b % 40);\n\n // other bytes are each value in base 128 with 8th bit set except for\n // the last byte for each value\n var value = 0;\n while(bytes.length() > 0) {\n b = bytes.getByte();\n value = value << 7;\n // not the last byte for the value\n if(b & 0x80) {\n value += b & 0x7F;\n } else {\n // last byte\n oid += '.' + (value + b);\n value = 0;\n }\n }\n\n return oid;\n};\n\n/**\n * Converts a UTCTime value to a date.\n *\n * Note: GeneralizedTime has 4 digits for the year and is used for X.509\n * dates past 2049. Parsing that structure hasn't been implemented yet.\n *\n * @param utc the UTCTime value to convert.\n *\n * @return the date.\n */\nasn1.utcTimeToDate = function(utc) {\n /* The following formats can be used:\n\n YYMMDDhhmmZ\n YYMMDDhhmm+hh'mm'\n YYMMDDhhmm-hh'mm'\n YYMMDDhhmmssZ\n YYMMDDhhmmss+hh'mm'\n YYMMDDhhmmss-hh'mm'\n\n Where:\n\n YY is the least significant two digits of the year\n MM is the month (01 to 12)\n DD is the day (01 to 31)\n hh is the hour (00 to 23)\n mm are the minutes (00 to 59)\n ss are the seconds (00 to 59)\n Z indicates that local time is GMT, + indicates that local time is\n later than GMT, and - indicates that local time is earlier than GMT\n hh' is the absolute value of the offset from GMT in hours\n mm' is the absolute value of the offset from GMT in minutes */\n var date = new Date();\n\n // if YY >= 50 use 19xx, if YY < 50 use 20xx\n var year = parseInt(utc.substr(0, 2), 10);\n year = (year >= 50) ? 1900 + year : 2000 + year;\n var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month\n var DD = parseInt(utc.substr(4, 2), 10);\n var hh = parseInt(utc.substr(6, 2), 10);\n var mm = parseInt(utc.substr(8, 2), 10);\n var ss = 0;\n\n // not just YYMMDDhhmmZ\n if(utc.length > 11) {\n // get character after minutes\n var c = utc.charAt(10);\n var end = 10;\n\n // see if seconds are present\n if(c !== '+' && c !== '-') {\n // get seconds\n ss = parseInt(utc.substr(10, 2), 10);\n end += 2;\n }\n }\n\n // update date\n date.setUTCFullYear(year, MM, DD);\n date.setUTCHours(hh, mm, ss, 0);\n\n if(end) {\n // get +/- after end of time\n c = utc.charAt(end);\n if(c === '+' || c === '-') {\n // get hours+minutes offset\n var hhoffset = parseInt(utc.substr(end + 1, 2), 10);\n var mmoffset = parseInt(utc.substr(end + 4, 2), 10);\n\n // calculate offset in milliseconds\n var offset = hhoffset * 60 + mmoffset;\n offset *= 60000;\n\n // apply offset\n if(c === '+') {\n date.setTime(+date - offset);\n } else {\n date.setTime(+date + offset);\n }\n }\n }\n\n return date;\n};\n\n/**\n * Converts a GeneralizedTime value to a date.\n *\n * @param gentime the GeneralizedTime value to convert.\n *\n * @return the date.\n */\nasn1.generalizedTimeToDate = function(gentime) {\n /* The following formats can be used:\n\n YYYYMMDDHHMMSS\n YYYYMMDDHHMMSS.fff\n YYYYMMDDHHMMSSZ\n YYYYMMDDHHMMSS.fffZ\n YYYYMMDDHHMMSS+hh'mm'\n YYYYMMDDHHMMSS.fff+hh'mm'\n YYYYMMDDHHMMSS-hh'mm'\n YYYYMMDDHHMMSS.fff-hh'mm'\n\n Where:\n\n YYYY is the year\n MM is the month (01 to 12)\n DD is the day (01 to 31)\n hh is the hour (00 to 23)\n mm are the minutes (00 to 59)\n ss are the seconds (00 to 59)\n .fff is the second fraction, accurate to three decimal places\n Z indicates that local time is GMT, + indicates that local time is\n later than GMT, and - indicates that local time is earlier than GMT\n hh' is the absolute value of the offset from GMT in hours\n mm' is the absolute value of the offset from GMT in minutes */\n var date = new Date();\n\n var YYYY = parseInt(gentime.substr(0, 4), 10);\n var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month\n var DD = parseInt(gentime.substr(6, 2), 10);\n var hh = parseInt(gentime.substr(8, 2), 10);\n var mm = parseInt(gentime.substr(10, 2), 10);\n var ss = parseInt(gentime.substr(12, 2), 10);\n var fff = 0;\n var offset = 0;\n var isUTC = false;\n\n if(gentime.charAt(gentime.length - 1) === 'Z') {\n isUTC = true;\n }\n\n var end = gentime.length - 5, c = gentime.charAt(end);\n if(c === '+' || c === '-') {\n // get hours+minutes offset\n var hhoffset = parseInt(gentime.substr(end + 1, 2), 10);\n var mmoffset = parseInt(gentime.substr(end + 4, 2), 10);\n\n // calculate offset in milliseconds\n offset = hhoffset * 60 + mmoffset;\n offset *= 60000;\n\n // apply offset\n if(c === '+') {\n offset *= -1;\n }\n\n isUTC = true;\n }\n\n // check for second fraction\n if(gentime.charAt(14) === '.') {\n fff = parseFloat(gentime.substr(14), 10) * 1000;\n }\n\n if(isUTC) {\n date.setUTCFullYear(YYYY, MM, DD);\n date.setUTCHours(hh, mm, ss, fff);\n\n // apply offset\n date.setTime(+date + offset);\n } else {\n date.setFullYear(YYYY, MM, DD);\n date.setHours(hh, mm, ss, fff);\n }\n\n return date;\n};\n\n/**\n * Converts a date to a UTCTime value.\n *\n * Note: GeneralizedTime has 4 digits for the year and is used for X.509\n * dates past 2049. Converting to a GeneralizedTime hasn't been\n * implemented yet.\n *\n * @param date the date to convert.\n *\n * @return the UTCTime value.\n */\nasn1.dateToUtcTime = function(date) {\n // TODO: validate; currently assumes proper format\n if(typeof date === 'string') {\n return date;\n }\n\n var rval = '';\n\n // create format YYMMDDhhmmssZ\n var format = [];\n format.push(('' + date.getUTCFullYear()).substr(2));\n format.push('' + (date.getUTCMonth() + 1));\n format.push('' + date.getUTCDate());\n format.push('' + date.getUTCHours());\n format.push('' + date.getUTCMinutes());\n format.push('' + date.getUTCSeconds());\n\n // ensure 2 digits are used for each format entry\n for(var i = 0; i < format.length; ++i) {\n if(format[i].length < 2) {\n rval += '0';\n }\n rval += format[i];\n }\n rval += 'Z';\n\n return rval;\n};\n\n/**\n * Converts a date to a GeneralizedTime value.\n *\n * @param date the date to convert.\n *\n * @return the GeneralizedTime value as a string.\n */\nasn1.dateToGeneralizedTime = function(date) {\n // TODO: validate; currently assumes proper format\n if(typeof date === 'string') {\n return date;\n }\n\n var rval = '';\n\n // create format YYYYMMDDHHMMSSZ\n var format = [];\n format.push('' + date.getUTCFullYear());\n format.push('' + (date.getUTCMonth() + 1));\n format.push('' + date.getUTCDate());\n format.push('' + date.getUTCHours());\n format.push('' + date.getUTCMinutes());\n format.push('' + date.getUTCSeconds());\n\n // ensure 2 digits are used for each format entry\n for(var i = 0; i < format.length; ++i) {\n if(format[i].length < 2) {\n rval += '0';\n }\n rval += format[i];\n }\n rval += 'Z';\n\n return rval;\n};\n\n/**\n * Converts a javascript integer to a DER-encoded byte buffer to be used\n * as the value for an INTEGER type.\n *\n * @param x the integer.\n *\n * @return the byte buffer.\n */\nasn1.integerToDer = function(x) {\n var rval = forge.util.createBuffer();\n if(x >= -0x80 && x < 0x80) {\n return rval.putSignedInt(x, 8);\n }\n if(x >= -0x8000 && x < 0x8000) {\n return rval.putSignedInt(x, 16);\n }\n if(x >= -0x800000 && x < 0x800000) {\n return rval.putSignedInt(x, 24);\n }\n if(x >= -0x80000000 && x < 0x80000000) {\n return rval.putSignedInt(x, 32);\n }\n var error = new Error('Integer too large; max is 32-bits.');\n error.integer = x;\n throw error;\n};\n\n/**\n * Converts a DER-encoded byte buffer to a javascript integer. This is\n * typically used to decode the value of an INTEGER type.\n *\n * @param bytes the byte buffer.\n *\n * @return the integer.\n */\nasn1.derToInteger = function(bytes) {\n // wrap in buffer if needed\n if(typeof bytes === 'string') {\n bytes = forge.util.createBuffer(bytes);\n }\n\n var n = bytes.length() * 8;\n if(n > 32) {\n throw new Error('Integer too large; max is 32-bits.');\n }\n return bytes.getSignedInt(n);\n};\n\n/**\n * Validates that the given ASN.1 object is at least a super set of the\n * given ASN.1 structure. Only tag classes and types are checked. An\n * optional map may also be provided to capture ASN.1 values while the\n * structure is checked.\n *\n * To capture an ASN.1 value, set an object in the validator's 'capture'\n * parameter to the key to use in the capture map. To capture the full\n * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including\n * the leading unused bits counter byte, specify 'captureBitStringContents'.\n * To capture BIT STRING bytes, without the leading unused bits counter byte,\n * specify 'captureBitStringValue'.\n *\n * Objects in the validator may set a field 'optional' to true to indicate\n * that it isn't necessary to pass validation.\n *\n * @param obj the ASN.1 object to validate.\n * @param v the ASN.1 structure validator.\n * @param capture an optional map to capture values in.\n * @param errors an optional array for storing validation errors.\n *\n * @return true on success, false on failure.\n */\nasn1.validate = function(obj, v, capture, errors) {\n var rval = false;\n\n // ensure tag class and type are the same if specified\n if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') &&\n (obj.type === v.type || typeof(v.type) === 'undefined')) {\n // ensure constructed flag is the same if specified\n if(obj.constructed === v.constructed ||\n typeof(v.constructed) === 'undefined') {\n rval = true;\n\n // handle sub values\n if(v.value && forge.util.isArray(v.value)) {\n var j = 0;\n for(var i = 0; rval && i < v.value.length; ++i) {\n rval = v.value[i].optional || false;\n if(obj.value[j]) {\n rval = asn1.validate(obj.value[j], v.value[i], capture, errors);\n if(rval) {\n ++j;\n } else if(v.value[i].optional) {\n rval = true;\n }\n }\n if(!rval && errors) {\n errors.push(\n '[' + v.name + '] ' +\n 'Tag class \"' + v.tagClass + '\", type \"' +\n v.type + '\" expected value length \"' +\n v.value.length + '\", got \"' +\n obj.value.length + '\"');\n }\n }\n }\n\n if(rval && capture) {\n if(v.capture) {\n capture[v.capture] = obj.value;\n }\n if(v.captureAsn1) {\n capture[v.captureAsn1] = obj;\n }\n if(v.captureBitStringContents && 'bitStringContents' in obj) {\n capture[v.captureBitStringContents] = obj.bitStringContents;\n }\n if(v.captureBitStringValue && 'bitStringContents' in obj) {\n var value;\n if(obj.bitStringContents.length < 2) {\n capture[v.captureBitStringValue] = '';\n } else {\n // FIXME: support unused bits with data shifting\n var unused = obj.bitStringContents.charCodeAt(0);\n if(unused !== 0) {\n throw new Error(\n 'captureBitStringValue only supported for zero unused bits');\n }\n capture[v.captureBitStringValue] = obj.bitStringContents.slice(1);\n }\n }\n }\n } else if(errors) {\n errors.push(\n '[' + v.name + '] ' +\n 'Expected constructed \"' + v.constructed + '\", got \"' +\n obj.constructed + '\"');\n }\n } else if(errors) {\n if(obj.tagClass !== v.tagClass) {\n errors.push(\n '[' + v.name + '] ' +\n 'Expected tag class \"' + v.tagClass + '\", got \"' +\n obj.tagClass + '\"');\n }\n if(obj.type !== v.type) {\n errors.push(\n '[' + v.name + '] ' +\n 'Expected type \"' + v.type + '\", got \"' + obj.type + '\"');\n }\n }\n return rval;\n};\n\n// regex for testing for non-latin characters\nvar _nonLatinRegex = /[^\\\\u0000-\\\\u00ff]/;\n\n/**\n * Pretty prints an ASN.1 object to a string.\n *\n * @param obj the object to write out.\n * @param level the level in the tree.\n * @param indentation the indentation to use.\n *\n * @return the string.\n */\nasn1.prettyPrint = function(obj, level, indentation) {\n var rval = '';\n\n // set default level and indentation\n level = level || 0;\n indentation = indentation || 2;\n\n // start new line for deep levels\n if(level > 0) {\n rval += '\\n';\n }\n\n // create indent\n var indent = '';\n for(var i = 0; i < level * indentation; ++i) {\n indent += ' ';\n }\n\n // print class:type\n rval += indent + 'Tag: ';\n switch(obj.tagClass) {\n case asn1.Class.UNIVERSAL:\n rval += 'Universal:';\n break;\n case asn1.Class.APPLICATION:\n rval += 'Application:';\n break;\n case asn1.Class.CONTEXT_SPECIFIC:\n rval += 'Context-Specific:';\n break;\n case asn1.Class.PRIVATE:\n rval += 'Private:';\n break;\n }\n\n if(obj.tagClass === asn1.Class.UNIVERSAL) {\n rval += obj.type;\n\n // known types\n switch(obj.type) {\n case asn1.Type.NONE:\n rval += ' (None)';\n break;\n case asn1.Type.BOOLEAN:\n rval += ' (Boolean)';\n break;\n case asn1.Type.INTEGER:\n rval += ' (Integer)';\n break;\n case asn1.Type.BITSTRING:\n rval += ' (Bit string)';\n break;\n case asn1.Type.OCTETSTRING:\n rval += ' (Octet string)';\n break;\n case asn1.Type.NULL:\n rval += ' (Null)';\n break;\n case asn1.Type.OID:\n rval += ' (Object Identifier)';\n break;\n case asn1.Type.ODESC:\n rval += ' (Object Descriptor)';\n break;\n case asn1.Type.EXTERNAL:\n rval += ' (External or Instance of)';\n break;\n case asn1.Type.REAL:\n rval += ' (Real)';\n break;\n case asn1.Type.ENUMERATED:\n rval += ' (Enumerated)';\n break;\n case asn1.Type.EMBEDDED:\n rval += ' (Embedded PDV)';\n break;\n case asn1.Type.UTF8:\n rval += ' (UTF8)';\n break;\n case asn1.Type.ROID:\n rval += ' (Relative Object Identifier)';\n break;\n case asn1.Type.SEQUENCE:\n rval += ' (Sequence)';\n break;\n case asn1.Type.SET:\n rval += ' (Set)';\n break;\n case asn1.Type.PRINTABLESTRING:\n rval += ' (Printable String)';\n break;\n case asn1.Type.IA5String:\n rval += ' (IA5String (ASCII))';\n break;\n case asn1.Type.UTCTIME:\n rval += ' (UTC time)';\n break;\n case asn1.Type.GENERALIZEDTIME:\n rval += ' (Generalized time)';\n break;\n case asn1.Type.BMPSTRING:\n rval += ' (BMP String)';\n break;\n }\n } else {\n rval += obj.type;\n }\n\n rval += '\\n';\n rval += indent + 'Constructed: ' + obj.constructed + '\\n';\n\n if(obj.composed) {\n var subvalues = 0;\n var sub = '';\n for(var i = 0; i < obj.value.length; ++i) {\n if(obj.value[i] !== undefined) {\n subvalues += 1;\n sub += asn1.prettyPrint(obj.value[i], level + 1, indentation);\n if((i + 1) < obj.value.length) {\n sub += ',';\n }\n }\n }\n rval += indent + 'Sub values: ' + subvalues + sub;\n } else {\n rval += indent + 'Value: ';\n if(obj.type === asn1.Type.OID) {\n var oid = asn1.derToOid(obj.value);\n rval += oid;\n if(forge.pki && forge.pki.oids) {\n if(oid in forge.pki.oids) {\n rval += ' (' + forge.pki.oids[oid] + ') ';\n }\n }\n }\n if(obj.type === asn1.Type.INTEGER) {\n try {\n rval += asn1.derToInteger(obj.value);\n } catch(ex) {\n rval += '0x' + forge.util.bytesToHex(obj.value);\n }\n } else if(obj.type === asn1.Type.BITSTRING) {\n // TODO: shift bits as needed to display without padding\n if(obj.value.length > 1) {\n // remove unused bits field\n rval += '0x' + forge.util.bytesToHex(obj.value.slice(1));\n } else {\n rval += '(none)';\n }\n // show unused bit count\n if(obj.value.length > 0) {\n var unused = obj.value.charCodeAt(0);\n if(unused == 1) {\n rval += ' (1 unused bit shown)';\n } else if(unused > 1) {\n rval += ' (' + unused + ' unused bits shown)';\n }\n }\n } else if(obj.type === asn1.Type.OCTETSTRING) {\n if(!_nonLatinRegex.test(obj.value)) {\n rval += '(' + obj.value + ') ';\n }\n rval += '0x' + forge.util.bytesToHex(obj.value);\n } else if(obj.type === asn1.Type.UTF8) {\n rval += forge.util.decodeUtf8(obj.value);\n } else if(obj.type === asn1.Type.PRINTABLESTRING ||\n obj.type === asn1.Type.IA5String) {\n rval += obj.value;\n } else if(_nonLatinRegex.test(obj.value)) {\n rval += '0x' + forge.util.bytesToHex(obj.value);\n } else if(obj.value.length === 0) {\n rval += '[null]';\n } else {\n rval += obj.value;\n }\n }\n\n return rval;\n};\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","/**\n * Node.js module for Forge message digests.\n *\n * @author Dave Longley\n *\n * Copyright 2011-2017 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\n\nmodule.exports = forge.md = forge.md || {};\nforge.md.algorithms = forge.md.algorithms || {};\n","import React from \"react\";\nimport { Router } from \"react-router\";\nimport { createBrowserHistory as createHistory } from \"history\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\n/**\n * The public API for a that uses HTML5 history.\n */\nclass BrowserRouter extends React.Component {\n history = createHistory(this.props);\n\n render() {\n return ;\n }\n}\n\nif (__DEV__) {\n BrowserRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n forceRefresh: PropTypes.bool,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number\n };\n\n BrowserRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { BrowserRouter as Router }`.\"\n );\n };\n}\n\nexport default BrowserRouter;\n","import React from \"react\";\nimport { Router } from \"react-router\";\nimport { createHashHistory as createHistory } from \"history\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\n/**\n * The public API for a that uses window.location.hash.\n */\nclass HashRouter extends React.Component {\n history = createHistory(this.props);\n\n render() {\n return ;\n }\n}\n\nif (__DEV__) {\n HashRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n getUserConfirmation: PropTypes.func,\n hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"])\n };\n\n HashRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { HashRouter as Router }`.\"\n );\n };\n}\n\nexport default HashRouter;\n","import { createLocation } from \"history\";\n\nexport const resolveToLocation = (to, currentLocation) =>\n typeof to === \"function\" ? to(currentLocation) : to;\n\nexport const normalizeToLocation = (to, currentLocation) => {\n return typeof to === \"string\"\n ? createLocation(to, null, null, currentLocation)\n : to;\n};\n","import React from \"react\";\nimport { __RouterContext as RouterContext } from \"react-router\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport {\n resolveToLocation,\n normalizeToLocation\n} from \"./utils/locationUtils.js\";\n\n// React 15 compat\nconst forwardRefShim = C => C;\nlet { forwardRef } = React;\nif (typeof forwardRef === \"undefined\") {\n forwardRef = forwardRefShim;\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nconst LinkAnchor = forwardRef(\n (\n {\n innerRef, // TODO: deprecate\n navigate,\n onClick,\n ...rest\n },\n forwardedRef\n ) => {\n const { target } = rest;\n\n let props = {\n ...rest,\n onClick: event => {\n try {\n if (onClick) onClick(event);\n } catch (ex) {\n event.preventDefault();\n throw ex;\n }\n\n if (\n !event.defaultPrevented && // onClick prevented default\n event.button === 0 && // ignore everything but left clicks\n (!target || target === \"_self\") && // let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // ignore clicks with modifier keys\n ) {\n event.preventDefault();\n navigate();\n }\n }\n };\n\n // React 15 compat\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.ref = innerRef;\n }\n\n /* eslint-disable-next-line jsx-a11y/anchor-has-content */\n return ;\n }\n);\n\nif (__DEV__) {\n LinkAnchor.displayName = \"LinkAnchor\";\n}\n\n/**\n * The public API for rendering a history-aware .\n */\nconst Link = forwardRef(\n (\n {\n component = LinkAnchor,\n replace,\n to,\n innerRef, // TODO: deprecate\n ...rest\n },\n forwardedRef\n ) => {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const { history } = context;\n\n const location = normalizeToLocation(\n resolveToLocation(to, context.location),\n context.location\n );\n\n const href = location ? history.createHref(location) : \"\";\n const props = {\n ...rest,\n href,\n navigate() {\n const location = resolveToLocation(to, context.location);\n const method = replace ? history.replace : history.push;\n\n method(location);\n }\n };\n\n // React 15 compat\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return React.createElement(component, props);\n }}\n \n );\n }\n);\n\nif (__DEV__) {\n const toType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n PropTypes.func\n ]);\n const refType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.shape({ current: PropTypes.any })\n ]);\n\n Link.displayName = \"Link\";\n\n Link.propTypes = {\n innerRef: refType,\n onClick: PropTypes.func,\n replace: PropTypes.bool,\n target: PropTypes.string,\n to: toType.isRequired\n };\n}\n\nexport default Link;\n","import React from \"react\";\nimport { __RouterContext as RouterContext, matchPath } from \"react-router\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport Link from \"./Link.js\";\nimport {\n resolveToLocation,\n normalizeToLocation\n} from \"./utils/locationUtils.js\";\n\n// React 15 compat\nconst forwardRefShim = C => C;\nlet { forwardRef } = React;\nif (typeof forwardRef === \"undefined\") {\n forwardRef = forwardRefShim;\n}\n\nfunction joinClassnames(...classnames) {\n return classnames.filter(i => i).join(\" \");\n}\n\n/**\n * A wrapper that knows if it's \"active\" or not.\n */\nconst NavLink = forwardRef(\n (\n {\n \"aria-current\": ariaCurrent = \"page\",\n activeClassName = \"active\",\n activeStyle,\n className: classNameProp,\n exact,\n isActive: isActiveProp,\n location: locationProp,\n sensitive,\n strict,\n style: styleProp,\n to,\n innerRef, // TODO: deprecate\n ...rest\n },\n forwardedRef\n ) => {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const currentLocation = locationProp || context.location;\n const toLocation = normalizeToLocation(\n resolveToLocation(to, currentLocation),\n currentLocation\n );\n const { pathname: path } = toLocation;\n // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n const escapedPath =\n path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n\n const match = escapedPath\n ? matchPath(currentLocation.pathname, {\n path: escapedPath,\n exact,\n sensitive,\n strict\n })\n : null;\n const isActive = !!(isActiveProp\n ? isActiveProp(match, currentLocation)\n : match);\n\n const className = isActive\n ? joinClassnames(classNameProp, activeClassName)\n : classNameProp;\n const style = isActive ? { ...styleProp, ...activeStyle } : styleProp;\n\n const props = {\n \"aria-current\": (isActive && ariaCurrent) || null,\n className,\n style,\n to: toLocation,\n ...rest\n };\n\n // React 15 compat\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return ;\n }}\n \n );\n }\n);\n\nif (__DEV__) {\n NavLink.displayName = \"NavLink\";\n\n const ariaCurrentType = PropTypes.oneOf([\n \"page\",\n \"step\",\n \"location\",\n \"date\",\n \"time\",\n \"true\"\n ]);\n\n NavLink.propTypes = {\n ...Link.propTypes,\n \"aria-current\": ariaCurrentType,\n activeClassName: PropTypes.string,\n activeStyle: PropTypes.object,\n className: PropTypes.string,\n exact: PropTypes.bool,\n isActive: PropTypes.func,\n location: PropTypes.object,\n sensitive: PropTypes.bool,\n strict: PropTypes.bool,\n style: PropTypes.object\n };\n}\n\nexport default NavLink;\n","'use strict';\n\nvar Buffer = require('safe-buffer').Buffer;\nvar Transform = require('stream').Transform;\nvar StringDecoder = require('string_decoder').StringDecoder;\nvar inherits = require('inherits');\n\nfunction CipherBase(hashMode) {\n\tTransform.call(this);\n\tthis.hashMode = typeof hashMode === 'string';\n\tif (this.hashMode) {\n\t\tthis[hashMode] = this._finalOrDigest;\n\t} else {\n\t\tthis['final'] = this._finalOrDigest;\n\t}\n\tif (this._final) {\n\t\tthis.__final = this._final;\n\t\tthis._final = null;\n\t}\n\tthis._decoder = null;\n\tthis._encoding = null;\n}\ninherits(CipherBase, Transform);\n\nvar useUint8Array = typeof Uint8Array !== 'undefined';\nvar useArrayBuffer = typeof ArrayBuffer !== 'undefined'\n\t&& typeof Uint8Array !== 'undefined'\n\t&& ArrayBuffer.isView\n\t&& (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);\n\nfunction toBuffer(data, encoding) {\n\t/*\n\t * No need to do anything for exact instance\n\t * This is only valid when safe-buffer.Buffer === buffer.Buffer, i.e. when Buffer.from/Buffer.alloc existed\n\t */\n\tif (data instanceof Buffer) {\n\t\treturn data;\n\t}\n\n\t// Convert strings to Buffer\n\tif (typeof data === 'string') {\n\t\treturn Buffer.from(data, encoding);\n\t}\n\n\t/*\n\t * Wrap any TypedArray instances and DataViews\n\t * Makes sense only on engines with full TypedArray support -- let Buffer detect that\n\t */\n\tif (useArrayBuffer && ArrayBuffer.isView(data)) {\n\t\t// Bug in Node.js <6.3.1, which treats this as out-of-bounds\n\t\tif (data.byteLength === 0) {\n\t\t\treturn Buffer.alloc(0);\n\t\t}\n\n\t\tvar res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);\n\t\t/*\n\t\t * Recheck result size, as offset/length doesn't work on Node.js <5.10\n\t\t * We just go to Uint8Array case if this fails\n\t\t */\n\t\tif (res.byteLength === data.byteLength) {\n\t\t\treturn res;\n\t\t}\n\t}\n\n\t/*\n\t * Uint8Array in engines where Buffer.from might not work with ArrayBuffer, just copy over\n\t * Doesn't make sense with other TypedArray instances\n\t */\n\tif (useUint8Array && data instanceof Uint8Array) {\n\t\treturn Buffer.from(data);\n\t}\n\n\t/*\n\t * Old Buffer polyfill on an engine that doesn't have TypedArray support\n\t * Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed\n\t * Convert to our current Buffer implementation\n\t */\n\tif (\n\t\tBuffer.isBuffer(data)\n\t\t\t&& data.constructor\n\t\t\t&& typeof data.constructor.isBuffer === 'function'\n\t\t\t&& data.constructor.isBuffer(data)\n\t) {\n\t\treturn Buffer.from(data);\n\t}\n\n\tthrow new TypeError('The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView.');\n}\n\nCipherBase.prototype.update = function (data, inputEnc, outputEnc) {\n\tvar bufferData = toBuffer(data, inputEnc); // asserts correct input type\n\tvar outData = this._update(bufferData);\n\tif (this.hashMode) {\n\t\treturn this;\n\t}\n\n\tif (outputEnc) {\n\t\toutData = this._toString(outData, outputEnc);\n\t}\n\n\treturn outData;\n};\n\nCipherBase.prototype.setAutoPadding = function () {};\nCipherBase.prototype.getAuthTag = function () {\n\tthrow new Error('trying to get auth tag in unsupported state');\n};\n\nCipherBase.prototype.setAuthTag = function () {\n\tthrow new Error('trying to set auth tag in unsupported state');\n};\n\nCipherBase.prototype.setAAD = function () {\n\tthrow new Error('trying to set aad in unsupported state');\n};\n\nCipherBase.prototype._transform = function (data, _, next) {\n\tvar err;\n\ttry {\n\t\tif (this.hashMode) {\n\t\t\tthis._update(data);\n\t\t} else {\n\t\t\tthis.push(this._update(data));\n\t\t}\n\t} catch (e) {\n\t\terr = e;\n\t} finally {\n\t\tnext(err);\n\t}\n};\nCipherBase.prototype._flush = function (done) {\n\tvar err;\n\ttry {\n\t\tthis.push(this.__final());\n\t} catch (e) {\n\t\terr = e;\n\t}\n\n\tdone(err);\n};\nCipherBase.prototype._finalOrDigest = function (outputEnc) {\n\tvar outData = this.__final() || Buffer.alloc(0);\n\tif (outputEnc) {\n\t\toutData = this._toString(outData, outputEnc, true);\n\t}\n\treturn outData;\n};\n\nCipherBase.prototype._toString = function (value, enc, fin) {\n\tif (!this._decoder) {\n\t\tthis._decoder = new StringDecoder(enc);\n\t\tthis._encoding = enc;\n\t}\n\n\tif (this._encoding !== enc) {\n\t\tthrow new Error('can’t switch encodings');\n\t}\n\n\tvar out = this._decoder.write(value);\n\tif (fin) {\n\t\tout += this._decoder.end();\n\t}\n\n\treturn out;\n};\n\nmodule.exports = CipherBase;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb, null, ret) },\n function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","/**\n * Advanced Encryption Standard (AES) implementation.\n *\n * This implementation is based on the public domain library 'jscrypto' which\n * was written by:\n *\n * Emily Stark (estark@stanford.edu)\n * Mike Hamburg (mhamburg@stanford.edu)\n * Dan Boneh (dabo@cs.stanford.edu)\n *\n * Parts of this code are based on the OpenSSL implementation of AES:\n * http://www.openssl.org\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2014 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nrequire('./cipher');\nrequire('./cipherModes');\nrequire('./util');\n\n/* AES API */\nmodule.exports = forge.aes = forge.aes || {};\n\n/**\n * Deprecated. Instead, use:\n *\n * var cipher = forge.cipher.createCipher('AES-', key);\n * cipher.start({iv: iv});\n *\n * Creates an AES cipher object to encrypt data using the given symmetric key.\n * The output will be stored in the 'output' member of the returned cipher.\n *\n * The key and iv may be given as a string of bytes, an array of bytes,\n * a byte buffer, or an array of 32-bit words.\n *\n * @param key the symmetric key to use.\n * @param iv the initialization vector to use.\n * @param output the buffer to write to, null to create one.\n * @param mode the cipher mode to use (default: 'CBC').\n *\n * @return the cipher.\n */\nforge.aes.startEncrypting = function(key, iv, output, mode) {\n var cipher = _createCipher({\n key: key,\n output: output,\n decrypt: false,\n mode: mode\n });\n cipher.start(iv);\n return cipher;\n};\n\n/**\n * Deprecated. Instead, use:\n *\n * var cipher = forge.cipher.createCipher('AES-', key);\n *\n * Creates an AES cipher object to encrypt data using the given symmetric key.\n *\n * The key may be given as a string of bytes, an array of bytes, a\n * byte buffer, or an array of 32-bit words.\n *\n * @param key the symmetric key to use.\n * @param mode the cipher mode to use (default: 'CBC').\n *\n * @return the cipher.\n */\nforge.aes.createEncryptionCipher = function(key, mode) {\n return _createCipher({\n key: key,\n output: null,\n decrypt: false,\n mode: mode\n });\n};\n\n/**\n * Deprecated. Instead, use:\n *\n * var decipher = forge.cipher.createDecipher('AES-', key);\n * decipher.start({iv: iv});\n *\n * Creates an AES cipher object to decrypt data using the given symmetric key.\n * The output will be stored in the 'output' member of the returned cipher.\n *\n * The key and iv may be given as a string of bytes, an array of bytes,\n * a byte buffer, or an array of 32-bit words.\n *\n * @param key the symmetric key to use.\n * @param iv the initialization vector to use.\n * @param output the buffer to write to, null to create one.\n * @param mode the cipher mode to use (default: 'CBC').\n *\n * @return the cipher.\n */\nforge.aes.startDecrypting = function(key, iv, output, mode) {\n var cipher = _createCipher({\n key: key,\n output: output,\n decrypt: true,\n mode: mode\n });\n cipher.start(iv);\n return cipher;\n};\n\n/**\n * Deprecated. Instead, use:\n *\n * var decipher = forge.cipher.createDecipher('AES-', key);\n *\n * Creates an AES cipher object to decrypt data using the given symmetric key.\n *\n * The key may be given as a string of bytes, an array of bytes, a\n * byte buffer, or an array of 32-bit words.\n *\n * @param key the symmetric key to use.\n * @param mode the cipher mode to use (default: 'CBC').\n *\n * @return the cipher.\n */\nforge.aes.createDecryptionCipher = function(key, mode) {\n return _createCipher({\n key: key,\n output: null,\n decrypt: true,\n mode: mode\n });\n};\n\n/**\n * Creates a new AES cipher algorithm object.\n *\n * @param name the name of the algorithm.\n * @param mode the mode factory function.\n *\n * @return the AES algorithm object.\n */\nforge.aes.Algorithm = function(name, mode) {\n if(!init) {\n initialize();\n }\n var self = this;\n self.name = name;\n self.mode = new mode({\n blockSize: 16,\n cipher: {\n encrypt: function(inBlock, outBlock) {\n return _updateBlock(self._w, inBlock, outBlock, false);\n },\n decrypt: function(inBlock, outBlock) {\n return _updateBlock(self._w, inBlock, outBlock, true);\n }\n }\n });\n self._init = false;\n};\n\n/**\n * Initializes this AES algorithm by expanding its key.\n *\n * @param options the options to use.\n * key the key to use with this algorithm.\n * decrypt true if the algorithm should be initialized for decryption,\n * false for encryption.\n */\nforge.aes.Algorithm.prototype.initialize = function(options) {\n if(this._init) {\n return;\n }\n\n var key = options.key;\n var tmp;\n\n /* Note: The key may be a string of bytes, an array of bytes, a byte\n buffer, or an array of 32-bit integers. If the key is in bytes, then\n it must be 16, 24, or 32 bytes in length. If it is in 32-bit\n integers, it must be 4, 6, or 8 integers long. */\n\n if(typeof key === 'string' &&\n (key.length === 16 || key.length === 24 || key.length === 32)) {\n // convert key string into byte buffer\n key = forge.util.createBuffer(key);\n } else if(forge.util.isArray(key) &&\n (key.length === 16 || key.length === 24 || key.length === 32)) {\n // convert key integer array into byte buffer\n tmp = key;\n key = forge.util.createBuffer();\n for(var i = 0; i < tmp.length; ++i) {\n key.putByte(tmp[i]);\n }\n }\n\n // convert key byte buffer into 32-bit integer array\n if(!forge.util.isArray(key)) {\n tmp = key;\n key = [];\n\n // key lengths of 16, 24, 32 bytes allowed\n var len = tmp.length();\n if(len === 16 || len === 24 || len === 32) {\n len = len >>> 2;\n for(var i = 0; i < len; ++i) {\n key.push(tmp.getInt32());\n }\n }\n }\n\n // key must be an array of 32-bit integers by now\n if(!forge.util.isArray(key) ||\n !(key.length === 4 || key.length === 6 || key.length === 8)) {\n throw new Error('Invalid key parameter.');\n }\n\n // encryption operation is always used for these modes\n var mode = this.mode.name;\n var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1);\n\n // do key expansion\n this._w = _expandKey(key, options.decrypt && !encryptOp);\n this._init = true;\n};\n\n/**\n * Expands a key. Typically only used for testing.\n *\n * @param key the symmetric key to expand, as an array of 32-bit words.\n * @param decrypt true to expand for decryption, false for encryption.\n *\n * @return the expanded key.\n */\nforge.aes._expandKey = function(key, decrypt) {\n if(!init) {\n initialize();\n }\n return _expandKey(key, decrypt);\n};\n\n/**\n * Updates a single block. Typically only used for testing.\n *\n * @param w the expanded key to use.\n * @param input an array of block-size 32-bit words.\n * @param output an array of block-size 32-bit words.\n * @param decrypt true to decrypt, false to encrypt.\n */\nforge.aes._updateBlock = _updateBlock;\n\n/** Register AES algorithms **/\n\nregisterAlgorithm('AES-ECB', forge.cipher.modes.ecb);\nregisterAlgorithm('AES-CBC', forge.cipher.modes.cbc);\nregisterAlgorithm('AES-CFB', forge.cipher.modes.cfb);\nregisterAlgorithm('AES-OFB', forge.cipher.modes.ofb);\nregisterAlgorithm('AES-CTR', forge.cipher.modes.ctr);\nregisterAlgorithm('AES-GCM', forge.cipher.modes.gcm);\n\nfunction registerAlgorithm(name, mode) {\n var factory = function() {\n return new forge.aes.Algorithm(name, mode);\n };\n forge.cipher.registerAlgorithm(name, factory);\n}\n\n/** AES implementation **/\n\nvar init = false; // not yet initialized\nvar Nb = 4; // number of words comprising the state (AES = 4)\nvar sbox; // non-linear substitution table used in key expansion\nvar isbox; // inversion of sbox\nvar rcon; // round constant word array\nvar mix; // mix-columns table\nvar imix; // inverse mix-columns table\n\n/**\n * Performs initialization, ie: precomputes tables to optimize for speed.\n *\n * One way to understand how AES works is to imagine that 'addition' and\n * 'multiplication' are interfaces that require certain mathematical\n * properties to hold true (ie: they are associative) but they might have\n * different implementations and produce different kinds of results ...\n * provided that their mathematical properties remain true. AES defines\n * its own methods of addition and multiplication but keeps some important\n * properties the same, ie: associativity and distributivity. The\n * explanation below tries to shed some light on how AES defines addition\n * and multiplication of bytes and 32-bit words in order to perform its\n * encryption and decryption algorithms.\n *\n * The basics:\n *\n * The AES algorithm views bytes as binary representations of polynomials\n * that have either 1 or 0 as the coefficients. It defines the addition\n * or subtraction of two bytes as the XOR operation. It also defines the\n * multiplication of two bytes as a finite field referred to as GF(2^8)\n * (Note: 'GF' means \"Galois Field\" which is a field that contains a finite\n * number of elements so GF(2^8) has 256 elements).\n *\n * This means that any two bytes can be represented as binary polynomials;\n * when they multiplied together and modularly reduced by an irreducible\n * polynomial of the 8th degree, the results are the field GF(2^8). The\n * specific irreducible polynomial that AES uses in hexadecimal is 0x11b.\n * This multiplication is associative with 0x01 as the identity:\n *\n * (b * 0x01 = GF(b, 0x01) = b).\n *\n * The operation GF(b, 0x02) can be performed at the byte level by left\n * shifting b once and then XOR'ing it (to perform the modular reduction)\n * with 0x11b if b is >= 128. Repeated application of the multiplication\n * of 0x02 can be used to implement the multiplication of any two bytes.\n *\n * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can\n * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these\n * factors can each be multiplied by 0x57 and then added together. To do\n * the multiplication, values for 0x57 multiplied by each of these 3 factors\n * can be precomputed and stored in a table. To add them, the values from\n * the table are XOR'd together.\n *\n * AES also defines addition and multiplication of words, that is 4-byte\n * numbers represented as polynomials of 3 degrees where the coefficients\n * are the values of the bytes.\n *\n * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0.\n *\n * Addition is performed by XOR'ing like powers of x. Multiplication\n * is performed in two steps, the first is an algebriac expansion as\n * you would do normally (where addition is XOR). But the result is\n * a polynomial larger than 3 degrees and thus it cannot fit in a word. So\n * next the result is modularly reduced by an AES-specific polynomial of\n * degree 4 which will always produce a polynomial of less than 4 degrees\n * such that it will fit in a word. In AES, this polynomial is x^4 + 1.\n *\n * The modular product of two polynomials 'a' and 'b' is thus:\n *\n * d(x) = d3x^3 + d2x^2 + d1x + d0\n * with\n * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3)\n * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3)\n * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3)\n * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3)\n *\n * As a matrix:\n *\n * [d0] = [a0 a3 a2 a1][b0]\n * [d1] [a1 a0 a3 a2][b1]\n * [d2] [a2 a1 a0 a3][b2]\n * [d3] [a3 a2 a1 a0][b3]\n *\n * Special polynomials defined by AES (0x02 == {02}):\n * a(x) = {03}x^3 + {01}x^2 + {01}x + {02}\n * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}.\n *\n * These polynomials are used in the MixColumns() and InverseMixColumns()\n * operations, respectively, to cause each element in the state to affect\n * the output (referred to as diffusing).\n *\n * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the\n * polynomial x3.\n *\n * The ShiftRows() method modifies the last 3 rows in the state (where\n * the state is 4 words with 4 bytes per word) by shifting bytes cyclically.\n * The 1st byte in the second row is moved to the end of the row. The 1st\n * and 2nd bytes in the third row are moved to the end of the row. The 1st,\n * 2nd, and 3rd bytes are moved in the fourth row.\n *\n * More details on how AES arithmetic works:\n *\n * In the polynomial representation of binary numbers, XOR performs addition\n * and subtraction and multiplication in GF(2^8) denoted as GF(a, b)\n * corresponds with the multiplication of polynomials modulo an irreducible\n * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply\n * polynomial 'a' with polynomial 'b' and then do a modular reduction by\n * an AES-specific irreducible polynomial of degree 8.\n *\n * A polynomial is irreducible if its only divisors are one and itself. For\n * the AES algorithm, this irreducible polynomial is:\n *\n * m(x) = x^8 + x^4 + x^3 + x + 1,\n *\n * or {01}{1b} in hexadecimal notation, where each coefficient is a bit:\n * 100011011 = 283 = 0x11b.\n *\n * For example, GF(0x57, 0x83) = 0xc1 because\n *\n * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1\n * 0x85 = 131 = 10000101 = x^7 + x + 1\n *\n * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1)\n * = x^13 + x^11 + x^9 + x^8 + x^7 +\n * x^7 + x^5 + x^3 + x^2 + x +\n * x^6 + x^4 + x^2 + x + 1\n * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y\n * y modulo (x^8 + x^4 + x^3 + x + 1)\n * = x^7 + x^6 + 1.\n *\n * The modular reduction by m(x) guarantees the result will be a binary\n * polynomial of less than degree 8, so that it can fit in a byte.\n *\n * The operation to multiply a binary polynomial b with x (the polynomial\n * x in binary representation is 00000010) is:\n *\n * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1\n *\n * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the\n * most significant bit is 0 in b) then the result is already reduced. If\n * it is 1, then we can reduce it by subtracting m(x) via an XOR.\n *\n * It follows that multiplication by x (00000010 or 0x02) can be implemented\n * by performing a left shift followed by a conditional bitwise XOR with\n * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by\n * higher powers of x can be implemented by repeated application of xtime().\n *\n * By adding intermediate results, multiplication by any constant can be\n * implemented. For instance:\n *\n * GF(0x57, 0x13) = 0xfe because:\n *\n * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1)\n *\n * Note: We XOR with 0x11b instead of 0x1b because in javascript our\n * datatype for b can be larger than 1 byte, so a left shift will not\n * automatically eliminate bits that overflow a byte ... by XOR'ing the\n * overflow bit with 1 (the extra one from 0x11b) we zero it out.\n *\n * GF(0x57, 0x02) = xtime(0x57) = 0xae\n * GF(0x57, 0x04) = xtime(0xae) = 0x47\n * GF(0x57, 0x08) = xtime(0x47) = 0x8e\n * GF(0x57, 0x10) = xtime(0x8e) = 0x07\n *\n * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10))\n *\n * And by the distributive property (since XOR is addition and GF() is\n * multiplication):\n *\n * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10)\n * = 0x57 ^ 0xae ^ 0x07\n * = 0xfe.\n */\nfunction initialize() {\n init = true;\n\n /* Populate the Rcon table. These are the values given by\n [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02)\n in the field of GF(2^8), where i starts at 1.\n\n rcon[0] = [0x00, 0x00, 0x00, 0x00]\n rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1\n rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2\n ...\n rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B\n rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36\n\n We only store the first byte because it is the only one used.\n */\n rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36];\n\n // compute xtime table which maps i onto GF(i, 0x02)\n var xtime = new Array(256);\n for(var i = 0; i < 128; ++i) {\n xtime[i] = i << 1;\n xtime[i + 128] = (i + 128) << 1 ^ 0x11B;\n }\n\n // compute all other tables\n sbox = new Array(256);\n isbox = new Array(256);\n mix = new Array(4);\n imix = new Array(4);\n for(var i = 0; i < 4; ++i) {\n mix[i] = new Array(256);\n imix[i] = new Array(256);\n }\n var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime;\n for(var i = 0; i < 256; ++i) {\n /* We need to generate the SubBytes() sbox and isbox tables so that\n we can perform byte substitutions. This requires us to traverse\n all of the elements in GF, find their multiplicative inverses,\n and apply to each the following affine transformation:\n\n bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^\n b(i + 7) mod 8 ^ ci\n for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the\n ith bit of a byte c with the value {63} or {01100011}.\n\n It is possible to traverse every possible value in a Galois field\n using what is referred to as a 'generator'. There are many\n generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully\n traverse GF we iterate 255 times, multiplying by our generator\n each time.\n\n On each iteration we can determine the multiplicative inverse for\n the current element.\n\n Suppose there is an element in GF 'e'. For a given generator 'g',\n e = g^x. The multiplicative inverse of e is g^(255 - x). It turns\n out that if use the inverse of a generator as another generator\n it will produce all of the corresponding multiplicative inverses\n at the same time. For this reason, we choose 5 as our inverse\n generator because it only requires 2 multiplies and 1 add and its\n inverse, 82, requires relatively few operations as well.\n\n In order to apply the affine transformation, the multiplicative\n inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a\n bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and\n 'x'. Then 's' is left shifted and the high bit of 's' is made the\n low bit. The resulting value is stored in 's'. Then 'x' is XOR'd\n with 's' and stored in 'x'. On each subsequent iteration the same\n operation is performed. When 4 iterations are complete, 'x' is\n XOR'd with 'c' (0x63) and the transformed value is stored in 'x'.\n For example:\n\n s = 01000001\n x = 01000001\n\n iteration 1: s = 10000010, x ^= s\n iteration 2: s = 00000101, x ^= s\n iteration 3: s = 00001010, x ^= s\n iteration 4: s = 00010100, x ^= s\n x ^= 0x63\n\n This can be done with a loop where s = (s << 1) | (s >> 7). However,\n it can also be done by using a single 16-bit (in this case 32-bit)\n number 'sx'. Since XOR is an associative operation, we can set 'sx'\n to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times.\n The most significant bits will flow into the high 8 bit positions\n and be correctly XOR'd with one another. All that remains will be\n to cycle the high 8 bits by XOR'ing them all with the lower 8 bits\n afterwards.\n\n At the same time we're populating sbox and isbox we can precompute\n the multiplication we'll need to do to do MixColumns() later.\n */\n\n // apply affine transformation\n sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4);\n sx = (sx >> 8) ^ (sx & 255) ^ 0x63;\n\n // update tables\n sbox[e] = sx;\n isbox[sx] = e;\n\n /* Mixing columns is done using matrix multiplication. The columns\n that are to be mixed are each a single word in the current state.\n The state has Nb columns (4 columns). Therefore each column is a\n 4 byte word. So to mix the columns in a single column 'c' where\n its rows are r0, r1, r2, and r3, we use the following matrix\n multiplication:\n\n [2 3 1 1]*[r0,c]=[r'0,c]\n [1 2 3 1] [r1,c] [r'1,c]\n [1 1 2 3] [r2,c] [r'2,c]\n [3 1 1 2] [r3,c] [r'3,c]\n\n r0, r1, r2, and r3 are each 1 byte of one of the words in the\n state (a column). To do matrix multiplication for each mixed\n column c' we multiply the corresponding row from the left matrix\n with the corresponding column from the right matrix. In total, we\n get 4 equations:\n\n r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c\n r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c\n r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c\n r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c\n\n As usual, the multiplication is as previously defined and the\n addition is XOR. In order to optimize mixing columns we can store\n the multiplication results in tables. If you think of the whole\n column as a word (it might help to visualize by mentally rotating\n the equations above by counterclockwise 90 degrees) then you can\n see that it would be useful to map the multiplications performed on\n each byte (r0, r1, r2, r3) onto a word as well. For instance, we\n could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the\n highest 8 bits and 3*r0 in the lowest 8 bits (with the other two\n respectively in the middle). This means that a table can be\n constructed that uses r0 as an index to the word. We can do the\n same with r1, r2, and r3, creating a total of 4 tables.\n\n To construct a full c', we can just look up each byte of c in\n their respective tables and XOR the results together.\n\n Also, to build each table we only have to calculate the word\n for 2,1,1,3 for every byte ... which we can do on each iteration\n of this loop since we will iterate over every byte. After we have\n calculated 2,1,1,3 we can get the results for the other tables\n by cycling the byte at the end to the beginning. For instance\n we can take the result of table 2,1,1,3 and produce table 3,2,1,1\n by moving the right most byte to the left most position just like\n how you can imagine the 3 moved out of 2,1,1,3 and to the front\n to produce 3,2,1,1.\n\n There is another optimization in that the same multiples of\n the current element we need in order to advance our generator\n to the next iteration can be reused in performing the 2,1,1,3\n calculation. We also calculate the inverse mix column tables,\n with e,9,d,b being the inverse of 2,1,1,3.\n\n When we're done, and we need to actually mix columns, the first\n byte of each state word should be put through mix[0] (2,1,1,3),\n the second through mix[1] (3,2,1,1) and so forth. Then they should\n be XOR'd together to produce the fully mixed column.\n */\n\n // calculate mix and imix table values\n sx2 = xtime[sx];\n e2 = xtime[e];\n e4 = xtime[e2];\n e8 = xtime[e4];\n me =\n (sx2 << 24) ^ // 2\n (sx << 16) ^ // 1\n (sx << 8) ^ // 1\n (sx ^ sx2); // 3\n ime =\n (e2 ^ e4 ^ e8) << 24 ^ // E (14)\n (e ^ e8) << 16 ^ // 9\n (e ^ e4 ^ e8) << 8 ^ // D (13)\n (e ^ e2 ^ e8); // B (11)\n // produce each of the mix tables by rotating the 2,1,1,3 value\n for(var n = 0; n < 4; ++n) {\n mix[n][e] = me;\n imix[n][sx] = ime;\n // cycle the right most byte to the left most position\n // ie: 2,1,1,3 becomes 3,2,1,1\n me = me << 24 | me >>> 8;\n ime = ime << 24 | ime >>> 8;\n }\n\n // get next element and inverse\n if(e === 0) {\n // 1 is the inverse of 1\n e = ei = 1;\n } else {\n // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator)\n // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator)\n e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]];\n ei ^= xtime[xtime[ei]];\n }\n }\n}\n\n/**\n * Generates a key schedule using the AES key expansion algorithm.\n *\n * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion\n * routine to generate a key schedule. The Key Expansion generates a total\n * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words,\n * and each of the Nr rounds requires Nb words of key data. The resulting\n * key schedule consists of a linear array of 4-byte words, denoted [wi ],\n * with i in the range 0 <= i < Nb(Nr + 1).\n *\n * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk)\n * AES-128 (Nb=4, Nk=4, Nr=10)\n * AES-192 (Nb=4, Nk=6, Nr=12)\n * AES-256 (Nb=4, Nk=8, Nr=14)\n * Note: Nr=Nk+6.\n *\n * Nb is the number of columns (32-bit words) comprising the State (or\n * number of bytes in a block). For AES, Nb=4.\n *\n * @param key the key to schedule (as an array of 32-bit words).\n * @param decrypt true to modify the key schedule to decrypt, false not to.\n *\n * @return the generated key schedule.\n */\nfunction _expandKey(key, decrypt) {\n // copy the key's words to initialize the key schedule\n var w = key.slice(0);\n\n /* RotWord() will rotate a word, moving the first byte to the last\n byte's position (shifting the other bytes left).\n\n We will be getting the value of Rcon at i / Nk. 'i' will iterate\n from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in\n a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from\n 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will\n increase by 1. We use a counter iNk to keep track of this.\n */\n\n // go through the rounds expanding the key\n var temp, iNk = 1;\n var Nk = w.length;\n var Nr1 = Nk + 6 + 1;\n var end = Nb * Nr1;\n for(var i = Nk; i < end; ++i) {\n temp = w[i - 1];\n if(i % Nk === 0) {\n // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk]\n temp =\n sbox[temp >>> 16 & 255] << 24 ^\n sbox[temp >>> 8 & 255] << 16 ^\n sbox[temp & 255] << 8 ^\n sbox[temp >>> 24] ^ (rcon[iNk] << 24);\n iNk++;\n } else if(Nk > 6 && (i % Nk === 4)) {\n // temp = SubWord(temp)\n temp =\n sbox[temp >>> 24] << 24 ^\n sbox[temp >>> 16 & 255] << 16 ^\n sbox[temp >>> 8 & 255] << 8 ^\n sbox[temp & 255];\n }\n w[i] = w[i - Nk] ^ temp;\n }\n\n /* When we are updating a cipher block we always use the code path for\n encryption whether we are decrypting or not (to shorten code and\n simplify the generation of look up tables). However, because there\n are differences in the decryption algorithm, other than just swapping\n in different look up tables, we must transform our key schedule to\n account for these changes:\n\n 1. The decryption algorithm gets its key rounds in reverse order.\n 2. The decryption algorithm adds the round key before mixing columns\n instead of afterwards.\n\n We don't need to modify our key schedule to handle the first case,\n we can just traverse the key schedule in reverse order when decrypting.\n\n The second case requires a little work.\n\n The tables we built for performing rounds will take an input and then\n perform SubBytes() and MixColumns() or, for the decrypt version,\n InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires\n us to AddRoundKey() before InvMixColumns(). This means we'll need to\n apply some transformations to the round key to inverse-mix its columns\n so they'll be correct for moving AddRoundKey() to after the state has\n had its columns inverse-mixed.\n\n To inverse-mix the columns of the state when we're decrypting we use a\n lookup table that will apply InvSubBytes() and InvMixColumns() at the\n same time. However, the round key's bytes are not inverse-substituted\n in the decryption algorithm. To get around this problem, we can first\n substitute the bytes in the round key so that when we apply the\n transformation via the InvSubBytes()+InvMixColumns() table, it will\n undo our substitution leaving us with the original value that we\n want -- and then inverse-mix that value.\n\n This change will correctly alter our key schedule so that we can XOR\n each round key with our already transformed decryption state. This\n allows us to use the same code path as the encryption algorithm.\n\n We make one more change to the decryption key. Since the decryption\n algorithm runs in reverse from the encryption algorithm, we reverse\n the order of the round keys to avoid having to iterate over the key\n schedule backwards when running the encryption algorithm later in\n decryption mode. In addition to reversing the order of the round keys,\n we also swap each round key's 2nd and 4th rows. See the comments\n section where rounds are performed for more details about why this is\n done. These changes are done inline with the other substitution\n described above.\n */\n if(decrypt) {\n var tmp;\n var m0 = imix[0];\n var m1 = imix[1];\n var m2 = imix[2];\n var m3 = imix[3];\n var wnew = w.slice(0);\n end = w.length;\n for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) {\n // do not sub the first or last round key (round keys are Nb\n // words) as no column mixing is performed before they are added,\n // but do change the key order\n if(i === 0 || i === (end - Nb)) {\n wnew[i] = w[wi];\n wnew[i + 1] = w[wi + 3];\n wnew[i + 2] = w[wi + 2];\n wnew[i + 3] = w[wi + 1];\n } else {\n // substitute each round key byte because the inverse-mix\n // table will inverse-substitute it (effectively cancel the\n // substitution because round key bytes aren't sub'd in\n // decryption mode) and swap indexes 3 and 1\n for(var n = 0; n < Nb; ++n) {\n tmp = w[wi + n];\n wnew[i + (3&-n)] =\n m0[sbox[tmp >>> 24]] ^\n m1[sbox[tmp >>> 16 & 255]] ^\n m2[sbox[tmp >>> 8 & 255]] ^\n m3[sbox[tmp & 255]];\n }\n }\n }\n w = wnew;\n }\n\n return w;\n}\n\n/**\n * Updates a single block (16 bytes) using AES. The update will either\n * encrypt or decrypt the block.\n *\n * @param w the key schedule.\n * @param input the input block (an array of 32-bit words).\n * @param output the updated output block.\n * @param decrypt true to decrypt the block, false to encrypt it.\n */\nfunction _updateBlock(w, input, output, decrypt) {\n /*\n Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)])\n begin\n byte state[4,Nb]\n state = in\n AddRoundKey(state, w[0, Nb-1])\n for round = 1 step 1 to Nr-1\n SubBytes(state)\n ShiftRows(state)\n MixColumns(state)\n AddRoundKey(state, w[round*Nb, (round+1)*Nb-1])\n end for\n SubBytes(state)\n ShiftRows(state)\n AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1])\n out = state\n end\n\n InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)])\n begin\n byte state[4,Nb]\n state = in\n AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1])\n for round = Nr-1 step -1 downto 1\n InvShiftRows(state)\n InvSubBytes(state)\n AddRoundKey(state, w[round*Nb, (round+1)*Nb-1])\n InvMixColumns(state)\n end for\n InvShiftRows(state)\n InvSubBytes(state)\n AddRoundKey(state, w[0, Nb-1])\n out = state\n end\n */\n\n // Encrypt: AddRoundKey(state, w[0, Nb-1])\n // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1])\n var Nr = w.length / 4 - 1;\n var m0, m1, m2, m3, sub;\n if(decrypt) {\n m0 = imix[0];\n m1 = imix[1];\n m2 = imix[2];\n m3 = imix[3];\n sub = isbox;\n } else {\n m0 = mix[0];\n m1 = mix[1];\n m2 = mix[2];\n m3 = mix[3];\n sub = sbox;\n }\n var a, b, c, d, a2, b2, c2;\n a = input[0] ^ w[0];\n b = input[decrypt ? 3 : 1] ^ w[1];\n c = input[2] ^ w[2];\n d = input[decrypt ? 1 : 3] ^ w[3];\n var i = 3;\n\n /* In order to share code we follow the encryption algorithm when both\n encrypting and decrypting. To account for the changes required in the\n decryption algorithm, we use different lookup tables when decrypting\n and use a modified key schedule to account for the difference in the\n order of transformations applied when performing rounds. We also get\n key rounds in reverse order (relative to encryption). */\n for(var round = 1; round < Nr; ++round) {\n /* As described above, we'll be using table lookups to perform the\n column mixing. Each column is stored as a word in the state (the\n array 'input' has one column as a word at each index). In order to\n mix a column, we perform these transformations on each row in c,\n which is 1 byte in each word. The new column for c0 is c'0:\n\n m0 m1 m2 m3\n r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0\n r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0\n r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0\n r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0\n\n So using mix tables where c0 is a word with r0 being its upper\n 8 bits and r3 being its lower 8 bits:\n\n m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0]\n ...\n m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3]\n\n Therefore to mix the columns in each word in the state we\n do the following (& 255 omitted for brevity):\n c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3]\n c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3]\n c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3]\n c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3]\n\n However, before mixing, the algorithm requires us to perform\n ShiftRows(). The ShiftRows() transformation cyclically shifts the\n last 3 rows of the state over different offsets. The first row\n (r = 0) is not shifted.\n\n s'_r,c = s_r,(c + shift(r, Nb) mod Nb\n for 0 < r < 4 and 0 <= c < Nb and\n shift(1, 4) = 1\n shift(2, 4) = 2\n shift(3, 4) = 3.\n\n This causes the first byte in r = 1 to be moved to the end of\n the row, the first 2 bytes in r = 2 to be moved to the end of\n the row, the first 3 bytes in r = 3 to be moved to the end of\n the row:\n\n r1: [c0 c1 c2 c3] => [c1 c2 c3 c0]\n r2: [c0 c1 c2 c3] [c2 c3 c0 c1]\n r3: [c0 c1 c2 c3] [c3 c0 c1 c2]\n\n We can make these substitutions inline with our column mixing to\n generate an updated set of equations to produce each word in the\n state (note the columns have changed positions):\n\n c0 c1 c2 c3 => c0 c1 c2 c3\n c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte)\n c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes)\n c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes)\n\n Therefore:\n\n c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3\n c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3\n c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3\n c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3\n\n c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0\n c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0\n c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0\n c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0\n\n ... and so forth for c'2 and c'3. The important distinction is\n that the columns are cycling, with c0 being used with the m0\n map when calculating c0, but c1 being used with the m0 map when\n calculating c1 ... and so forth.\n\n When performing the inverse we transform the mirror image and\n skip the bottom row, instead of the top one, and move upwards:\n\n c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption\n c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes)\n c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption\n c3 c2 c1 c0 c3 c2 c1 c0\n\n If you compare the resulting matrices for ShiftRows()+MixColumns()\n and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are\n different (in encrypt mode vs. decrypt mode). So in order to use\n the same code to handle both encryption and decryption, we will\n need to do some mapping.\n\n If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be\n a row number in the state, then the resulting matrix in encryption\n mode for applying the above transformations would be:\n\n r1: a b c d\n r2: b c d a\n r3: c d a b\n r4: d a b c\n\n If we did the same in decryption mode we would get:\n\n r1: a d c b\n r2: b a d c\n r3: c b a d\n r4: d c b a\n\n If instead we swap d and b (set b=c3 and d=c1), then we get:\n\n r1: a b c d\n r2: d a b c\n r3: c d a b\n r4: b c d a\n\n Now the 1st and 3rd rows are the same as the encryption matrix. All\n we need to do then to make the mapping exactly the same is to swap\n the 2nd and 4th rows when in decryption mode. To do this without\n having to do it on each iteration, we swapped the 2nd and 4th rows\n in the decryption key schedule. We also have to do the swap above\n when we first pull in the input and when we set the final output. */\n a2 =\n m0[a >>> 24] ^\n m1[b >>> 16 & 255] ^\n m2[c >>> 8 & 255] ^\n m3[d & 255] ^ w[++i];\n b2 =\n m0[b >>> 24] ^\n m1[c >>> 16 & 255] ^\n m2[d >>> 8 & 255] ^\n m3[a & 255] ^ w[++i];\n c2 =\n m0[c >>> 24] ^\n m1[d >>> 16 & 255] ^\n m2[a >>> 8 & 255] ^\n m3[b & 255] ^ w[++i];\n d =\n m0[d >>> 24] ^\n m1[a >>> 16 & 255] ^\n m2[b >>> 8 & 255] ^\n m3[c & 255] ^ w[++i];\n a = a2;\n b = b2;\n c = c2;\n }\n\n /*\n Encrypt:\n SubBytes(state)\n ShiftRows(state)\n AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1])\n\n Decrypt:\n InvShiftRows(state)\n InvSubBytes(state)\n AddRoundKey(state, w[0, Nb-1])\n */\n // Note: rows are shifted inline\n output[0] =\n (sub[a >>> 24] << 24) ^\n (sub[b >>> 16 & 255] << 16) ^\n (sub[c >>> 8 & 255] << 8) ^\n (sub[d & 255]) ^ w[++i];\n output[decrypt ? 3 : 1] =\n (sub[b >>> 24] << 24) ^\n (sub[c >>> 16 & 255] << 16) ^\n (sub[d >>> 8 & 255] << 8) ^\n (sub[a & 255]) ^ w[++i];\n output[2] =\n (sub[c >>> 24] << 24) ^\n (sub[d >>> 16 & 255] << 16) ^\n (sub[a >>> 8 & 255] << 8) ^\n (sub[b & 255]) ^ w[++i];\n output[decrypt ? 1 : 3] =\n (sub[d >>> 24] << 24) ^\n (sub[a >>> 16 & 255] << 16) ^\n (sub[b >>> 8 & 255] << 8) ^\n (sub[c & 255]) ^ w[++i];\n}\n\n/**\n * Deprecated. Instead, use:\n *\n * forge.cipher.createCipher('AES-', key);\n * forge.cipher.createDecipher('AES-', key);\n *\n * Creates a deprecated AES cipher object. This object's mode will default to\n * CBC (cipher-block-chaining).\n *\n * The key and iv may be given as a string of bytes, an array of bytes, a\n * byte buffer, or an array of 32-bit words.\n *\n * @param options the options to use.\n * key the symmetric key to use.\n * output the buffer to write to.\n * decrypt true for decryption, false for encryption.\n * mode the cipher mode to use (default: 'CBC').\n *\n * @return the cipher.\n */\nfunction _createCipher(options) {\n options = options || {};\n var mode = (options.mode || 'CBC').toUpperCase();\n var algorithm = 'AES-' + mode;\n\n var cipher;\n if(options.decrypt) {\n cipher = forge.cipher.createDecipher(algorithm, options.key);\n } else {\n cipher = forge.cipher.createCipher(algorithm, options.key);\n }\n\n // backwards compatible start API\n var start = cipher.start;\n cipher.start = function(iv, options) {\n // backwards compatibility: support second arg as output buffer\n var output = null;\n if(options instanceof forge.util.ByteBuffer) {\n output = options;\n options = {};\n }\n options = options || {};\n options.output = output;\n options.iv = iv;\n start.call(cipher, options);\n };\n\n return cipher;\n}\n","/**\n * Object IDs for ASN.1.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2013 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\n\nforge.pki = forge.pki || {};\nvar oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {};\n\n// set id to name mapping and name to id mapping\nfunction _IN(id, name) {\n oids[id] = name;\n oids[name] = id;\n}\n// set id to name mapping only\nfunction _I_(id, name) {\n oids[id] = name;\n}\n\n// algorithm OIDs\n_IN('1.2.840.113549.1.1.1', 'rsaEncryption');\n// Note: md2 & md4 not implemented\n//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption');\n//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption');\n_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption');\n_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption');\n_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP');\n_IN('1.2.840.113549.1.1.8', 'mgf1');\n_IN('1.2.840.113549.1.1.9', 'pSpecified');\n_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS');\n_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption');\n_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption');\n_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption');\n// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519\n_IN('1.3.101.112', 'EdDSA25519');\n\n_IN('1.2.840.10040.4.3', 'dsa-with-sha1');\n\n_IN('1.3.14.3.2.7', 'desCBC');\n\n_IN('1.3.14.3.2.26', 'sha1');\n_IN('2.16.840.1.101.3.4.2.1', 'sha256');\n_IN('2.16.840.1.101.3.4.2.2', 'sha384');\n_IN('2.16.840.1.101.3.4.2.3', 'sha512');\n_IN('1.2.840.113549.2.5', 'md5');\n\n// pkcs#7 content types\n_IN('1.2.840.113549.1.7.1', 'data');\n_IN('1.2.840.113549.1.7.2', 'signedData');\n_IN('1.2.840.113549.1.7.3', 'envelopedData');\n_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData');\n_IN('1.2.840.113549.1.7.5', 'digestedData');\n_IN('1.2.840.113549.1.7.6', 'encryptedData');\n\n// pkcs#9 oids\n_IN('1.2.840.113549.1.9.1', 'emailAddress');\n_IN('1.2.840.113549.1.9.2', 'unstructuredName');\n_IN('1.2.840.113549.1.9.3', 'contentType');\n_IN('1.2.840.113549.1.9.4', 'messageDigest');\n_IN('1.2.840.113549.1.9.5', 'signingTime');\n_IN('1.2.840.113549.1.9.6', 'counterSignature');\n_IN('1.2.840.113549.1.9.7', 'challengePassword');\n_IN('1.2.840.113549.1.9.8', 'unstructuredAddress');\n_IN('1.2.840.113549.1.9.14', 'extensionRequest');\n\n_IN('1.2.840.113549.1.9.20', 'friendlyName');\n_IN('1.2.840.113549.1.9.21', 'localKeyId');\n_IN('1.2.840.113549.1.9.22.1', 'x509Certificate');\n\n// pkcs#12 safe bags\n_IN('1.2.840.113549.1.12.10.1.1', 'keyBag');\n_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag');\n_IN('1.2.840.113549.1.12.10.1.3', 'certBag');\n_IN('1.2.840.113549.1.12.10.1.4', 'crlBag');\n_IN('1.2.840.113549.1.12.10.1.5', 'secretBag');\n_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag');\n\n// password-based-encryption for pkcs#12\n_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2');\n_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2');\n\n_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4');\n_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4');\n_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC');\n_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC');\n_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC');\n_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC');\n\n// hmac OIDs\n_IN('1.2.840.113549.2.7', 'hmacWithSHA1');\n_IN('1.2.840.113549.2.8', 'hmacWithSHA224');\n_IN('1.2.840.113549.2.9', 'hmacWithSHA256');\n_IN('1.2.840.113549.2.10', 'hmacWithSHA384');\n_IN('1.2.840.113549.2.11', 'hmacWithSHA512');\n\n// symmetric key algorithm oids\n_IN('1.2.840.113549.3.7', 'des-EDE3-CBC');\n_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC');\n_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC');\n_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC');\n\n// certificate issuer/subject OIDs\n_IN('2.5.4.3', 'commonName');\n_IN('2.5.4.5', 'serialName');\n_IN('2.5.4.6', 'countryName');\n_IN('2.5.4.7', 'localityName');\n_IN('2.5.4.8', 'stateOrProvinceName');\n_IN('2.5.4.9', 'streetAddress');\n_IN('2.5.4.10', 'organizationName');\n_IN('2.5.4.11', 'organizationalUnitName');\n_IN('2.5.4.13', 'description');\n_IN('2.5.4.15', 'businessCategory');\n_IN('2.5.4.17', 'postalCode');\n_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName');\n_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName');\n\n// X.509 extension OIDs\n_IN('2.16.840.1.113730.1.1', 'nsCertType');\n_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used\n_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35\n_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15\n_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32\n_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15\n_I_('2.5.29.5', 'policyMapping'); // deprecated use .33\n_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30\n_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17\n_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18\n_I_('2.5.29.9', 'subjectDirectoryAttributes');\n_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19\n_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30\n_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36\n_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19\n_IN('2.5.29.14', 'subjectKeyIdentifier');\n_IN('2.5.29.15', 'keyUsage');\n_I_('2.5.29.16', 'privateKeyUsagePeriod');\n_IN('2.5.29.17', 'subjectAltName');\n_IN('2.5.29.18', 'issuerAltName');\n_IN('2.5.29.19', 'basicConstraints');\n_I_('2.5.29.20', 'cRLNumber');\n_I_('2.5.29.21', 'cRLReason');\n_I_('2.5.29.22', 'expirationDate');\n_I_('2.5.29.23', 'instructionCode');\n_I_('2.5.29.24', 'invalidityDate');\n_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31\n_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28\n_I_('2.5.29.27', 'deltaCRLIndicator');\n_I_('2.5.29.28', 'issuingDistributionPoint');\n_I_('2.5.29.29', 'certificateIssuer');\n_I_('2.5.29.30', 'nameConstraints');\n_IN('2.5.29.31', 'cRLDistributionPoints');\n_IN('2.5.29.32', 'certificatePolicies');\n_I_('2.5.29.33', 'policyMappings');\n_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36\n_IN('2.5.29.35', 'authorityKeyIdentifier');\n_I_('2.5.29.36', 'policyConstraints');\n_IN('2.5.29.37', 'extKeyUsage');\n_I_('2.5.29.46', 'freshestCRL');\n_I_('2.5.29.54', 'inhibitAnyPolicy');\n\n// extKeyUsage purposes\n_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList');\n_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess');\n_IN('1.3.6.1.5.5.7.3.1', 'serverAuth');\n_IN('1.3.6.1.5.5.7.3.2', 'clientAuth');\n_IN('1.3.6.1.5.5.7.3.3', 'codeSigning');\n_IN('1.3.6.1.5.5.7.3.4', 'emailProtection');\n_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict'\n\n// limit of Crypto.getRandomValues()\n// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues\nvar MAX_BYTES = 65536\n\n// Node supports requesting up to this number of bytes\n// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48\nvar MAX_UINT32 = 4294967295\n\nfunction oldBrowser () {\n throw new Error('Secure random number generation is not supported by this browser.\\nUse Chrome, Firefox or Internet Explorer 11')\n}\n\nvar Buffer = require('safe-buffer').Buffer\nvar crypto = global.crypto || global.msCrypto\n\nif (crypto && crypto.getRandomValues) {\n module.exports = randomBytes\n} else {\n module.exports = oldBrowser\n}\n\nfunction randomBytes (size, cb) {\n // phantomjs needs to throw\n if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')\n\n var bytes = Buffer.allocUnsafe(size)\n\n if (size > 0) { // getRandomValues fails on IE if size == 0\n if (size > MAX_BYTES) { // this is the max bytes crypto.getRandomValues\n // can do at once see https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n for (var generated = 0; generated < size; generated += MAX_BYTES) {\n // buffer.slice automatically checks if the end is past the end of\n // the buffer so we don't have to here\n crypto.getRandomValues(bytes.slice(generated, generated + MAX_BYTES))\n }\n } else {\n crypto.getRandomValues(bytes)\n }\n }\n\n if (typeof cb === 'function') {\n return process.nextTick(function () {\n cb(null, bytes)\n })\n }\n\n return bytes\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Stream;\n\nvar EE = require('events').EventEmitter;\nvar inherits = require('inherits');\n\ninherits(Stream, EE);\nStream.Readable = require('readable-stream/readable.js');\nStream.Writable = require('readable-stream/writable.js');\nStream.Duplex = require('readable-stream/duplex.js');\nStream.Transform = require('readable-stream/transform.js');\nStream.PassThrough = require('readable-stream/passthrough.js');\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream;\n\n\n\n// old-style streams. Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\n\nfunction Stream() {\n EE.call(this);\n}\n\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain);\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror);\n\n // remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n\n dest.on('close', cleanup);\n\n dest.emit('pipe', source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n};\n","var Buffer = require('safe-buffer').Buffer\n\n// prototype class for hash functions\nfunction Hash (blockSize, finalSize) {\n this._block = Buffer.alloc(blockSize)\n this._finalSize = finalSize\n this._blockSize = blockSize\n this._len = 0\n}\n\nHash.prototype.update = function (data, enc) {\n if (typeof data === 'string') {\n enc = enc || 'utf8'\n data = Buffer.from(data, enc)\n }\n\n var block = this._block\n var blockSize = this._blockSize\n var length = data.length\n var accum = this._len\n\n for (var offset = 0; offset < length;) {\n var assigned = accum % blockSize\n var remainder = Math.min(length - offset, blockSize - assigned)\n\n for (var i = 0; i < remainder; i++) {\n block[assigned + i] = data[offset + i]\n }\n\n accum += remainder\n offset += remainder\n\n if ((accum % blockSize) === 0) {\n this._update(block)\n }\n }\n\n this._len += length\n return this\n}\n\nHash.prototype.digest = function (enc) {\n var rem = this._len % this._blockSize\n\n this._block[rem] = 0x80\n\n // zero (rem + 1) trailing bits, where (rem + 1) is the smallest\n // non-negative solution to the equation (length + 1 + (rem + 1)) === finalSize mod blockSize\n this._block.fill(0, rem + 1)\n\n if (rem >= this._finalSize) {\n this._update(this._block)\n this._block.fill(0)\n }\n\n var bits = this._len * 8\n\n // uint32\n if (bits <= 0xffffffff) {\n this._block.writeUInt32BE(bits, this._blockSize - 4)\n\n // uint64\n } else {\n var lowBits = (bits & 0xffffffff) >>> 0\n var highBits = (bits - lowBits) / 0x100000000\n\n this._block.writeUInt32BE(highBits, this._blockSize - 8)\n this._block.writeUInt32BE(lowBits, this._blockSize - 4)\n }\n\n this._update(this._block)\n var hash = this._hash()\n\n return enc ? hash.toString(enc) : hash\n}\n\nHash.prototype._update = function () {\n throw new Error('_update must be implemented by subclass')\n}\n\nmodule.exports = Hash\n","/**\n * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms.\n *\n * See: RFC 1421.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2013-2014 Digital Bazaar, Inc.\n *\n * A Forge PEM object has the following fields:\n *\n * type: identifies the type of message (eg: \"RSA PRIVATE KEY\").\n *\n * procType: identifies the type of processing performed on the message,\n * it has two subfields: version and type, eg: 4,ENCRYPTED.\n *\n * contentDomain: identifies the type of content in the message, typically\n * only uses the value: \"RFC822\".\n *\n * dekInfo: identifies the message encryption algorithm and mode and includes\n * any parameters for the algorithm, it has two subfields: algorithm and\n * parameters, eg: DES-CBC,F8143EDE5960C597.\n *\n * headers: contains all other PEM encapsulated headers -- where order is\n * significant (for pairing data like recipient ID + key info).\n *\n * body: the binary-encoded body.\n */\nvar forge = require('./forge');\nrequire('./util');\n\n// shortcut for pem API\nvar pem = module.exports = forge.pem = forge.pem || {};\n\n/**\n * Encodes (serializes) the given PEM object.\n *\n * @param msg the PEM message object to encode.\n * @param options the options to use:\n * maxline the maximum characters per line for the body, (default: 64).\n *\n * @return the PEM-formatted string.\n */\npem.encode = function(msg, options) {\n options = options || {};\n var rval = '-----BEGIN ' + msg.type + '-----\\r\\n';\n\n // encode special headers\n var header;\n if(msg.procType) {\n header = {\n name: 'Proc-Type',\n values: [String(msg.procType.version), msg.procType.type]\n };\n rval += foldHeader(header);\n }\n if(msg.contentDomain) {\n header = {name: 'Content-Domain', values: [msg.contentDomain]};\n rval += foldHeader(header);\n }\n if(msg.dekInfo) {\n header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]};\n if(msg.dekInfo.parameters) {\n header.values.push(msg.dekInfo.parameters);\n }\n rval += foldHeader(header);\n }\n\n if(msg.headers) {\n // encode all other headers\n for(var i = 0; i < msg.headers.length; ++i) {\n rval += foldHeader(msg.headers[i]);\n }\n }\n\n // terminate header\n if(msg.procType) {\n rval += '\\r\\n';\n }\n\n // add body\n rval += forge.util.encode64(msg.body, options.maxline || 64) + '\\r\\n';\n\n rval += '-----END ' + msg.type + '-----\\r\\n';\n return rval;\n};\n\n/**\n * Decodes (deserializes) all PEM messages found in the given string.\n *\n * @param str the PEM-formatted string to decode.\n *\n * @return the PEM message objects in an array.\n */\npem.decode = function(str) {\n var rval = [];\n\n // split string into PEM messages (be lenient w/EOF on BEGIN line)\n var rMessage = /\\s*-----BEGIN ([A-Z0-9- ]+)-----\\r?\\n?([\\x21-\\x7e\\s]+?(?:\\r?\\n\\r?\\n))?([:A-Za-z0-9+\\/=\\s]+?)-----END \\1-----/g;\n var rHeader = /([\\x21-\\x7e]+):\\s*([\\x21-\\x7e\\s^:]+)/;\n var rCRLF = /\\r?\\n/;\n var match;\n while(true) {\n match = rMessage.exec(str);\n if(!match) {\n break;\n }\n\n var msg = {\n type: match[1],\n procType: null,\n contentDomain: null,\n dekInfo: null,\n headers: [],\n body: forge.util.decode64(match[3])\n };\n rval.push(msg);\n\n // no headers\n if(!match[2]) {\n continue;\n }\n\n // parse headers\n var lines = match[2].split(rCRLF);\n var li = 0;\n while(match && li < lines.length) {\n // get line, trim any rhs whitespace\n var line = lines[li].replace(/\\s+$/, '');\n\n // RFC2822 unfold any following folded lines\n for(var nl = li + 1; nl < lines.length; ++nl) {\n var next = lines[nl];\n if(!/\\s/.test(next[0])) {\n break;\n }\n line += next;\n li = nl;\n }\n\n // parse header\n match = line.match(rHeader);\n if(match) {\n var header = {name: match[1], values: []};\n var values = match[2].split(',');\n for(var vi = 0; vi < values.length; ++vi) {\n header.values.push(ltrim(values[vi]));\n }\n\n // Proc-Type must be the first header\n if(!msg.procType) {\n if(header.name !== 'Proc-Type') {\n throw new Error('Invalid PEM formatted message. The first ' +\n 'encapsulated header must be \"Proc-Type\".');\n } else if(header.values.length !== 2) {\n throw new Error('Invalid PEM formatted message. The \"Proc-Type\" ' +\n 'header must have two subfields.');\n }\n msg.procType = {version: values[0], type: values[1]};\n } else if(!msg.contentDomain && header.name === 'Content-Domain') {\n // special-case Content-Domain\n msg.contentDomain = values[0] || '';\n } else if(!msg.dekInfo && header.name === 'DEK-Info') {\n // special-case DEK-Info\n if(header.values.length === 0) {\n throw new Error('Invalid PEM formatted message. The \"DEK-Info\" ' +\n 'header must have at least one subfield.');\n }\n msg.dekInfo = {algorithm: values[0], parameters: values[1] || null};\n } else {\n msg.headers.push(header);\n }\n }\n\n ++li;\n }\n\n if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) {\n throw new Error('Invalid PEM formatted message. The \"DEK-Info\" ' +\n 'header must be present if \"Proc-Type\" is \"ENCRYPTED\".');\n }\n }\n\n if(rval.length === 0) {\n throw new Error('Invalid PEM formatted message.');\n }\n\n return rval;\n};\n\nfunction foldHeader(header) {\n var rval = header.name + ': ';\n\n // ensure values with CRLF are folded\n var values = [];\n var insertSpace = function(match, $1) {\n return ' ' + $1;\n };\n for(var i = 0; i < header.values.length; ++i) {\n values.push(header.values[i].replace(/^(\\S+\\r\\n)/, insertSpace));\n }\n rval += values.join(',') + '\\r\\n';\n\n // do folding\n var length = 0;\n var candidate = -1;\n for(var i = 0; i < rval.length; ++i, ++length) {\n if(length > 65 && candidate !== -1) {\n var insert = rval[candidate];\n if(insert === ',') {\n ++candidate;\n rval = rval.substr(0, candidate) + '\\r\\n ' + rval.substr(candidate);\n } else {\n rval = rval.substr(0, candidate) +\n '\\r\\n' + insert + rval.substr(candidate + 1);\n }\n length = (i - candidate - 1);\n candidate = -1;\n ++i;\n } else if(rval[i] === ' ' || rval[i] === '\\t' || rval[i] === ',') {\n candidate = i;\n }\n }\n\n return rval;\n}\n\nfunction ltrim(str) {\n return str.replace(/^\\s+/, '');\n}\n","const GoogleSpreadsheet = require('./lib/GoogleSpreadsheet');\nconst GoogleSpreadsheetWorksheet = require('./lib/GoogleSpreadsheetWorksheet');\nconst GoogleSpreadsheetRow = require('./lib/GoogleSpreadsheetRow');\n\nconst { GoogleSpreadsheetFormulaError } = require('./lib/errors');\n\nmodule.exports = {\n GoogleSpreadsheet,\n GoogleSpreadsheetWorksheet,\n GoogleSpreadsheetRow,\n\n GoogleSpreadsheetFormulaError,\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict'\nvar inherits = require('inherits')\nvar MD5 = require('md5.js')\nvar RIPEMD160 = require('ripemd160')\nvar sha = require('sha.js')\nvar Base = require('cipher-base')\n\nfunction Hash (hash) {\n Base.call(this, 'digest')\n\n this._hash = hash\n}\n\ninherits(Hash, Base)\n\nHash.prototype._update = function (data) {\n this._hash.update(data)\n}\n\nHash.prototype._final = function () {\n return this._hash.digest()\n}\n\nmodule.exports = function createHash (alg) {\n alg = alg.toLowerCase()\n if (alg === 'md5') return new MD5()\n if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160()\n\n return new Hash(sha(alg))\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('buffer').Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","module.exports = function xor (a, b) {\n var length = Math.min(a.length, b.length)\n var buffer = new Buffer(length)\n\n for (var i = 0; i < length; ++i) {\n buffer[i] = a[i] ^ b[i]\n }\n\n return buffer\n}\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","var asn1 = exports;\n\nasn1.bignum = require('bn.js');\n\nasn1.define = require('./asn1/api').define;\nasn1.base = require('./asn1/base');\nasn1.constants = require('./asn1/constants');\nasn1.decoders = require('./asn1/decoders');\nasn1.encoders = require('./asn1/encoders');\n","var base = exports;\n\nbase.Reporter = require('./reporter').Reporter;\nbase.DecoderBuffer = require('./buffer').DecoderBuffer;\nbase.EncoderBuffer = require('./buffer').EncoderBuffer;\nbase.Node = require('./node');\n","\"use strict\";\n// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OAuth2Client = exports.CertificateFormat = exports.CodeChallengeMethod = void 0;\nconst querystring = require(\"querystring\");\nconst stream = require(\"stream\");\nconst formatEcdsa = require(\"ecdsa-sig-formatter\");\nconst crypto_1 = require(\"../crypto/crypto\");\nconst authclient_1 = require(\"./authclient\");\nconst loginticket_1 = require(\"./loginticket\");\nvar CodeChallengeMethod;\n(function (CodeChallengeMethod) {\n CodeChallengeMethod[\"Plain\"] = \"plain\";\n CodeChallengeMethod[\"S256\"] = \"S256\";\n})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {}));\nvar CertificateFormat;\n(function (CertificateFormat) {\n CertificateFormat[\"PEM\"] = \"PEM\";\n CertificateFormat[\"JWK\"] = \"JWK\";\n})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {}));\nclass OAuth2Client extends authclient_1.AuthClient {\n constructor(optionsOrClientId, clientSecret, redirectUri) {\n super();\n this.certificateCache = {};\n this.certificateExpiry = null;\n this.certificateCacheFormat = CertificateFormat.PEM;\n this.refreshTokenPromises = new Map();\n const opts = optionsOrClientId && typeof optionsOrClientId === 'object'\n ? optionsOrClientId\n : { clientId: optionsOrClientId, clientSecret, redirectUri };\n this._clientId = opts.clientId;\n this._clientSecret = opts.clientSecret;\n this.redirectUri = opts.redirectUri;\n this.eagerRefreshThresholdMillis =\n opts.eagerRefreshThresholdMillis || 5 * 60 * 1000;\n this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure;\n }\n /**\n * Generates URL for consent page landing.\n * @param opts Options.\n * @return URL to consent page.\n */\n generateAuthUrl(opts = {}) {\n if (opts.code_challenge_method && !opts.code_challenge) {\n throw new Error('If a code_challenge_method is provided, code_challenge must be included.');\n }\n opts.response_type = opts.response_type || 'code';\n opts.client_id = opts.client_id || this._clientId;\n opts.redirect_uri = opts.redirect_uri || this.redirectUri;\n // Allow scopes to be passed either as array or a string\n if (opts.scope instanceof Array) {\n opts.scope = opts.scope.join(' ');\n }\n const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_;\n return rootUrl + '?' + querystring.stringify(opts);\n }\n generateCodeVerifier() {\n // To make the code compatible with browser SubtleCrypto we need to make\n // this method async.\n throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.');\n }\n /**\n * Convenience method to automatically generate a code_verifier, and its\n * resulting SHA256. If used, this must be paired with a S256\n * code_challenge_method.\n *\n * For a full example see:\n * https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/oauth2-codeVerifier.js\n */\n async generateCodeVerifierAsync() {\n // base64 encoding uses 6 bits per character, and we want to generate128\n // characters. 6*128/8 = 96.\n const crypto = crypto_1.createCrypto();\n const randomString = crypto.randomBytesBase64(96);\n // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/\n // \"-\"/\".\"/\"_\"/\"~\". Base64 encoded strings are pretty close, so we're just\n // swapping out a few chars.\n const codeVerifier = randomString\n .replace(/\\+/g, '~')\n .replace(/=/g, '_')\n .replace(/\\//g, '-');\n // Generate the base64 encoded SHA256\n const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier);\n // We need to use base64UrlEncoding instead of standard base64\n const codeChallenge = unencodedCodeChallenge\n .split('=')[0]\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_');\n return { codeVerifier, codeChallenge };\n }\n getToken(codeOrOptions, callback) {\n const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions;\n if (callback) {\n this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response));\n }\n else {\n return this.getTokenAsync(options);\n }\n }\n async getTokenAsync(options) {\n const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;\n const values = {\n code: options.code,\n client_id: options.client_id || this._clientId,\n client_secret: this._clientSecret,\n redirect_uri: options.redirect_uri || this.redirectUri,\n grant_type: 'authorization_code',\n code_verifier: options.codeVerifier,\n };\n const res = await this.transporter.request({\n method: 'POST',\n url,\n data: querystring.stringify(values),\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n });\n const tokens = res.data;\n if (res.data && res.data.expires_in) {\n tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000;\n delete tokens.expires_in;\n }\n this.emit('tokens', tokens);\n return { tokens, res };\n }\n /**\n * Refreshes the access token.\n * @param refresh_token Existing refresh token.\n * @private\n */\n async refreshToken(refreshToken) {\n if (!refreshToken) {\n return this.refreshTokenNoCache(refreshToken);\n }\n // If a request to refresh using the same token has started,\n // return the same promise.\n if (this.refreshTokenPromises.has(refreshToken)) {\n return this.refreshTokenPromises.get(refreshToken);\n }\n const p = this.refreshTokenNoCache(refreshToken).then(r => {\n this.refreshTokenPromises.delete(refreshToken);\n return r;\n }, e => {\n this.refreshTokenPromises.delete(refreshToken);\n throw e;\n });\n this.refreshTokenPromises.set(refreshToken, p);\n return p;\n }\n async refreshTokenNoCache(refreshToken) {\n if (!refreshToken) {\n throw new Error('No refresh token is set.');\n }\n const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;\n const data = {\n refresh_token: refreshToken,\n client_id: this._clientId,\n client_secret: this._clientSecret,\n grant_type: 'refresh_token',\n };\n // request for new token\n const res = await this.transporter.request({\n method: 'POST',\n url,\n data: querystring.stringify(data),\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n });\n const tokens = res.data;\n // TODO: de-duplicate this code from a few spots\n if (res.data && res.data.expires_in) {\n tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000;\n delete tokens.expires_in;\n }\n this.emit('tokens', tokens);\n return { tokens, res };\n }\n refreshAccessToken(callback) {\n if (callback) {\n this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback);\n }\n else {\n return this.refreshAccessTokenAsync();\n }\n }\n async refreshAccessTokenAsync() {\n const r = await this.refreshToken(this.credentials.refresh_token);\n const tokens = r.tokens;\n tokens.refresh_token = this.credentials.refresh_token;\n this.credentials = tokens;\n return { credentials: this.credentials, res: r.res };\n }\n getAccessToken(callback) {\n if (callback) {\n this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback);\n }\n else {\n return this.getAccessTokenAsync();\n }\n }\n async getAccessTokenAsync() {\n const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring();\n if (shouldRefresh) {\n if (!this.credentials.refresh_token) {\n throw new Error('No refresh token is set.');\n }\n const r = await this.refreshAccessTokenAsync();\n if (!r.credentials || (r.credentials && !r.credentials.access_token)) {\n throw new Error('Could not refresh access token.');\n }\n return { token: r.credentials.access_token, res: r.res };\n }\n else {\n return { token: this.credentials.access_token };\n }\n }\n /**\n * The main authentication interface. It takes an optional url which when\n * present is the endpoint being accessed, and returns a Promise which\n * resolves with authorization header fields.\n *\n * In OAuth2Client, the result has the form:\n * { Authorization: 'Bearer ' }\n * @param url The optional url being authorized\n */\n async getRequestHeaders(url) {\n const headers = (await this.getRequestMetadataAsync(url)).headers;\n return headers;\n }\n async getRequestMetadataAsync(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n url) {\n const thisCreds = this.credentials;\n if (!thisCreds.access_token && !thisCreds.refresh_token && !this.apiKey) {\n throw new Error('No access, refresh token or API key is set.');\n }\n if (thisCreds.access_token && !this.isTokenExpiring()) {\n thisCreds.token_type = thisCreds.token_type || 'Bearer';\n const headers = {\n Authorization: thisCreds.token_type + ' ' + thisCreds.access_token,\n };\n return { headers: this.addSharedMetadataHeaders(headers) };\n }\n if (this.apiKey) {\n return { headers: { 'X-Goog-Api-Key': this.apiKey } };\n }\n let r = null;\n let tokens = null;\n try {\n r = await this.refreshToken(thisCreds.refresh_token);\n tokens = r.tokens;\n }\n catch (err) {\n const e = err;\n if (e.response &&\n (e.response.status === 403 || e.response.status === 404)) {\n e.message = `Could not refresh access token: ${e.message}`;\n }\n throw e;\n }\n const credentials = this.credentials;\n credentials.token_type = credentials.token_type || 'Bearer';\n tokens.refresh_token = credentials.refresh_token;\n this.credentials = tokens;\n const headers = {\n Authorization: credentials.token_type + ' ' + tokens.access_token,\n };\n return { headers: this.addSharedMetadataHeaders(headers), res: r.res };\n }\n /**\n * Generates an URL to revoke the given token.\n * @param token The existing token to be revoked.\n */\n static getRevokeTokenUrl(token) {\n const parameters = querystring.stringify({ token });\n return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`;\n }\n revokeToken(token, callback) {\n const opts = {\n url: OAuth2Client.getRevokeTokenUrl(token),\n method: 'POST',\n };\n if (callback) {\n this.transporter\n .request(opts)\n .then(r => callback(null, r), callback);\n }\n else {\n return this.transporter.request(opts);\n }\n }\n revokeCredentials(callback) {\n if (callback) {\n this.revokeCredentialsAsync().then(res => callback(null, res), callback);\n }\n else {\n return this.revokeCredentialsAsync();\n }\n }\n async revokeCredentialsAsync() {\n const token = this.credentials.access_token;\n this.credentials = {};\n if (token) {\n return this.revokeToken(token);\n }\n else {\n throw new Error('No access token to revoke.');\n }\n }\n request(opts, callback) {\n if (callback) {\n this.requestAsync(opts).then(r => callback(null, r), e => {\n return callback(e, e.response);\n });\n }\n else {\n return this.requestAsync(opts);\n }\n }\n async requestAsync(opts, retry = false) {\n let r2;\n try {\n const r = await this.getRequestMetadataAsync(opts.url);\n opts.headers = opts.headers || {};\n if (r.headers && r.headers['x-goog-user-project']) {\n opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project'];\n }\n if (r.headers && r.headers.Authorization) {\n opts.headers.Authorization = r.headers.Authorization;\n }\n if (this.apiKey) {\n opts.headers['X-Goog-Api-Key'] = this.apiKey;\n }\n r2 = await this.transporter.request(opts);\n }\n catch (e) {\n const res = e.response;\n if (res) {\n const statusCode = res.status;\n // Retry the request for metadata if the following criteria are true:\n // - We haven't already retried. It only makes sense to retry once.\n // - The response was a 401 or a 403\n // - The request didn't send a readableStream\n // - An access_token and refresh_token were available, but either no\n // expiry_date was available or the forceRefreshOnFailure flag is set.\n // The absent expiry_date case can happen when developers stash the\n // access_token and refresh_token for later use, but the access_token\n // fails on the first try because it's expired. Some developers may\n // choose to enable forceRefreshOnFailure to mitigate time-related\n // errors.\n const mayRequireRefresh = this.credentials &&\n this.credentials.access_token &&\n this.credentials.refresh_token &&\n (!this.credentials.expiry_date || this.forceRefreshOnFailure);\n const isReadableStream = res.config.data instanceof stream.Readable;\n const isAuthErr = statusCode === 401 || statusCode === 403;\n if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) {\n await this.refreshAccessTokenAsync();\n return this.requestAsync(opts, true);\n }\n }\n throw e;\n }\n return r2;\n }\n verifyIdToken(options, callback) {\n // This function used to accept two arguments instead of an options object.\n // Check the types to help users upgrade with less pain.\n // This check can be removed after a 2.0 release.\n if (callback && typeof callback !== 'function') {\n throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.');\n }\n if (callback) {\n this.verifyIdTokenAsync(options).then(r => callback(null, r), callback);\n }\n else {\n return this.verifyIdTokenAsync(options);\n }\n }\n async verifyIdTokenAsync(options) {\n if (!options.idToken) {\n throw new Error('The verifyIdToken method requires an ID Token');\n }\n const response = await this.getFederatedSignonCertsAsync();\n const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry);\n return login;\n }\n /**\n * Obtains information about the provisioned access token. Especially useful\n * if you want to check the scopes that were provisioned to a given token.\n *\n * @param accessToken Required. The Access Token for which you want to get\n * user info.\n */\n async getTokenInfo(accessToken) {\n const { data } = await this.transporter.request({\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n Authorization: `Bearer ${accessToken}`,\n },\n url: OAuth2Client.GOOGLE_TOKEN_INFO_URL,\n });\n const info = Object.assign({\n expiry_date: new Date().getTime() + data.expires_in * 1000,\n scopes: data.scope.split(' '),\n }, data);\n delete info.expires_in;\n delete info.scope;\n return info;\n }\n getFederatedSignonCerts(callback) {\n if (callback) {\n this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback);\n }\n else {\n return this.getFederatedSignonCertsAsync();\n }\n }\n async getFederatedSignonCertsAsync() {\n const nowTime = new Date().getTime();\n const format = crypto_1.hasBrowserCrypto()\n ? CertificateFormat.JWK\n : CertificateFormat.PEM;\n if (this.certificateExpiry &&\n nowTime < this.certificateExpiry.getTime() &&\n this.certificateCacheFormat === format) {\n return { certs: this.certificateCache, format };\n }\n let res;\n let url;\n switch (format) {\n case CertificateFormat.PEM:\n url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_;\n break;\n case CertificateFormat.JWK:\n url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_;\n break;\n default:\n throw new Error(`Unsupported certificate format ${format}`);\n }\n try {\n res = await this.transporter.request({ url });\n }\n catch (e) {\n e.message = `Failed to retrieve verification certificates: ${e.message}`;\n throw e;\n }\n const cacheControl = res ? res.headers['cache-control'] : undefined;\n let cacheAge = -1;\n if (cacheControl) {\n const pattern = new RegExp('max-age=([0-9]*)');\n const regexResult = pattern.exec(cacheControl);\n if (regexResult && regexResult.length === 2) {\n // Cache results with max-age (in seconds)\n cacheAge = Number(regexResult[1]) * 1000; // milliseconds\n }\n }\n let certificates = {};\n switch (format) {\n case CertificateFormat.PEM:\n certificates = res.data;\n break;\n case CertificateFormat.JWK:\n for (const key of res.data.keys) {\n certificates[key.kid] = key;\n }\n break;\n default:\n throw new Error(`Unsupported certificate format ${format}`);\n }\n const now = new Date();\n this.certificateExpiry =\n cacheAge === -1 ? null : new Date(now.getTime() + cacheAge);\n this.certificateCache = certificates;\n this.certificateCacheFormat = format;\n return { certs: certificates, format, res };\n }\n getIapPublicKeys(callback) {\n if (callback) {\n this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback);\n }\n else {\n return this.getIapPublicKeysAsync();\n }\n }\n async getIapPublicKeysAsync() {\n let res;\n const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_;\n try {\n res = await this.transporter.request({ url });\n }\n catch (e) {\n e.message = `Failed to retrieve verification certificates: ${e.message}`;\n throw e;\n }\n return { pubkeys: res.data, res };\n }\n verifySignedJwtWithCerts() {\n // To make the code compatible with browser SubtleCrypto we need to make\n // this method async.\n throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.');\n }\n /**\n * Verify the id token is signed with the correct certificate\n * and is from the correct audience.\n * @param jwt The jwt to verify (The ID Token in this case).\n * @param certs The array of certs to test the jwt against.\n * @param requiredAudience The audience to test the jwt against.\n * @param issuers The allowed issuers of the jwt (Optional).\n * @param maxExpiry The max expiry the certificate can be (Optional).\n * @return Returns a promise resolving to LoginTicket on verification.\n */\n async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) {\n const crypto = crypto_1.createCrypto();\n if (!maxExpiry) {\n maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_;\n }\n const segments = jwt.split('.');\n if (segments.length !== 3) {\n throw new Error('Wrong number of segments in token: ' + jwt);\n }\n const signed = segments[0] + '.' + segments[1];\n let signature = segments[2];\n let envelope;\n let payload;\n try {\n envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0]));\n }\n catch (err) {\n err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`;\n throw err;\n }\n if (!envelope) {\n throw new Error(\"Can't parse token envelope: \" + segments[0]);\n }\n try {\n payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1]));\n }\n catch (err) {\n err.message = `Can't parse token payload '${segments[0]}`;\n throw err;\n }\n if (!payload) {\n throw new Error(\"Can't parse token payload: \" + segments[1]);\n }\n if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) {\n // If this is not present, then there's no reason to attempt verification\n throw new Error('No pem found for envelope: ' + JSON.stringify(envelope));\n }\n const cert = certs[envelope.kid];\n if (envelope.alg === 'ES256') {\n signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64');\n }\n const verified = await crypto.verify(cert, signed, signature);\n if (!verified) {\n throw new Error('Invalid token signature: ' + jwt);\n }\n if (!payload.iat) {\n throw new Error('No issue time in token: ' + JSON.stringify(payload));\n }\n if (!payload.exp) {\n throw new Error('No expiration time in token: ' + JSON.stringify(payload));\n }\n const iat = Number(payload.iat);\n if (isNaN(iat))\n throw new Error('iat field using invalid format');\n const exp = Number(payload.exp);\n if (isNaN(exp))\n throw new Error('exp field using invalid format');\n const now = new Date().getTime() / 1000;\n if (exp >= now + maxExpiry) {\n throw new Error('Expiration time too far in future: ' + JSON.stringify(payload));\n }\n const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_;\n const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_;\n if (now < earliest) {\n throw new Error('Token used too early, ' +\n now +\n ' < ' +\n earliest +\n ': ' +\n JSON.stringify(payload));\n }\n if (now > latest) {\n throw new Error('Token used too late, ' +\n now +\n ' > ' +\n latest +\n ': ' +\n JSON.stringify(payload));\n }\n if (issuers && issuers.indexOf(payload.iss) < 0) {\n throw new Error('Invalid issuer, expected one of [' +\n issuers +\n '], but got ' +\n payload.iss);\n }\n // Check the audience matches if we have one\n if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) {\n const aud = payload.aud;\n let audVerified = false;\n // If the requiredAudience is an array, check if it contains token\n // audience\n if (requiredAudience.constructor === Array) {\n audVerified = requiredAudience.indexOf(aud) > -1;\n }\n else {\n audVerified = aud === requiredAudience;\n }\n if (!audVerified) {\n throw new Error('Wrong recipient, payload audience != requiredAudience');\n }\n }\n return new loginticket_1.LoginTicket(envelope, payload);\n }\n /**\n * Returns true if a token is expired or will expire within\n * eagerRefreshThresholdMillismilliseconds.\n * If there is no expiry time, assumes the token is not expired or expiring.\n */\n isTokenExpiring() {\n const expiryDate = this.credentials.expiry_date;\n return expiryDate\n ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis\n : false;\n }\n}\nexports.OAuth2Client = OAuth2Client;\nOAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo';\n/**\n * The base URL for auth endpoints.\n */\nOAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth';\n/**\n * The base endpoint for token retrieval.\n */\nOAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token';\n/**\n * The base endpoint to revoke tokens.\n */\nOAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke';\n/**\n * Google Sign on certificates in PEM format.\n */\nOAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs';\n/**\n * Google Sign on certificates in JWK format.\n */\nOAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs';\n/**\n * Google Sign on certificates in JWK format.\n */\nOAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key';\n/**\n * Clock skew - five minutes in seconds\n */\nOAuth2Client.CLOCK_SKEW_SECS_ = 300;\n/**\n * Max Token Lifetime is one day in seconds\n */\nOAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400;\n/**\n * The allowed oauth token issuers.\n */\nOAuth2Client.ISSUERS_ = [\n 'accounts.google.com',\n 'https://accounts.google.com',\n];\n//# sourceMappingURL=oauth2client.js.map","/**\n * Hash-based Message Authentication Code implementation. Requires a message\n * digest object that can be obtained, for example, from forge.md.sha1 or\n * forge.md.md5.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved.\n */\nvar forge = require('./forge');\nrequire('./md');\nrequire('./util');\n\n/* HMAC API */\nvar hmac = module.exports = forge.hmac = forge.hmac || {};\n\n/**\n * Creates an HMAC object that uses the given message digest object.\n *\n * @return an HMAC object.\n */\nhmac.create = function() {\n // the hmac key to use\n var _key = null;\n\n // the message digest to use\n var _md = null;\n\n // the inner padding\n var _ipadding = null;\n\n // the outer padding\n var _opadding = null;\n\n // hmac context\n var ctx = {};\n\n /**\n * Starts or restarts the HMAC with the given key and message digest.\n *\n * @param md the message digest to use, null to reuse the previous one,\n * a string to use builtin 'sha1', 'md5', 'sha256'.\n * @param key the key to use as a string, array of bytes, byte buffer,\n * or null to reuse the previous key.\n */\n ctx.start = function(md, key) {\n if(md !== null) {\n if(typeof md === 'string') {\n // create builtin message digest\n md = md.toLowerCase();\n if(md in forge.md.algorithms) {\n _md = forge.md.algorithms[md].create();\n } else {\n throw new Error('Unknown hash algorithm \"' + md + '\"');\n }\n } else {\n // store message digest\n _md = md;\n }\n }\n\n if(key === null) {\n // reuse previous key\n key = _key;\n } else {\n if(typeof key === 'string') {\n // convert string into byte buffer\n key = forge.util.createBuffer(key);\n } else if(forge.util.isArray(key)) {\n // convert byte array into byte buffer\n var tmp = key;\n key = forge.util.createBuffer();\n for(var i = 0; i < tmp.length; ++i) {\n key.putByte(tmp[i]);\n }\n }\n\n // if key is longer than blocksize, hash it\n var keylen = key.length();\n if(keylen > _md.blockLength) {\n _md.start();\n _md.update(key.bytes());\n key = _md.digest();\n }\n\n // mix key into inner and outer padding\n // ipadding = [0x36 * blocksize] ^ key\n // opadding = [0x5C * blocksize] ^ key\n _ipadding = forge.util.createBuffer();\n _opadding = forge.util.createBuffer();\n keylen = key.length();\n for(var i = 0; i < keylen; ++i) {\n var tmp = key.at(i);\n _ipadding.putByte(0x36 ^ tmp);\n _opadding.putByte(0x5C ^ tmp);\n }\n\n // if key is shorter than blocksize, add additional padding\n if(keylen < _md.blockLength) {\n var tmp = _md.blockLength - keylen;\n for(var i = 0; i < tmp; ++i) {\n _ipadding.putByte(0x36);\n _opadding.putByte(0x5C);\n }\n }\n _key = key;\n _ipadding = _ipadding.bytes();\n _opadding = _opadding.bytes();\n }\n\n // digest is done like so: hash(opadding | hash(ipadding | message))\n\n // prepare to do inner hash\n // hash(ipadding | message)\n _md.start();\n _md.update(_ipadding);\n };\n\n /**\n * Updates the HMAC with the given message bytes.\n *\n * @param bytes the bytes to update with.\n */\n ctx.update = function(bytes) {\n _md.update(bytes);\n };\n\n /**\n * Produces the Message Authentication Code (MAC).\n *\n * @return a byte buffer containing the digest value.\n */\n ctx.getMac = function() {\n // digest is done like so: hash(opadding | hash(ipadding | message))\n // here we do the outer hashing\n var inner = _md.digest().bytes();\n _md.start();\n _md.update(_opadding);\n _md.update(inner);\n return _md.digest();\n };\n // alias for getMac\n ctx.digest = ctx.getMac;\n\n return ctx;\n};\n","/**\n * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2010-2015 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nrequire('./md');\nrequire('./util');\n\nvar sha1 = module.exports = forge.sha1 = forge.sha1 || {};\nforge.md.sha1 = forge.md.algorithms.sha1 = sha1;\n\n/**\n * Creates a SHA-1 message digest object.\n *\n * @return a message digest object.\n */\nsha1.create = function() {\n // do initialization as necessary\n if(!_initialized) {\n _init();\n }\n\n // SHA-1 state contains five 32-bit integers\n var _state = null;\n\n // input buffer\n var _input = forge.util.createBuffer();\n\n // used for word storage\n var _w = new Array(80);\n\n // message digest object\n var md = {\n algorithm: 'sha1',\n blockLength: 64,\n digestLength: 20,\n // 56-bit length of message so far (does not including padding)\n messageLength: 0,\n // true message length\n fullMessageLength: null,\n // size of message length in bytes\n messageLengthSize: 8\n };\n\n /**\n * Starts the digest.\n *\n * @return this digest object.\n */\n md.start = function() {\n // up to 56-bit message length for convenience\n md.messageLength = 0;\n\n // full message length (set md.messageLength64 for backwards-compatibility)\n md.fullMessageLength = md.messageLength64 = [];\n var int32s = md.messageLengthSize / 4;\n for(var i = 0; i < int32s; ++i) {\n md.fullMessageLength.push(0);\n }\n _input = forge.util.createBuffer();\n _state = {\n h0: 0x67452301,\n h1: 0xEFCDAB89,\n h2: 0x98BADCFE,\n h3: 0x10325476,\n h4: 0xC3D2E1F0\n };\n return md;\n };\n // start digest automatically for first time\n md.start();\n\n /**\n * Updates the digest with the given message input. The given input can\n * treated as raw input (no encoding will be applied) or an encoding of\n * 'utf8' maybe given to encode the input using UTF-8.\n *\n * @param msg the message input to update with.\n * @param encoding the encoding to use (default: 'raw', other: 'utf8').\n *\n * @return this digest object.\n */\n md.update = function(msg, encoding) {\n if(encoding === 'utf8') {\n msg = forge.util.encodeUtf8(msg);\n }\n\n // update message length\n var len = msg.length;\n md.messageLength += len;\n len = [(len / 0x100000000) >>> 0, len >>> 0];\n for(var i = md.fullMessageLength.length - 1; i >= 0; --i) {\n md.fullMessageLength[i] += len[1];\n len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0);\n md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;\n len[0] = ((len[1] / 0x100000000) >>> 0);\n }\n\n // add bytes to input buffer\n _input.putBytes(msg);\n\n // process bytes\n _update(_state, _w, _input);\n\n // compact input buffer every 2K or if empty\n if(_input.read > 2048 || _input.length() === 0) {\n _input.compact();\n }\n\n return md;\n };\n\n /**\n * Produces the digest.\n *\n * @return a byte buffer containing the digest value.\n */\n md.digest = function() {\n /* Note: Here we copy the remaining bytes in the input buffer and\n add the appropriate SHA-1 padding. Then we do the final update\n on a copy of the state so that if the user wants to get\n intermediate digests they can do so. */\n\n /* Determine the number of bytes that must be added to the message\n to ensure its length is congruent to 448 mod 512. In other words,\n the data to be digested must be a multiple of 512 bits (or 128 bytes).\n This data includes the message, some padding, and the length of the\n message. Since the length of the message will be encoded as 8 bytes (64\n bits), that means that the last segment of the data must have 56 bytes\n (448 bits) of message and padding. Therefore, the length of the message\n plus the padding must be congruent to 448 mod 512 because\n 512 - 128 = 448.\n\n In order to fill up the message length it must be filled with\n padding that begins with 1 bit followed by all 0 bits. Padding\n must *always* be present, so if the message length is already\n congruent to 448 mod 512, then 512 padding bits must be added. */\n\n var finalBlock = forge.util.createBuffer();\n finalBlock.putBytes(_input.bytes());\n\n // compute remaining size to be digested (include message length size)\n var remaining = (\n md.fullMessageLength[md.fullMessageLength.length - 1] +\n md.messageLengthSize);\n\n // add padding for overflow blockSize - overflow\n // _padding starts with 1 byte with first bit is set (byte value 128), then\n // there may be up to (blockSize - 1) other pad bytes\n var overflow = remaining & (md.blockLength - 1);\n finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow));\n\n // serialize message length in bits in big-endian order; since length\n // is stored in bytes we multiply by 8 and add carry from next int\n var next, carry;\n var bits = md.fullMessageLength[0] * 8;\n for(var i = 0; i < md.fullMessageLength.length - 1; ++i) {\n next = md.fullMessageLength[i + 1] * 8;\n carry = (next / 0x100000000) >>> 0;\n bits += carry;\n finalBlock.putInt32(bits >>> 0);\n bits = next >>> 0;\n }\n finalBlock.putInt32(bits);\n\n var s2 = {\n h0: _state.h0,\n h1: _state.h1,\n h2: _state.h2,\n h3: _state.h3,\n h4: _state.h4\n };\n _update(s2, _w, finalBlock);\n var rval = forge.util.createBuffer();\n rval.putInt32(s2.h0);\n rval.putInt32(s2.h1);\n rval.putInt32(s2.h2);\n rval.putInt32(s2.h3);\n rval.putInt32(s2.h4);\n return rval;\n };\n\n return md;\n};\n\n// sha-1 padding bytes not initialized yet\nvar _padding = null;\nvar _initialized = false;\n\n/**\n * Initializes the constant tables.\n */\nfunction _init() {\n // create padding\n _padding = String.fromCharCode(128);\n _padding += forge.util.fillString(String.fromCharCode(0x00), 64);\n\n // now initialized\n _initialized = true;\n}\n\n/**\n * Updates a SHA-1 state with the given byte buffer.\n *\n * @param s the SHA-1 state to update.\n * @param w the array to use to store words.\n * @param bytes the byte buffer to update with.\n */\nfunction _update(s, w, bytes) {\n // consume 512 bit (64 byte) chunks\n var t, a, b, c, d, e, f, i;\n var len = bytes.length();\n while(len >= 64) {\n // the w array will be populated with sixteen 32-bit big-endian words\n // and then extended into 80 32-bit words according to SHA-1 algorithm\n // and for 32-79 using Max Locktyukhin's optimization\n\n // initialize hash value for this chunk\n a = s.h0;\n b = s.h1;\n c = s.h2;\n d = s.h3;\n e = s.h4;\n\n // round 1\n for(i = 0; i < 16; ++i) {\n t = bytes.getInt32();\n w[i] = t;\n f = d ^ (b & (c ^ d));\n t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n for(; i < 20; ++i) {\n t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]);\n t = (t << 1) | (t >>> 31);\n w[i] = t;\n f = d ^ (b & (c ^ d));\n t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n // round 2\n for(; i < 32; ++i) {\n t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]);\n t = (t << 1) | (t >>> 31);\n w[i] = t;\n f = b ^ c ^ d;\n t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n for(; i < 40; ++i) {\n t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]);\n t = (t << 2) | (t >>> 30);\n w[i] = t;\n f = b ^ c ^ d;\n t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n // round 3\n for(; i < 60; ++i) {\n t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]);\n t = (t << 2) | (t >>> 30);\n w[i] = t;\n f = (b & c) | (d & (b ^ c));\n t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n // round 4\n for(; i < 80; ++i) {\n t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]);\n t = (t << 2) | (t >>> 30);\n w[i] = t;\n f = b ^ c ^ d;\n t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t;\n e = d;\n d = c;\n // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug\n c = ((b << 30) | (b >>> 2)) >>> 0;\n b = a;\n a = t;\n }\n\n // update hash state\n s.h0 = (s.h0 + a) | 0;\n s.h1 = (s.h1 + b) | 0;\n s.h2 = (s.h2 + c) | 0;\n s.h3 = (s.h3 + d) | 0;\n s.h4 = (s.h4 + e) | 0;\n\n len -= 64;\n }\n}\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"survey-react\", [\"react\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"survey-react\"] = factory(require(\"react\"), require(\"react-dom\"));\n\telse\n\t\troot[\"Survey\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/entries/react.ts\");\n","/*!\n * Signature Pad v2.3.2\n * https://github.com/szimek/signature_pad\n *\n * Copyright 2017 Szymon Nowak\n * Released under the MIT license\n *\n * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:\n * http://corner.squareup.com/2012/07/smoother-signatures.html\n *\n * Implementation of interpolation using cubic Bézier curves is taken from:\n * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript\n *\n * Algorithm for approximated length of a Bézier curve is taken from:\n * http://www.lemoda.net/maths/bezier-length/index.html\n *\n */\n\nfunction Point(x, y, time) {\n this.x = x;\n this.y = y;\n this.time = time || new Date().getTime();\n}\n\nPoint.prototype.velocityFrom = function (start) {\n return this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 1;\n};\n\nPoint.prototype.distanceTo = function (start) {\n return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));\n};\n\nPoint.prototype.equals = function (other) {\n return this.x === other.x && this.y === other.y && this.time === other.time;\n};\n\nfunction Bezier(startPoint, control1, control2, endPoint) {\n this.startPoint = startPoint;\n this.control1 = control1;\n this.control2 = control2;\n this.endPoint = endPoint;\n}\n\n// Returns approximated length.\nBezier.prototype.length = function () {\n var steps = 10;\n var length = 0;\n var px = void 0;\n var py = void 0;\n\n for (var i = 0; i <= steps; i += 1) {\n var t = i / steps;\n var cx = this._point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);\n var cy = this._point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);\n if (i > 0) {\n var xdiff = cx - px;\n var ydiff = cy - py;\n length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);\n }\n px = cx;\n py = cy;\n }\n\n return length;\n};\n\n/* eslint-disable no-multi-spaces, space-in-parens */\nBezier.prototype._point = function (t, start, c1, c2, end) {\n return start * (1.0 - t) * (1.0 - t) * (1.0 - t) + 3.0 * c1 * (1.0 - t) * (1.0 - t) * t + 3.0 * c2 * (1.0 - t) * t * t + end * t * t * t;\n};\n\n/* eslint-disable */\n\n// http://stackoverflow.com/a/27078401/815507\nfunction throttle(func, wait, options) {\n var context, args, result;\n var timeout = null;\n var previous = 0;\n if (!options) options = {};\n var later = function later() {\n previous = options.leading === false ? 0 : Date.now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n return function () {\n var now = Date.now();\n if (!previous && options.leading === false) previous = now;\n var remaining = wait - (now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n}\n\nfunction SignaturePad(canvas, options) {\n var self = this;\n var opts = options || {};\n\n this.velocityFilterWeight = opts.velocityFilterWeight || 0.7;\n this.minWidth = opts.minWidth || 0.5;\n this.maxWidth = opts.maxWidth || 2.5;\n this.throttle = 'throttle' in opts ? opts.throttle : 16; // in miliseconds\n this.minDistance = 'minDistance' in opts ? opts.minDistance : 5;\n\n if (this.throttle) {\n this._strokeMoveUpdate = throttle(SignaturePad.prototype._strokeUpdate, this.throttle);\n } else {\n this._strokeMoveUpdate = SignaturePad.prototype._strokeUpdate;\n }\n\n this.dotSize = opts.dotSize || function () {\n return (this.minWidth + this.maxWidth) / 2;\n };\n this.penColor = opts.penColor || 'black';\n this.backgroundColor = opts.backgroundColor || 'rgba(0,0,0,0)';\n this.onBegin = opts.onBegin;\n this.onEnd = opts.onEnd;\n\n this._canvas = canvas;\n this._ctx = canvas.getContext('2d');\n this.clear();\n\n // We need add these inline so they are available to unbind while still having\n // access to 'self' we could use _.bind but it's not worth adding a dependency.\n this._handleMouseDown = function (event) {\n if (event.which === 1) {\n self._mouseButtonDown = true;\n self._strokeBegin(event);\n }\n };\n\n this._handleMouseMove = function (event) {\n if (self._mouseButtonDown) {\n self._strokeMoveUpdate(event);\n }\n };\n\n this._handleMouseUp = function (event) {\n if (event.which === 1 && self._mouseButtonDown) {\n self._mouseButtonDown = false;\n self._strokeEnd(event);\n }\n };\n\n this._handleTouchStart = function (event) {\n if (event.targetTouches.length === 1) {\n var touch = event.changedTouches[0];\n self._strokeBegin(touch);\n }\n };\n\n this._handleTouchMove = function (event) {\n // Prevent scrolling.\n event.preventDefault();\n\n var touch = event.targetTouches[0];\n self._strokeMoveUpdate(touch);\n };\n\n this._handleTouchEnd = function (event) {\n var wasCanvasTouched = event.target === self._canvas;\n if (wasCanvasTouched) {\n event.preventDefault();\n self._strokeEnd(event);\n }\n };\n\n // Enable mouse and touch event handlers\n this.on();\n}\n\n// Public methods\nSignaturePad.prototype.clear = function () {\n var ctx = this._ctx;\n var canvas = this._canvas;\n\n ctx.fillStyle = this.backgroundColor;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n this._data = [];\n this._reset();\n this._isEmpty = true;\n};\n\nSignaturePad.prototype.fromDataURL = function (dataUrl) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var image = new Image();\n var ratio = options.ratio || window.devicePixelRatio || 1;\n var width = options.width || this._canvas.width / ratio;\n var height = options.height || this._canvas.height / ratio;\n\n this._reset();\n image.src = dataUrl;\n image.onload = function () {\n _this._ctx.drawImage(image, 0, 0, width, height);\n };\n this._isEmpty = false;\n};\n\nSignaturePad.prototype.toDataURL = function (type) {\n var _canvas;\n\n switch (type) {\n case 'image/svg+xml':\n return this._toSVG();\n default:\n for (var _len = arguments.length, options = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n options[_key - 1] = arguments[_key];\n }\n\n return (_canvas = this._canvas).toDataURL.apply(_canvas, [type].concat(options));\n }\n};\n\nSignaturePad.prototype.on = function () {\n this._handleMouseEvents();\n this._handleTouchEvents();\n};\n\nSignaturePad.prototype.off = function () {\n this._canvas.removeEventListener('mousedown', this._handleMouseDown);\n this._canvas.removeEventListener('mousemove', this._handleMouseMove);\n document.removeEventListener('mouseup', this._handleMouseUp);\n\n this._canvas.removeEventListener('touchstart', this._handleTouchStart);\n this._canvas.removeEventListener('touchmove', this._handleTouchMove);\n this._canvas.removeEventListener('touchend', this._handleTouchEnd);\n};\n\nSignaturePad.prototype.isEmpty = function () {\n return this._isEmpty;\n};\n\n// Private methods\nSignaturePad.prototype._strokeBegin = function (event) {\n this._data.push([]);\n this._reset();\n this._strokeUpdate(event);\n\n if (typeof this.onBegin === 'function') {\n this.onBegin(event);\n }\n};\n\nSignaturePad.prototype._strokeUpdate = function (event) {\n var x = event.clientX;\n var y = event.clientY;\n\n var point = this._createPoint(x, y);\n var lastPointGroup = this._data[this._data.length - 1];\n var lastPoint = lastPointGroup && lastPointGroup[lastPointGroup.length - 1];\n var isLastPointTooClose = lastPoint && point.distanceTo(lastPoint) < this.minDistance;\n\n // Skip this point if it's too close to the previous one\n if (!(lastPoint && isLastPointTooClose)) {\n var _addPoint = this._addPoint(point),\n curve = _addPoint.curve,\n widths = _addPoint.widths;\n\n if (curve && widths) {\n this._drawCurve(curve, widths.start, widths.end);\n }\n\n this._data[this._data.length - 1].push({\n x: point.x,\n y: point.y,\n time: point.time,\n color: this.penColor\n });\n }\n};\n\nSignaturePad.prototype._strokeEnd = function (event) {\n var canDrawCurve = this.points.length > 2;\n var point = this.points[0]; // Point instance\n\n if (!canDrawCurve && point) {\n this._drawDot(point);\n }\n\n if (point) {\n var lastPointGroup = this._data[this._data.length - 1];\n var lastPoint = lastPointGroup[lastPointGroup.length - 1]; // plain object\n\n // When drawing a dot, there's only one point in a group, so without this check\n // such group would end up with exactly the same 2 points.\n if (!point.equals(lastPoint)) {\n lastPointGroup.push({\n x: point.x,\n y: point.y,\n time: point.time,\n color: this.penColor\n });\n }\n }\n\n if (typeof this.onEnd === 'function') {\n this.onEnd(event);\n }\n};\n\nSignaturePad.prototype._handleMouseEvents = function () {\n this._mouseButtonDown = false;\n\n this._canvas.addEventListener('mousedown', this._handleMouseDown);\n this._canvas.addEventListener('mousemove', this._handleMouseMove);\n document.addEventListener('mouseup', this._handleMouseUp);\n};\n\nSignaturePad.prototype._handleTouchEvents = function () {\n // Pass touch events to canvas element on mobile IE11 and Edge.\n this._canvas.style.msTouchAction = 'none';\n this._canvas.style.touchAction = 'none';\n\n this._canvas.addEventListener('touchstart', this._handleTouchStart);\n this._canvas.addEventListener('touchmove', this._handleTouchMove);\n this._canvas.addEventListener('touchend', this._handleTouchEnd);\n};\n\nSignaturePad.prototype._reset = function () {\n this.points = [];\n this._lastVelocity = 0;\n this._lastWidth = (this.minWidth + this.maxWidth) / 2;\n this._ctx.fillStyle = this.penColor;\n};\n\nSignaturePad.prototype._createPoint = function (x, y, time) {\n var rect = this._canvas.getBoundingClientRect();\n\n return new Point(x - rect.left, y - rect.top, time || new Date().getTime());\n};\n\nSignaturePad.prototype._addPoint = function (point) {\n var points = this.points;\n var tmp = void 0;\n\n points.push(point);\n\n if (points.length > 2) {\n // To reduce the initial lag make it work with 3 points\n // by copying the first point to the beginning.\n if (points.length === 3) points.unshift(points[0]);\n\n tmp = this._calculateCurveControlPoints(points[0], points[1], points[2]);\n var c2 = tmp.c2;\n tmp = this._calculateCurveControlPoints(points[1], points[2], points[3]);\n var c3 = tmp.c1;\n var curve = new Bezier(points[1], c2, c3, points[2]);\n var widths = this._calculateCurveWidths(curve);\n\n // Remove the first element from the list,\n // so that we always have no more than 4 points in points array.\n points.shift();\n\n return { curve: curve, widths: widths };\n }\n\n return {};\n};\n\nSignaturePad.prototype._calculateCurveControlPoints = function (s1, s2, s3) {\n var dx1 = s1.x - s2.x;\n var dy1 = s1.y - s2.y;\n var dx2 = s2.x - s3.x;\n var dy2 = s2.y - s3.y;\n\n var m1 = { x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0 };\n var m2 = { x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0 };\n\n var l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n var l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);\n\n var dxm = m1.x - m2.x;\n var dym = m1.y - m2.y;\n\n var k = l2 / (l1 + l2);\n var cm = { x: m2.x + dxm * k, y: m2.y + dym * k };\n\n var tx = s2.x - cm.x;\n var ty = s2.y - cm.y;\n\n return {\n c1: new Point(m1.x + tx, m1.y + ty),\n c2: new Point(m2.x + tx, m2.y + ty)\n };\n};\n\nSignaturePad.prototype._calculateCurveWidths = function (curve) {\n var startPoint = curve.startPoint;\n var endPoint = curve.endPoint;\n var widths = { start: null, end: null };\n\n var velocity = this.velocityFilterWeight * endPoint.velocityFrom(startPoint) + (1 - this.velocityFilterWeight) * this._lastVelocity;\n\n var newWidth = this._strokeWidth(velocity);\n\n widths.start = this._lastWidth;\n widths.end = newWidth;\n\n this._lastVelocity = velocity;\n this._lastWidth = newWidth;\n\n return widths;\n};\n\nSignaturePad.prototype._strokeWidth = function (velocity) {\n return Math.max(this.maxWidth / (velocity + 1), this.minWidth);\n};\n\nSignaturePad.prototype._drawPoint = function (x, y, size) {\n var ctx = this._ctx;\n\n ctx.moveTo(x, y);\n ctx.arc(x, y, size, 0, 2 * Math.PI, false);\n this._isEmpty = false;\n};\n\nSignaturePad.prototype._drawCurve = function (curve, startWidth, endWidth) {\n var ctx = this._ctx;\n var widthDelta = endWidth - startWidth;\n var drawSteps = Math.floor(curve.length());\n\n ctx.beginPath();\n\n for (var i = 0; i < drawSteps; i += 1) {\n // Calculate the Bezier (x, y) coordinate for this step.\n var t = i / drawSteps;\n var tt = t * t;\n var ttt = tt * t;\n var u = 1 - t;\n var uu = u * u;\n var uuu = uu * u;\n\n var x = uuu * curve.startPoint.x;\n x += 3 * uu * t * curve.control1.x;\n x += 3 * u * tt * curve.control2.x;\n x += ttt * curve.endPoint.x;\n\n var y = uuu * curve.startPoint.y;\n y += 3 * uu * t * curve.control1.y;\n y += 3 * u * tt * curve.control2.y;\n y += ttt * curve.endPoint.y;\n\n var width = startWidth + ttt * widthDelta;\n this._drawPoint(x, y, width);\n }\n\n ctx.closePath();\n ctx.fill();\n};\n\nSignaturePad.prototype._drawDot = function (point) {\n var ctx = this._ctx;\n var width = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n\n ctx.beginPath();\n this._drawPoint(point.x, point.y, width);\n ctx.closePath();\n ctx.fill();\n};\n\nSignaturePad.prototype._fromData = function (pointGroups, drawCurve, drawDot) {\n for (var i = 0; i < pointGroups.length; i += 1) {\n var group = pointGroups[i];\n\n if (group.length > 1) {\n for (var j = 0; j < group.length; j += 1) {\n var rawPoint = group[j];\n var point = new Point(rawPoint.x, rawPoint.y, rawPoint.time);\n var color = rawPoint.color;\n\n if (j === 0) {\n // First point in a group. Nothing to draw yet.\n\n // All points in the group have the same color, so it's enough to set\n // penColor just at the beginning.\n this.penColor = color;\n this._reset();\n\n this._addPoint(point);\n } else if (j !== group.length - 1) {\n // Middle point in a group.\n var _addPoint2 = this._addPoint(point),\n curve = _addPoint2.curve,\n widths = _addPoint2.widths;\n\n if (curve && widths) {\n drawCurve(curve, widths, color);\n }\n } else {\n // Last point in a group. Do nothing.\n }\n }\n } else {\n this._reset();\n var _rawPoint = group[0];\n drawDot(_rawPoint);\n }\n }\n};\n\nSignaturePad.prototype._toSVG = function () {\n var _this2 = this;\n\n var pointGroups = this._data;\n var canvas = this._canvas;\n var ratio = Math.max(window.devicePixelRatio || 1, 1);\n var minX = 0;\n var minY = 0;\n var maxX = canvas.width / ratio;\n var maxY = canvas.height / ratio;\n var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n\n svg.setAttributeNS(null, 'width', canvas.width);\n svg.setAttributeNS(null, 'height', canvas.height);\n\n this._fromData(pointGroups, function (curve, widths, color) {\n var path = document.createElement('path');\n\n // Need to check curve for NaN values, these pop up when drawing\n // lines on the canvas that are not continuous. E.g. Sharp corners\n // or stopping mid-stroke and than continuing without lifting mouse.\n if (!isNaN(curve.control1.x) && !isNaN(curve.control1.y) && !isNaN(curve.control2.x) && !isNaN(curve.control2.y)) {\n var attr = 'M ' + curve.startPoint.x.toFixed(3) + ',' + curve.startPoint.y.toFixed(3) + ' ' + ('C ' + curve.control1.x.toFixed(3) + ',' + curve.control1.y.toFixed(3) + ' ') + (curve.control2.x.toFixed(3) + ',' + curve.control2.y.toFixed(3) + ' ') + (curve.endPoint.x.toFixed(3) + ',' + curve.endPoint.y.toFixed(3));\n\n path.setAttribute('d', attr);\n path.setAttribute('stroke-width', (widths.end * 2.25).toFixed(3));\n path.setAttribute('stroke', color);\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-linecap', 'round');\n\n svg.appendChild(path);\n }\n }, function (rawPoint) {\n var circle = document.createElement('circle');\n var dotSize = typeof _this2.dotSize === 'function' ? _this2.dotSize() : _this2.dotSize;\n circle.setAttribute('r', dotSize);\n circle.setAttribute('cx', rawPoint.x);\n circle.setAttribute('cy', rawPoint.y);\n circle.setAttribute('fill', rawPoint.color);\n\n svg.appendChild(circle);\n });\n\n var prefix = 'data:image/svg+xml;base64,';\n var header = '';\n var body = svg.innerHTML;\n\n // IE hack for missing innerHTML property on SVGElement\n if (body === undefined) {\n var dummy = document.createElement('dummy');\n var nodes = svg.childNodes;\n dummy.innerHTML = '';\n\n for (var i = 0; i < nodes.length; i += 1) {\n dummy.appendChild(nodes[i].cloneNode(true));\n }\n\n body = dummy.innerHTML;\n }\n\n var footer = '';\n var data = header + body + footer;\n\n return prefix + btoa(data);\n};\n\nSignaturePad.prototype.fromData = function (pointGroups) {\n var _this3 = this;\n\n this.clear();\n\n this._fromData(pointGroups, function (curve, widths) {\n return _this3._drawCurve(curve, widths.start, widths.end);\n }, function (rawPoint) {\n return _this3._drawDot(rawPoint);\n });\n\n this._data = pointGroups;\n};\n\nSignaturePad.prototype.toData = function () {\n return this._data;\n};\n\nexport default SignaturePad;\n","/**!\n * Sortable 1.13.0\n * @author\tRubaXa \n * @author\towenm \n * @license MIT\n */\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nvar version = \"1.13.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !!\n /*@__PURE__*/\n navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && children[i] !== Sortable.dragged && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread({}, extraEventProperties, PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, [\"evt\"]);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\n * @param {Number} x X position\n * @param {Number} y Y position\n * @return {HTMLElement} Element of the first found nearest Sortable\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n if (lastChild(sortable)) return;\n var rect = getRect(sortable),\n threshold = sortable[expando].options.emptyInsertThreshold,\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (threshold && insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\n * @class Sortable\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = !rootEl.contains(dragEl)) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // assign target only if condition is true\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n el.appendChild(dragEl);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\n * Serializes the item into an array of string.\n * @returns {String[]}\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\n * Sorts the elements according to the array.\n * @param {String[]} order order of the items\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\n * Save the current sorting\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\n * @param {HTMLElement} el\n * @param {String} [selector] default: `options.draggable`\n * @returns {HTMLElement|null}\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\n * Set/get option\n * @param {string} name\n * @param {*} [value]\n * @returns {*}\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\n * Destroy\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\n * Gets the direction dragEl must be swapped relative to target in order to make it\n * seem that dragEl has been \"inserted\" into that element's position\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\n * @return {Number} Direction dragEl must be swapped\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\n * Generate id\n * @param {HTMLElement} el\n * @returns {String}\n * @private\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\n * Get the Sortable instance of an element\n * @param {HTMLElement} element The element\n * @return {Sortable|undefined} The instance of Sortable\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\n * Mount a plugin to Sortable\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread({}, Sortable.utils, plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\n * Create sortable instance\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvt: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvt: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvt: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n // Do not \"unfold\" after around dragEl if reverted\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvt: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import { Base } from \"./base\";\nimport { property, propertyArray } from \"./jsonobject\";\nimport { ListModel } from \"./list\";\nimport { PopupModel } from \"./popup\";\nimport { unwrap } from \"./utils/utils\";\n\n/**\n * Defines an individual action. Action items can be displayed in certain survey elements - in Toolbar (or action bar), in titles (of pages, panels, questions), in matrix rows (as 'expand details' or 'remove row' buttons), and etc.\n */\nexport interface IActionBarItem {\n /**\n * Unique string id\n */\n id: string;\n /**\n * Set this property to false to make the toolbar item invisible.\n */\n visible?: (() => boolean) | boolean;\n /**\n * Toolbar item title\n */\n title?: (() => string) | string;\n /**\n * Toolbar item tooltip\n */\n tooltip?: string;\n /**\n * Set this property to false to disable the toolbar item.\n */\n enabled?: (() => boolean) | boolean;\n /**\n * Set this property to false to hide the toolbar item title.\n */\n showTitle?: boolean;\n /**\n * A callback that calls on toolbar item click.\n */\n action?: (context?: any) => void;\n /**\n * Toolbar item css class\n */\n css?: (() => string) | string;\n /**\n * Toolbar inner element css class\n */\n innerCss?: string;\n /**\n * Toolbar item data object. Used as data for custom template or component rendering\n */\n data?: any;\n popupModel?: any; //TODO: temp, use data instead\n needSeparator?: boolean; //TODO: temp\n /**\n * Set this property to true to activate the toolbar item (page)\n */\n active?: (() => boolean) | boolean;\n /**\n * Toolbar item template name\n */\n template?: string;\n /**\n * Toolbar item component name\n */\n component?: string;\n /**\n * Toolbar item icon name\n */\n iconName?: (() => string) | string;\n /**\n * Toolbar item child items. Can be used as contianer for options\n */\n items?: any;\n /**\n * Gets or sets an action's location in a matrix question's row.\n *\n * The following options are available:\n *\n * - `start` - An action is located at the beginning of a row.\n * - `end` - An action is located at the end of a row.\n */\n location?: string;\n}\n\nexport class ActionBarItem extends Base implements IActionBarItem {\n constructor(item: IActionBarItem) {\n super();\n Object.assign(this, item);\n }\n @property() id: string;\n @property() visible?: (() => boolean) | boolean;\n @property() title?: (() => string) | string;\n @property() tooltip?: string;\n @property() enabled?: (() => boolean) | boolean;\n @property() showTitle?: boolean;\n @property() action?: (context?: any) => void;\n @property() css?: (() => string) | string;\n @property() innerCss?: string;\n @property() data?: any;\n @property() popupModel?: any;\n @property() needSeparator?: boolean;\n @property() active?: boolean | (() => boolean);\n @property() template?: string;\n @property() component?: string;\n @property() iconName?: (() => string) | string;\n @property() items?: any;\n}\n\nexport class AdaptiveActionBarItemWrapper extends Base\n implements IActionBarItem {\n constructor(private owner: AdaptiveElement, private item: IActionBarItem) {\n super();\n\n this.needSeparator = item.needSeparator;\n }\n\n public get wrappedItem(): IActionBarItem {\n return this.item;\n }\n\n public get id(): string {\n return this.item.id;\n }\n public get visible(): boolean {\n return unwrap(this.item.visible);\n }\n public get title(): string {\n return unwrap(this.item.title);\n }\n public get tooltip(): string {\n return unwrap(this.item.tooltip);\n }\n public get enabled(): boolean {\n return unwrap(this.item.enabled);\n }\n public get disabled(): boolean {\n const isEnabled = this.enabled;\n if (isEnabled === undefined) return false;\n return isEnabled;\n }\n public get showTitle(): boolean {\n return (\n this.owner.showTitles &&\n (this.item.showTitle || this.item.showTitle === undefined)\n );\n }\n\n public action(context?: any) {\n this.item.action && this.item.action(context);\n }\n public get css(): (() => string) | string {\n return unwrap(this.item.css);\n }\n public get innerCss(): string {\n return unwrap(this.item.innerCss);\n }\n public get data(): any {\n return unwrap(this.item.data);\n }\n public get popupModel(): any {\n return unwrap(this.item.popupModel);\n }\n public get active(): boolean {\n return unwrap(this.item.active);\n }\n public get template(): string {\n return this.item.template;\n }\n public get component(): string {\n return unwrap(this.item.component);\n }\n public get iconName(): string {\n return unwrap(this.item.iconName);\n }\n public get items(): any {\n return unwrap(this.item.items);\n }\n @property({ defaultValue: true }) isVisible: boolean;\n @property() needSeparator: boolean;\n}\n\nexport class AdaptiveElement extends Base {\n @property({ defaultValue: true }) showTitles: boolean;\n @propertyArray() items: Array;\n @propertyArray({\n onSet: (val: any, target: AdaptiveElement) => {\n target.invisibleItemsListModel.items = target.invisibleItems;\n },\n })\n invisibleItems: Array;\n\n protected dotsItem: AdaptiveActionBarItemWrapper; // (...) button\n public dotsItemPopupModel: PopupModel;\n\n constructor() {\n super();\n this.dotsItemPopupModel = new PopupModel(\n \"sv-list\",\n this.invisibleItemsListModel\n );\n this.dotsItem = new AdaptiveActionBarItemWrapper(\n this,\n new ActionBarItem({\n id: \"dotsItem-id\",\n component: \"sv-action-bar-item-dropdown\",\n css: \"sv-dots\",\n innerCss: \"sv-dots__item\",\n iconName: \"icon-dots\",\n // showTitle: true,\n // title: \"...\",\n action: (item: any) => {\n this.dotsItemPopupModel.toggleVisibility();\n },\n\n popupModel: this.dotsItemPopupModel,\n })\n );\n }\n\n public get hasItems(): boolean {\n return (this.items || []).length > 0;\n }\n\n public invisibleItemSelected(item: AdaptiveActionBarItemWrapper): void {\n if (!!item && typeof item.action === \"function\") {\n item.action();\n }\n }\n\n protected invisibleItemsListModel: ListModel = new ListModel(\n [],\n (item: AdaptiveActionBarItemWrapper) => {\n this.invisibleItemSelected(item);\n this.dotsItemPopupModel.toggleVisibility();\n },\n false\n );\n\n public showFirstN(visibleItemsCount: number) {\n let leftItemsToShow = visibleItemsCount;\n const invisibleItems: AdaptiveActionBarItemWrapper[] = [];\n this.items.forEach(item => {\n if (item === this.dotsItem) {\n return;\n }\n item.isVisible = leftItemsToShow > 0;\n if (leftItemsToShow <= 0) {\n invisibleItems.push(item);\n }\n leftItemsToShow--;\n });\n this.invisibleItems = invisibleItems;\n var index = this.items.indexOf(this.dotsItem);\n if (index !== -1) {\n this.items.splice(index, 1);\n }\n if (visibleItemsCount < this.items.length) {\n this.items.splice(visibleItemsCount, 0, this.dotsItem);\n }\n }\n\n public get canShrink(): boolean {\n return this.showTitles;\n }\n public readonly canGrow = true;\n public shrink() {\n this.showTitles = false;\n }\n public grow() {\n this.showTitles = true;\n }\n}\n","import { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { HashTable, Helpers } from \"./helpers\";\nimport {\n CustomPropertiesCollection,\n JsonObject,\n JsonObjectProperty,\n property,\n Serializer,\n} from \"./jsonobject\";\nimport { settings } from \"./settings\";\nimport { ItemValue } from \"./itemvalue\";\nimport { RendererFactory } from \"./rendererFactory\";\nimport { IActionBarItem } from \"./action-bar\";\nimport {\n MatrixDropdownRowModelBase,\n QuestionMatrixDropdownModelBase,\n} from \"./question_matrixdropdownbase\";\n\nexport interface ISurveyData {\n getValue(name: string): any;\n setValue(\n name: string,\n newValue: any,\n locNotification: any,\n allowNotifyValueChanged?: boolean\n ): any;\n getVariable(name: string): any;\n setVariable(name: string, newValue: any): void;\n getComment(name: string): string;\n setComment(name: string, newValue: string, locNotification: any): any;\n getAllValues(): any;\n getFilteredValues(): any;\n getFilteredProperties(): any;\n}\nexport interface ITextProcessor {\n processText(text: string, returnDisplayValue: boolean): string;\n processTextEx(\n text: string,\n returnDisplayValue: boolean,\n doEncoding: boolean\n ): any;\n}\nexport interface ISurveyErrorOwner extends ILocalizableOwner {\n getErrorCustomText(text: string, error: SurveyError): string;\n}\n\nexport interface ISurvey extends ITextProcessor, ISurveyErrorOwner {\n currentPage: IPage;\n pages: Array;\n getCss(): any;\n isPageStarted(page: IPage): boolean;\n getQuestionByName(name: string): IQuestion;\n pageVisibilityChanged(page: IPage, newValue: boolean): any;\n panelVisibilityChanged(panel: IPanel, newValue: boolean): any;\n questionVisibilityChanged(question: IQuestion, newValue: boolean): any;\n isEditingSurveyElement: boolean;\n isClearValueOnHidden: boolean;\n isClearValueOnHiddenContainer: boolean;\n questionsOrder: string;\n questionCreated(question: IQuestion): any;\n questionAdded(\n question: IQuestion,\n index: number,\n parentPanel: any,\n rootPanel: any\n ): any;\n panelAdded(\n panel: IElement,\n index: number,\n parentPanel: any,\n rootPanel: any\n ): any;\n questionRemoved(question: IQuestion): any;\n panelRemoved(panel: IElement): any;\n questionRenamed(\n question: IQuestion,\n oldName: string,\n oldValueName: string\n ): any;\n validateQuestion(question: IQuestion): SurveyError;\n validatePanel(panel: IPanel): SurveyError;\n hasVisibleQuestionByValueName(valueName: string): boolean;\n questionCountByValueName(valueName: string): number;\n processHtml(html: string): string;\n getSurveyMarkdownHtml(element: Base, text: string, name: string): string;\n getRendererForString(element: Base, name: string): string;\n isDisplayMode: boolean;\n isDesignMode: boolean;\n areInvisibleElementsShowing: boolean;\n areEmptyElementsHidden: boolean;\n isLoadingFromJson: boolean;\n isUpdateValueTextOnTyping: boolean;\n\n state: string;\n isLazyRendering: boolean;\n cancelPreviewByPage(panel: IPanel): any;\n\n requiredText: string;\n beforeSettingQuestionErrors(\n question: IQuestion,\n errors: Array\n ): void;\n beforeSettingPanelErrors(question: IPanel, errors: Array): void;\n questionTitlePattern: string;\n getUpdatedQuestionTitle(question: IQuestion, title: string): string;\n getUpdatedQuestionNo(question: IQuestion, no: string): string;\n getUpdatedQuestionTitleActions(\n question: IQuestion,\n titleActions: Array\n ): Array;\n getUpdatedPanelTitleActions(\n question: IPanel,\n titleActions: Array\n ): Array;\n getUpdatedPageTitleActions(\n question: IPage,\n titleActions: Array\n ): Array;\n getUpdatedMatrixRowActions(\n question: QuestionMatrixDropdownModelBase,\n row: MatrixDropdownRowModelBase,\n actions: Array\n ): Array;\n questionStartIndex: string;\n questionTitleLocation: string;\n questionDescriptionLocation: string;\n questionErrorLocation: string;\n storeOthersAsComment: boolean;\n\n maxTextLength: number;\n maxOthersLength: number;\n clearValueOnDisableItems: boolean;\n\n uploadFiles(\n question: IQuestion,\n name: string,\n files: File[],\n uploadingCallback: (status: string, data: any) => any\n ): any;\n downloadFile(\n name: string,\n content: string,\n callback: (status: string, data: any) => any\n ): any;\n clearFiles(\n question: IQuestion,\n name: string,\n value: any,\n fileName: string,\n clearCallback: (status: string, data: any) => any\n ): any;\n updateChoicesFromServer(\n question: IQuestion,\n choices: Array,\n serverResult: any\n ): Array;\n updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;\n updatePanelCssClasses(panel: IPanel, cssClasses: any): any;\n updatePageCssClasses(panel: IPanel, cssClasses: any): any;\n afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): any;\n afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): any;\n afterRenderPanel(panel: IElement, htmlElement: HTMLElement): any;\n afterRenderPage(htmlElement: HTMLElement): any;\n\n getQuestionByValueNameFromArray(\n valueName: string,\n name: string,\n index: number\n ): IQuestion;\n matrixRowAdded(question: IQuestion, row: any): any;\n matrixBeforeRowAdded(options: {\n question: IQuestion;\n canAddRow: boolean;\n }): any;\n matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any;\n matrixAllowRemoveRow(\n question: IQuestion,\n rowIndex: number,\n row: any\n ): boolean;\n matrixCellCreated(question: IQuestion, options: any): any;\n matrixAfterCellRender(question: IQuestion, options: any): any;\n matrixCellValueChanged(question: IQuestion, options: any): any;\n matrixCellValueChanging(question: IQuestion, options: any): any;\n isValidateOnValueChanging: boolean;\n matrixCellValidate(question: IQuestion, options: any): SurveyError;\n dynamicPanelAdded(question: IQuestion): any;\n dynamicPanelRemoved(\n question: IQuestion,\n panelIndex: number,\n panel: IPanel\n ): any;\n dynamicPanelItemValueChanged(question: IQuestion, options: any): any;\n\n dragAndDropAllow(options: any): boolean;\n\n scrollElementToTop(\n element: ISurveyElement,\n question: IQuestion,\n page: IPage,\n id: string\n ): any;\n runExpression(expression: string): any;\n renderTitleActions(element: ISurveyElement): boolean;\n elementContentVisibilityChanged(element: ISurveyElement): void;\n}\nexport interface ISurveyImpl {\n getSurveyData(): ISurveyData;\n getSurvey(): ISurvey;\n getTextProcessor(): ITextProcessor;\n}\nexport interface IConditionRunner {\n runCondition(values: HashTable, properties: HashTable): any;\n}\nexport interface ISurveyElement {\n name: string;\n isVisible: boolean;\n isReadOnly: boolean;\n isPage: boolean;\n isPanel: boolean;\n containsErrors: boolean;\n parent: IPanel;\n setSurveyImpl(value: ISurveyImpl): any;\n onSurveyLoad(): any;\n onFirstRendering(): any;\n getType(): string;\n setVisibleIndex(value: number): number;\n locStrsChanged(): any;\n delete(): any;\n toggleState(): void;\n stateChangedCallback(): void;\n getTitleActions(): Array;\n}\nexport interface IElement extends IConditionRunner, ISurveyElement {\n visible: boolean;\n renderWidth: string;\n width: string;\n minWidth?: string;\n maxWidth?: string;\n isExpanded: boolean;\n isCollapsed: boolean;\n rightIndent: number;\n startWithNewLine: boolean;\n registerFunctionOnPropertyValueChanged(\n name: string,\n func: any,\n key: string\n ): void;\n unRegisterFunctionOnPropertyValueChanged(name: string, key: string): void;\n getPanel(): IPanel;\n getLayoutType(): string;\n isLayoutTypeSupported(layoutType: string): boolean;\n removeElement(el: IElement): boolean;\n onAnyValueChanged(name: string): any;\n updateCustomWidgets(): any;\n clearIncorrectValues(): any;\n clearErrors(): any;\n dispose(): void;\n}\n\nexport interface IQuestion extends IElement, ISurveyErrorOwner {\n hasTitle: boolean;\n isEmpty(): boolean;\n onSurveyValueChanged(newValue: any): any;\n updateValueFromSurvey(newValue: any): any;\n updateCommentFromSurvey(newValue: any): any;\n supportGoNextPageAutomatic(): boolean;\n clearUnusedValues(): any;\n getDisplayValue(keysAsText: boolean, value: any): any;\n getValueName(): string;\n clearValue(): any;\n clearValueIfInvisible(): any;\n isAnswerCorrect(): boolean;\n updateValueWithDefaults(): any;\n getQuestionFromArray(name: string, index: number): IQuestion;\n value: any;\n survey: any;\n}\nexport interface IParentElement {\n addElement(element: IElement, index: number): any;\n removeElement(element: IElement): boolean;\n isReadOnly: boolean;\n}\n\nexport interface IPanel extends ISurveyElement, IParentElement {\n getChildrenLayoutType(): string;\n getQuestionTitleLocation(): string;\n getQuestionStartIndex(): string;\n parent: IPanel;\n elementWidthChanged(el: IElement): any;\n indexOf(el: IElement): number;\n elements: Array;\n ensureRowsVisibility(): void;\n}\nexport interface IPage extends IPanel, IConditionRunner {\n isStarted: boolean;\n}\nexport interface ITitleOwner {\n name: string;\n no: string;\n requiredText: string;\n isRequireTextOnStart: boolean;\n isRequireTextBeforeTitle: boolean;\n isRequireTextAfterTitle: boolean;\n locTitle: LocalizableString;\n}\nexport interface IProgressInfo {\n questionCount: number;\n answeredQuestionCount: number;\n requiredQuestionCount: number;\n requiredAnsweredQuestionCount: number;\n}\n\nexport interface IWrapperObject {\n getOriginalObj(): Base;\n getClassNameProperty(): string;\n}\n\nexport class Bindings {\n private properties: Array = null;\n private values: any = null;\n constructor(private obj: Base) {}\n public getType(): string {\n return \"bindings\";\n }\n public getNames(): Array {\n var res: Array = [];\n this.fillProperties();\n for (var i = 0; i < this.properties.length; i++) {\n if (this.properties[i].isVisible(\"\", this.obj)) {\n res.push(this.properties[i].name);\n }\n }\n return res;\n }\n public getProperties(): Array {\n var res: Array = [];\n this.fillProperties();\n for (var i = 0; i < this.properties.length; i++) {\n res.push(this.properties[i]);\n }\n return res;\n }\n public setBinding(propertyName: string, valueName: string) {\n if (!this.values) this.values = {};\n if (!!valueName) {\n this.values[propertyName] = valueName;\n } else {\n delete this.values[propertyName];\n if (Object.keys(this.values).length == 0) {\n this.values = null;\n }\n }\n }\n public clearBinding(propertyName: string) {\n this.setBinding(propertyName, \"\");\n }\n public isEmpty(): boolean {\n return !this.values;\n }\n public getValueNameByPropertyName(propertyName: string): string {\n if (!this.values) return undefined;\n return this.values[propertyName];\n }\n public getPropertiesByValueName(valueName: string): Array {\n if (!this.values) return [];\n var res: Array = [];\n for (var key in this.values) {\n if (this.values[key] == valueName) {\n res.push(key);\n }\n }\n return res;\n }\n public getJson(): any {\n if (this.isEmpty()) return null;\n var res: any = {};\n for (var key in this.values) {\n res[key] = this.values[key];\n }\n return res;\n }\n public setJson(value: any) {\n this.values = null;\n if (!value) return;\n this.values = {};\n for (var key in value) {\n this.values[key] = value[key];\n }\n }\n private fillProperties() {\n if (this.properties !== null) return;\n this.properties = [];\n var objProperties = Serializer.getPropertiesByObj(this.obj);\n for (var i = 0; i < objProperties.length; i++) {\n if (objProperties[i].isBindable) {\n this.properties.push(objProperties[i]);\n }\n }\n }\n}\n/**\n * The base class for SurveyJS objects.\n */\nexport class Base {\n public static isSurveyElement(val: any): boolean {\n if (!val) return false;\n if (Array.isArray(val)) {\n if (val.length == 0) return false;\n return Base.isSurveyElement(val[0]);\n }\n return !!val.getType && !!val.onPropertyChanged;\n }\n public static get commentPrefix(): string {\n return settings.commentPrefix;\n }\n public static set commentPrefix(val: string) {\n settings.commentPrefix = val;\n }\n public static createItemValue: (item: any, type?: string) => any;\n public static itemValueLocStrChanged: (arr: Array) => void;\n /**\n * Returns true if a value underfined, null, empty string or empty array.\n *\n * @param value\n * @param trimString a boolean parameter, default value true. If true then it trims the string and functions returns true for a string that contains white spaces only.\n */\n public isValueEmpty(value: any, trimString: boolean = true): boolean {\n if (trimString) {\n value = this.trimValue(value);\n }\n return Helpers.isValueEmpty(value);\n }\n protected trimValue(value: any): any {\n if (!!value && (typeof value === \"string\" || value instanceof String))\n return value.trim();\n return value;\n }\n protected IsPropertyEmpty(value: any): boolean {\n return value !== \"\" && this.isValueEmpty(value);\n }\n\n private propertyHash: { [index: string]: any } = {};\n private localizableStrings: { [index: string]: LocalizableString };\n private arraysInfo: { [index: string]: any };\n private eventList: Array> = [];\n private bindingsValue: Bindings;\n private isDisposedValue: boolean;\n private onPropChangeFunctions: Array<{\n name: string;\n func: (...args: any[]) => void;\n key: string;\n }>;\n protected isLoadingFromJsonValue: boolean = false;\n public loadingOwner: Base = null;\n /**\n * Event that raise on property change of the sender object\n * sender - the object that owns the property\n * options.name - the property name that has been changed\n * options.oldValue - old value. Please note, it equals to options.newValue if property is an array\n * options.newValue - new value.\n */\n public onPropertyChanged: EventBase = this.addEvent();\n /**\n * Event that raised on changing property of the ItemValue object.\n * sender - the object that owns the property\n * options.propertyName - the property name to which ItemValue array is belong. It can be \"choices\" for dropdown question\n * options.obj - the instance of ItemValue object which property has been changed\n * options.name - the property of ItemObject that has been changed\n * options.oldValue - old value\n * options.newValue - new value\n */\n public onItemValuePropertyChanged: Event<\n (sender: Base, options: any) => any,\n any\n > = this.addEvent();\n\n getPropertyValueCoreHandler: (propertiesHash: any, name: string) => any;\n\n setPropertyValueCoreHandler: (\n propertiesHash: any,\n name: string,\n val: any\n ) => void;\n createArrayCoreHandler: (propertiesHash: any, name: string) => Array;\n\n private isCreating = true;\n\n public constructor() {\n this.bindingsValue = new Bindings(this);\n CustomPropertiesCollection.createProperties(this);\n this.onBaseCreating();\n this.isCreating = false;\n }\n public dispose() {\n for (var i = 0; i < this.eventList.length; i++) {\n this.eventList[i].clear();\n }\n this.isDisposedValue = true;\n }\n public get isDisposed() {\n return this.isDisposedValue === true;\n }\n protected addEvent(): EventBase {\n var res = new EventBase();\n this.eventList.push(res);\n return res;\n }\n protected onBaseCreating() {}\n /**\n * Returns the type of the object as a string as it represents in the json. It should be in lowcase.\n */\n public getType(): string {\n return \"base\";\n }\n public getSurvey(isLive: boolean = false): ISurvey {\n return null;\n }\n /**\n * Returns true if the object is inluded into survey, otherwise returns false.\n */\n public get inSurvey(): boolean {\n return !!this.getSurvey(true);\n }\n public get bindings(): Bindings {\n return this.bindingsValue;\n }\n checkBindings(valueName: string, value: any) {}\n protected updateBindings(propertyName: string, value: any) {\n var valueName = this.bindings.getValueNameByPropertyName(propertyName);\n if (!!valueName) {\n this.updateBindingValue(valueName, value);\n }\n }\n protected updateBindingValue(valueName: string, value: any) {}\n /**\n * Returns the element template name without prefix. Typically it equals to getType().\n * @see getType\n */\n public getTemplate(): string {\n return this.getType();\n }\n /**\n * Returns true if the object is loading from Json at the current moment.\n */\n public get isLoadingFromJson(): boolean {\n return this.getIsLoadingFromJson();\n }\n protected getIsLoadingFromJson(): boolean {\n if (!!this.loadingOwner && this.loadingOwner.isLoadingFromJson) return true;\n return this.isLoadingFromJsonValue;\n }\n\n startLoadingFromJson() {\n this.isLoadingFromJsonValue = true;\n }\n endLoadingFromJson() {\n this.isLoadingFromJsonValue = false;\n }\n /**\n * Deserialized the current object into JSON\n * @see fromJSON\n */\n public toJSON(): any {\n return new JsonObject().toJsonObject(this);\n }\n /**\n * Load object properties and elements. It doesn't reset properties that was changed before and they are not defined in the json parameter.\n * @param json the object JSON definition\n * @see toJSON\n */\n public fromJSON(json: any) {\n return new JsonObject().toObject(json, this);\n }\n /**\n * Make a clone of the existing object. Create a new object of the same type and load all properties into it.\n */\n public clone(): Base {\n var clonedObj = Serializer.createClass(this.getType());\n clonedObj.fromJSON(this.toJSON());\n return clonedObj;\n }\n public getProgressInfo(): IProgressInfo {\n return SurveyElement.createProgressInfo();\n }\n public locStrsChanged() {\n if (!!this.arraysInfo) {\n for (let key in this.arraysInfo) {\n let item = this.arraysInfo[key];\n if (item && item.isItemValues) {\n var arr = this.getPropertyValue(key);\n if (arr && !!Base.itemValueLocStrChanged)\n Base.itemValueLocStrChanged(arr);\n }\n }\n }\n if (!!this.localizableStrings) {\n for (let key in this.localizableStrings) {\n let item = this.getLocalizableString(key);\n if (item) item.strChanged();\n }\n }\n }\n /**\n * Returns the property value by name\n * @param name property name\n */\n public getPropertyValue(name: string, defaultValue: any = null): any {\n var res = this.getPropertyValueCore(this.propertyHash, name);\n if (this.IsPropertyEmpty(res)) {\n if (defaultValue != null) return defaultValue;\n var prop = Serializer.findProperty(this.getType(), name);\n if (!!prop && (!prop.isCustom || !this.isCreating)) {\n if (\n !this.IsPropertyEmpty(prop.defaultValue) &&\n !Array.isArray(prop.defaultValue)\n )\n return prop.defaultValue;\n if (prop.type == \"boolean\" || prop.type == \"switch\") return false;\n if (prop.isCustom && !!prop.onGetValue) return prop.onGetValue(this);\n }\n }\n return res;\n }\n protected getPropertyValueCore(propertiesHash: any, name: string) {\n if (this.getPropertyValueCoreHandler)\n return this.getPropertyValueCoreHandler(propertiesHash, name);\n else return propertiesHash[name];\n }\n public geValueFromHash(): any {\n return this.propertyHash[\"value\"];\n }\n protected setPropertyValueCore(propertiesHash: any, name: string, val: any) {\n if (this.setPropertyValueCoreHandler && !this.isDisposedValue)\n this.setPropertyValueCoreHandler(propertiesHash, name, val);\n else propertiesHash[name] = val;\n }\n public iteratePropertiesHash(func: (hash: any, key: any) => void) {\n var keys: any[] = [];\n for (var key in this.propertyHash) {\n keys.push(key);\n }\n keys.forEach(key => func(this.propertyHash, key));\n }\n /**\n * set property value\n * @param name property name\n * @param val new property value\n */\n public setPropertyValue(name: string, val: any) {\n var oldValue = this.getPropertyValue(name);\n if (oldValue && Array.isArray(oldValue)) {\n if (this.isTwoValueEquals(oldValue, val)) return;\n var arrayInfo = this.arraysInfo[name];\n this.setArray(\n name,\n oldValue,\n val,\n arrayInfo ? arrayInfo.isItemValues : false,\n arrayInfo ? arrayInfo.onPush : null\n );\n } else {\n this.setPropertyValueCore(this.propertyHash, name, val);\n if (!this.isDisposedValue && !this.isTwoValueEquals(oldValue, val)) {\n this.propertyValueChanged(name, oldValue, val);\n }\n }\n }\n protected clearPropertyValue(name: string) {\n this.setPropertyValueCore(this.propertyHash, name, null);\n delete this.propertyHash[name];\n }\n public onPropertyValueChangedCallback(\n name: string,\n oldValue: any,\n newValue: any,\n sender: Base,\n arrayChanges: ArrayChanges\n ) {}\n public itemValuePropertyChanged(\n item: ItemValue,\n name: string,\n oldValue: any,\n newValue: any\n ) {\n this.onItemValuePropertyChanged.fire(this, {\n obj: item,\n name: name,\n oldValue: oldValue,\n newValue: newValue,\n propertyName: item.ownerPropertyName,\n });\n }\n protected onPropertyValueChanged(\n name: string,\n oldValue: any,\n newValue: any\n ) {}\n protected propertyValueChanged(\n name: string,\n oldValue: any,\n newValue: any,\n arrayChanges?: ArrayChanges,\n target?: Base\n ) {\n if (this.isLoadingFromJson) return;\n this.updateBindings(name, newValue);\n this.onPropertyValueChanged(name, oldValue, newValue);\n this.onPropertyChanged.fire(this, {\n name: name,\n oldValue: oldValue,\n newValue: newValue,\n });\n\n this.doPropertyValueChangedCallback(\n name,\n oldValue,\n newValue,\n arrayChanges,\n this\n );\n\n if (!this.onPropChangeFunctions) return;\n for (var i = 0; i < this.onPropChangeFunctions.length; i++) {\n if (this.onPropChangeFunctions[i].name == name)\n this.onPropChangeFunctions[i].func(newValue);\n }\n }\n protected get isInternal(): boolean {\n return false;\n }\n private doPropertyValueChangedCallback(\n name: string,\n oldValue: any,\n newValue: any,\n arrayChanges?: ArrayChanges,\n target?: Base\n ) {\n if (this.isInternal) return;\n if (!target) target = this;\n var notifier: any = this.getSurvey();\n if (!notifier) notifier = this;\n if (!!notifier.doPropertyValueChangedCallback) {\n notifier.onPropertyValueChangedCallback(\n name,\n oldValue,\n newValue,\n target,\n arrayChanges\n );\n }\n }\n /**\n * Register a function that will be called on a property value changed.\n * @param name the property name\n * @param func the function with no parameters that will be called on property changed.\n * @param key an optional parameter. If there is already a registered function for this property with the same key, it will be overwritten.\n */\n public registerFunctionOnPropertyValueChanged(\n name: string,\n func: any,\n key: string = null\n ) {\n if (!this.onPropChangeFunctions) {\n this.onPropChangeFunctions = [];\n }\n if (key) {\n for (var i = 0; i < this.onPropChangeFunctions.length; i++) {\n var item = this.onPropChangeFunctions[i];\n if (item.name == name && item.key == key) {\n item.func = func;\n return;\n }\n }\n }\n this.onPropChangeFunctions.push({ name: name, func: func, key: key });\n }\n /**\n * Register a function that will be called on a property value changed from the names list.\n * @param names the list of properties names\n * @param func the function with no parameters that will be called on property changed.\n * @param key an optional parameter. If there is already a registered function for this property with the same key, it will be overwritten.\n */\n public registerFunctionOnPropertiesValueChanged(\n names: Array,\n func: any,\n key: string = null\n ) {\n for (var i = 0; i < names.length; i++) {\n this.registerFunctionOnPropertyValueChanged(names[i], func, key);\n }\n }\n /**\n * Unregister notification on property value changed\n * @param name the property name\n * @param key the key with which you have registered the notification for this property. It can be null.\n */\n public unRegisterFunctionOnPropertyValueChanged(\n name: string,\n key: string = null\n ) {\n if (!this.onPropChangeFunctions) return;\n for (var i = 0; i < this.onPropChangeFunctions.length; i++) {\n var item = this.onPropChangeFunctions[i];\n if (item.name == name && item.key == key) {\n this.onPropChangeFunctions.splice(i, 1);\n return;\n }\n }\n }\n /**\n * Unregister notification on property value changed for all properties in the names list.\n * @param names the list of properties names\n * @param key the key with which you have registered the notification for this property. It can be null.\n */\n public unRegisterFunctionOnPropertiesValueChanged(\n names: Array,\n key: string = null\n ) {\n for (var i = 0; i < names.length; i++) {\n this.unRegisterFunctionOnPropertyValueChanged(names[i], key);\n }\n }\n public createCustomLocalizableObj(name: string) {\n var locStr = this.getLocalizableString(name);\n if (locStr || !(this).getLocale) return;\n this.createLocalizableString(name, (this));\n }\n protected createLocalizableString(\n name: string,\n owner: ILocalizableOwner,\n useMarkDown: boolean = false\n ): LocalizableString {\n var locStr = new LocalizableString(owner, useMarkDown, name);\n if (!this.localizableStrings) {\n this.localizableStrings = {};\n }\n this.localizableStrings[name] = locStr;\n return locStr;\n }\n public getLocalizableString(name: string): LocalizableString {\n return !!this.localizableStrings ? this.localizableStrings[name] : null;\n }\n public getLocalizableStringText(\n name: string,\n defaultStr: string = \"\"\n ): string {\n var locStr = this.getLocalizableString(name);\n if (!locStr) return \"\";\n var res = locStr.text;\n return res ? res : defaultStr;\n }\n public setLocalizableStringText(name: string, value: string) {\n var locStr = this.getLocalizableString(name);\n if (!locStr) return;\n var oldValue = locStr.text;\n if (oldValue === value) return;\n locStr.text = value;\n this.propertyValueChanged(name, oldValue, value);\n }\n public addUsedLocales(locales: Array) {\n if (!!this.localizableStrings) {\n for (let key in this.localizableStrings) {\n let item = this.getLocalizableString(key);\n if (item) this.AddLocStringToUsedLocales(item, locales);\n }\n }\n if (!!this.arraysInfo) {\n for (let key in this.arraysInfo) {\n let items = this.getPropertyValue(key);\n if (!items || !items.length) continue;\n for (let i = 0; i < items.length; i++) {\n let item = items[i];\n if (item && item.addUsedLocales) {\n item.addUsedLocales(locales);\n }\n }\n }\n }\n }\n protected AddLocStringToUsedLocales(\n locStr: LocalizableString,\n locales: Array\n ) {\n var locs = locStr.getLocales();\n for (var i = 0; i < locs.length; i++) {\n if (locales.indexOf(locs[i]) < 0) {\n locales.push(locs[i]);\n }\n }\n }\n protected createItemValues(name: string): Array {\n var self = this;\n var result = this.createNewArray(name, function(item: any) {\n item.locOwner = self;\n item.ownerPropertyName = name;\n });\n this.arraysInfo[name].isItemValues = true;\n return result;\n }\n private notifyArrayChanged(ar: any, arrayChanges: ArrayChanges) {\n !!ar.onArrayChanged && ar.onArrayChanged(arrayChanges);\n }\n protected createNewArrayCore(name: string): Array {\n var res = null;\n if (!!this.createArrayCoreHandler) {\n res = this.createArrayCoreHandler(this.propertyHash, name);\n }\n if (!res) {\n res = new Array();\n this.setPropertyValueCore(this.propertyHash, name, res);\n }\n return res;\n }\n protected ensureArray(\n name: string,\n onPush: any = null,\n onRemove: any = null\n ) {\n if (this.arraysInfo && this.arraysInfo[name]) {\n return;\n }\n\n return this.createNewArray(name, onPush, onRemove);\n }\n\n protected createNewArray(\n name: string,\n onPush: any = null,\n onRemove: any = null\n ): Array {\n var newArray = this.createNewArrayCore(name);\n if (!this.arraysInfo) {\n this.arraysInfo = {};\n }\n this.arraysInfo[name] = { onPush: onPush, isItemValues: false };\n var self = this;\n newArray.push = function(value): number {\n var result = Object.getPrototypeOf(newArray).push.call(newArray, value);\n if (!self.isDisposedValue) {\n if (onPush) onPush(value, newArray.length - 1);\n const arrayChanges = new ArrayChanges(\n newArray.length - 1,\n 0,\n [value],\n []\n );\n self.propertyValueChanged(name, newArray, newArray, arrayChanges);\n self.notifyArrayChanged(newArray, arrayChanges);\n }\n return result;\n };\n newArray.unshift = function(value): number {\n var result = Object.getPrototypeOf(newArray).unshift.call(\n newArray,\n value\n );\n if (!self.isDisposedValue) {\n if (onPush) onPush(value, newArray.length - 1);\n const arrayChanges = new ArrayChanges(0, 0, [value], []);\n self.propertyValueChanged(name, newArray, newArray, arrayChanges);\n self.notifyArrayChanged(newArray, arrayChanges);\n }\n return result;\n };\n newArray.pop = function(): number {\n var result = Object.getPrototypeOf(newArray).pop.call(newArray);\n if (!self.isDisposedValue) {\n if (onRemove) onRemove(result);\n const arrayChanges = new ArrayChanges(newArray.length - 1, 1, [], []);\n self.propertyValueChanged(name, newArray, newArray, arrayChanges);\n self.notifyArrayChanged(newArray, arrayChanges);\n }\n return result;\n };\n newArray.splice = function(\n start?: number,\n deleteCount?: number,\n ...items: any[]\n ): any[] {\n if (!start) start = 0;\n if (!deleteCount) deleteCount = 0;\n var result = Object.getPrototypeOf(newArray).splice.call(\n newArray,\n start,\n deleteCount,\n ...items\n );\n if (!items) items = [];\n if (!self.isDisposedValue) {\n if (onRemove && result) {\n for (var i = 0; i < result.length; i++) {\n onRemove(result[i]);\n }\n }\n if (onPush) {\n for (var i = 0; i < items.length; i++) {\n onPush(items[i], start + i);\n }\n }\n const arrayChanges = new ArrayChanges(\n start,\n deleteCount,\n items,\n result\n );\n self.propertyValueChanged(name, newArray, newArray, arrayChanges);\n self.notifyArrayChanged(newArray, arrayChanges);\n }\n return result;\n };\n\n return newArray;\n }\n protected getItemValueType(): string {\n return undefined;\n }\n protected setArray(\n name: string,\n src: any[],\n dest: any[],\n isItemValues: boolean,\n onPush: any\n ) {\n var deletedItems = [].concat(src);\n Object.getPrototypeOf(src).splice.call(src, 0, src.length);\n if (!!dest) {\n for (var i = 0; i < dest.length; i++) {\n var item = dest[i];\n if (isItemValues) {\n if (!!Base.createItemValue) {\n item = Base.createItemValue(item, this.getItemValueType());\n }\n }\n Object.getPrototypeOf(src).push.call(src, item);\n if (onPush) onPush(src[i]);\n }\n }\n const arrayChanges = new ArrayChanges(\n 0,\n deletedItems.length,\n src,\n deletedItems\n );\n this.propertyValueChanged(name, deletedItems, src, arrayChanges);\n this.notifyArrayChanged(src, arrayChanges);\n }\n protected isTwoValueEquals(\n x: any,\n y: any,\n caseInSensitive: boolean = false,\n trimString: boolean = false\n ): boolean {\n if (caseInSensitive) {\n x = this.getValueInLowCase(x);\n y = this.getValueInLowCase(y);\n }\n if (trimString) {\n x = this.trimValue(x);\n y = this.trimValue(y);\n }\n return Helpers.isTwoValueEquals(x, y);\n }\n private static copyObject(dst: any, src: any) {\n for (var key in src) {\n var source = src[key];\n if (typeof source === \"object\") {\n source = {};\n this.copyObject(source, src[key]);\n }\n dst[key] = source;\n }\n }\n protected copyCssClasses(dest: any, source: any) {\n if (!source) return;\n if (typeof source === \"string\" || source instanceof String) {\n dest[\"root\"] = source;\n } else {\n SurveyElement.copyObject(dest, source);\n }\n }\n private getValueInLowCase(val: any): any {\n if (!!val && typeof val == \"string\") return val.toLowerCase();\n return val;\n }\n}\n\nexport class ArrayChanges {\n constructor(\n public index: number,\n public deleteCount: number,\n public itemsToAdd: any[],\n public deletedItems: any[]\n ) {}\n}\n\nexport class SurveyError {\n private locTextValue: LocalizableString;\n public visible: boolean = true;\n constructor(\n public text: string = null,\n protected errorOwner: ISurveyErrorOwner = null\n ) {}\n public get locText() {\n if (!this.locTextValue) {\n this.locTextValue = new LocalizableString(this.errorOwner, true);\n this.locTextValue.text = this.getText();\n }\n return this.locTextValue;\n }\n public getText(): string {\n var res = this.text;\n if (!res) res = this.getDefaultText();\n if (!!this.errorOwner) {\n res = this.errorOwner.getErrorCustomText(res, this);\n }\n return res;\n }\n public getErrorType(): string {\n return \"base\";\n }\n protected getDefaultText(): string {\n return \"\";\n }\n}\n\n/**\n * Base class of SurveyJS Elements.\n */\nexport class SurveyElement extends Base implements ISurveyElement {\n protected titleActions: any[] = [];\n stateChangedCallback: () => void;\n public static createProgressInfo(): IProgressInfo {\n return {\n questionCount: 0,\n answeredQuestionCount: 0,\n requiredQuestionCount: 0,\n requiredAnsweredQuestionCount: 0,\n };\n }\n public static getProgressInfoByElements(\n children: Array,\n isRequired: boolean\n ): IProgressInfo {\n var info = SurveyElement.createProgressInfo();\n for (var i = 0; i < children.length; i++) {\n if (!children[i].isVisible) continue;\n var childInfo = children[i].getProgressInfo();\n info.questionCount += childInfo.questionCount;\n info.answeredQuestionCount += childInfo.answeredQuestionCount;\n info.requiredQuestionCount += childInfo.requiredQuestionCount;\n info.requiredAnsweredQuestionCount +=\n childInfo.requiredAnsweredQuestionCount;\n }\n if (isRequired && info.questionCount > 0) {\n if (info.requiredQuestionCount == 0) info.requiredQuestionCount = 1;\n if (info.answeredQuestionCount > 0)\n info.requiredAnsweredQuestionCount = 1;\n }\n return info;\n }\n private surveyImplValue: ISurveyImpl;\n private surveyDataValue: ISurveyData;\n private surveyValue: ISurvey;\n private textProcessorValue: ITextProcessor;\n private selectedElementInDesignValue: SurveyElement = this;\n public readOnlyChangedCallback: () => void;\n\n public static ScrollElementToTop(elementId: string): boolean {\n if (!elementId || typeof document === \"undefined\") return false;\n var el = document.getElementById(elementId);\n if (!el || !el.scrollIntoView) return false;\n var elemTop = el.getBoundingClientRect().top;\n if (elemTop < 0) el.scrollIntoView();\n return elemTop < 0;\n }\n public static GetFirstNonTextElement(\n elements: any,\n removeSpaces: boolean = false\n ) {\n if (!elements || !elements.length || elements.length == 0) return null;\n if (removeSpaces) {\n var tEl = elements[0];\n if (tEl.nodeName === \"#text\") tEl.data = \"\";\n tEl = elements[elements.length - 1];\n if (tEl.nodeName === \"#text\") tEl.data = \"\";\n }\n for (var i = 0; i < elements.length; i++) {\n if (elements[i].nodeName != \"#text\" && elements[i].nodeName != \"#comment\")\n return elements[i];\n }\n return null;\n }\n public static FocusElement(elementId: string): boolean {\n if (!elementId || typeof document === \"undefined\") return false;\n var el = document.getElementById(elementId);\n if (el) {\n el.focus();\n return true;\n }\n return false;\n }\n public static CreateDisabledDesignElements: boolean = false;\n public disableDesignActions: boolean =\n SurveyElement.CreateDisabledDesignElements;\n constructor(name: string) {\n super();\n this.name = name;\n this.createNewArray(\"errors\");\n this.registerFunctionOnPropertyValueChanged(\"isReadOnly\", () => {\n this.onReadOnlyChanged();\n });\n this.registerFunctionOnPropertyValueChanged(\"state\", () => {\n if (this.stateChangedCallback) this.stateChangedCallback();\n });\n this.registerFunctionOnPropertyValueChanged(\"errors\", () => {\n this.updateVisibleErrors();\n });\n }\n /**\n * Set this property to \"collapsed\" to render only Panel title and expanded button and to \"expanded\" to render the collapsed button in the Panel caption\n */\n public get state(): string {\n return this.getPropertyValue(\"state\");\n }\n public set state(val: string) {\n this.setPropertyValue(\"state\", val);\n this.notifyStateChanged();\n }\n private notifyStateChanged() {\n if (this.survey) {\n this.survey.elementContentVisibilityChanged(this);\n }\n }\n /**\n * Returns true if the Element is in the collapsed state\n * @see state\n * @see collapse\n * @see isExpanded\n */\n public get isCollapsed() {\n if (this.isDesignMode) return;\n return this.state == \"collapsed\";\n }\n /**\n * Returns true if the Element is in the expanded state\n * @see state\n * @see expand\n * @see isCollapsed\n */\n public get isExpanded() {\n return this.state == \"expanded\";\n }\n /**\n * Collapse the Element\n * @see state\n */\n public collapse() {\n if (this.isDesignMode) return;\n this.state = \"collapsed\";\n }\n /**\n * Expand the Element\n * @see state\n */\n public expand() {\n this.state = \"expanded\";\n }\n /**\n * Toggle element's state\n * @see state\n */\n public toggleState() {\n if (this.isCollapsed) {\n this.expand();\n return;\n }\n if (this.isExpanded) {\n this.collapse();\n return;\n }\n }\n\n public getTitleActions(): Array {\n this.titleActions = [];\n var expandAction: any = {\n title: \"\",\n action: () => {\n this.toggleState();\n },\n };\n Object.defineProperties(expandAction, {\n innerCss: {\n get: () => {\n var css = \"sv-expand-action\";\n if (this.isExpanded) css += \" sv-expand-action--expanded\";\n return css;\n },\n },\n visible: {\n get: () => {\n return this.isExpanded || this.isCollapsed;\n },\n },\n });\n\n this.titleActions.push(expandAction);\n return this.titleActions;\n }\n\n public getTitleComponentName(): string {\n var componentName = \"default\";\n if (this.survey.renderTitleActions(this)) {\n componentName = RendererFactory.Instance.getRenderer(\n \"element\",\n \"title-actions\"\n );\n }\n if (componentName == \"default\") {\n return \"sv-default-title\";\n }\n return componentName;\n }\n\n public setSurveyImpl(value: ISurveyImpl) {\n this.surveyImplValue = value;\n if (!this.surveyImplValue) {\n this.surveyValue = null;\n } else {\n this.surveyDataValue = this.surveyImplValue.getSurveyData();\n this.surveyValue = this.surveyImplValue.getSurvey();\n this.textProcessorValue = this.surveyImplValue.getTextProcessor();\n this.onSetData();\n }\n }\n protected get surveyImpl() {\n return this.surveyImplValue;\n }\n public get data(): ISurveyData {\n return this.surveyDataValue;\n }\n /**\n * Returns the survey object.\n */\n public get survey(): ISurvey {\n return this.getSurvey();\n }\n public getSurvey(live: boolean = false): ISurvey {\n if (!!this.surveyValue) return this.surveyValue;\n if (!!this.surveyImplValue) {\n this.surveyValue = this.surveyImplValue.getSurvey();\n }\n return this.surveyValue;\n }\n /**\n * Returns true if the question in design mode right now.\n */\n public get isDesignMode(): boolean {\n return !!this.survey && this.survey.isDesignMode;\n }\n public isContentElement: boolean = false;\n protected get isInternal(): boolean {\n return this.isContentElement;\n }\n public get areInvisibleElementsShowing(): boolean {\n return (\n !!this.survey &&\n this.survey.areInvisibleElementsShowing &&\n !this.isContentElement\n );\n }\n public get isVisible(): boolean {\n return true;\n }\n public get isReadOnly(): boolean {\n return false;\n }\n /**\n * Set it to true to make an element question/panel/page readonly.\n * Please note, this property is hidden for question without input, for example html question.\n * @see enableIf\n * @see isReadOnly\n */\n public get readOnly(): boolean {\n return this.getPropertyValue(\"readOnly\", false);\n }\n public set readOnly(val: boolean) {\n if (this.readOnly == val) return;\n this.setPropertyValue(\"readOnly\", val);\n if (!this.isLoadingFromJson) {\n this.setPropertyValue(\"isReadOnly\", this.isReadOnly);\n }\n }\n protected onReadOnlyChanged() {\n if (!!this.readOnlyChangedCallback) {\n this.readOnlyChangedCallback();\n }\n }\n public updateElementCss() {}\n protected getIsLoadingFromJson(): boolean {\n if (super.getIsLoadingFromJson()) return true;\n return this.survey ? this.survey.isLoadingFromJson : false;\n }\n /**\n * This is the identifier of a survey element - question or panel.\n * @see valueName\n */\n public get name(): string {\n return this.getPropertyValue(\"name\", \"\");\n }\n public set name(val: string) {\n var oldValue = this.name;\n this.setPropertyValue(\"name\", this.getValidName(val));\n if (!this.isLoadingFromJson && !!oldValue) {\n this.onNameChanged(oldValue);\n }\n }\n protected getValidName(name: string): string {\n return name;\n }\n protected onNameChanged(oldValue: string) {}\n protected updateBindingValue(valueName: string, value: any) {\n if (\n !!this.data &&\n !Helpers.isTwoValueEquals(value, this.data.getValue(valueName))\n ) {\n this.data.setValue(valueName, value, false);\n }\n }\n /**\n * The list of errors. It is created by callig hasErrors functions\n * @see hasErrors\n */\n public get errors(): Array {\n return this.getPropertyValue(\"errors\");\n }\n public set errors(val: Array) {\n this.setPropertyValue(\"errors\", val);\n }\n @property({ defaultValue: false }) hasVisibleErrors: boolean;\n private updateVisibleErrors() {\n var counter = 0;\n for (var i = 0; i < this.errors.length; i++) {\n if (this.errors[i].visible) counter++;\n }\n this.hasVisibleErrors = counter > 0;\n }\n /**\n * Returns true if a question or a container (panel/page) or their chidren have an error.\n * The value can be out of date. hasErrors function should be called to get the correct value.\n */\n public get containsErrors(): boolean {\n return this.getPropertyValue(\"containsErrors\", false);\n }\n public updateContainsErrors() {\n this.setPropertyValue(\"containsErrors\", this.getContainsErrors());\n }\n protected getContainsErrors(): boolean {\n return this.errors.length > 0;\n }\n public getElementsInDesign(includeHidden: boolean = false): Array {\n return [];\n }\n public get selectedElementInDesign(): SurveyElement {\n return this.selectedElementInDesignValue;\n }\n public set selectedElementInDesign(val: SurveyElement) {\n this.selectedElementInDesignValue = val;\n }\n public updateCustomWidgets() {}\n\n public onSurveyLoad() {}\n public onFirstRendering() {}\n endLoadingFromJson() {\n super.endLoadingFromJson();\n if (!this.survey) {\n this.onSurveyLoad();\n }\n }\n public setVisibleIndex(index: number): number {\n return 0;\n }\n public get isPage() {\n return false;\n }\n /**\n * Return false if it is not panel.\n */\n public get isPanel() {\n return false;\n }\n public delete() {}\n protected removeSelfFromList(list: Array) {\n if (!list || !Array.isArray(list)) return;\n var index = list.indexOf(this);\n if (index > -1) {\n list.splice(index, 1);\n }\n }\n protected get textProcessor(): ITextProcessor {\n return this.textProcessorValue;\n }\n protected getProcessedHtml(html: string): string {\n if (!html || !this.textProcessor) return html;\n return this.textProcessor.processText(html, true);\n }\n protected onSetData() {}\n public get parent(): IPanel {\n return this.getPropertyValue(\"parent\", null);\n }\n public set parent(val: IPanel) {\n this.setPropertyValue(\"parent\", val);\n }\n\n protected getPage(parent: IPanel): IPage {\n while (parent && parent.parent) parent = parent.parent;\n if (parent && parent.getType() == \"page\") return (parent);\n return null;\n }\n protected moveToBase(\n parent: IPanel,\n container: IPanel,\n insertBefore: any = null\n ): boolean {\n if (!container) return false;\n parent.removeElement((this));\n var index = -1;\n if (Helpers.isNumber(insertBefore)) {\n index = parseInt(insertBefore);\n }\n if (index == -1 && !!insertBefore && !!insertBefore.getType) {\n index = container.indexOf(insertBefore);\n }\n container.addElement((this), index);\n return true;\n }\n\n protected setPage(parent: IPanel, val: IPage) {\n var oldPage = this.getPage(parent);\n if (oldPage === val) return;\n if (parent) parent.removeElement((this));\n if (val) {\n val.addElement((this), -1);\n }\n }\n}\n\nexport class Event {\n public onCallbacksChanged: () => void;\n protected callbacks: Array;\n public get isEmpty(): boolean {\n return !this.callbacks || this.callbacks.length == 0;\n }\n public fire(sender: any, options: Options) {\n if (!this.callbacks) return;\n for (var i = 0; i < this.callbacks.length; i++) {\n this.callbacks[i](sender, options);\n if (!this.callbacks) return;\n }\n }\n public clear() {\n this.callbacks = undefined;\n }\n public add(func: T) {\n if (this.hasFunc(func)) return;\n if (!this.callbacks) {\n this.callbacks = new Array();\n }\n this.callbacks.push(func);\n this.fireCallbackChanged();\n }\n public remove(func: T) {\n if (this.hasFunc(func)) {\n var index = this.callbacks.indexOf(func, 0);\n this.callbacks.splice(index, 1);\n this.fireCallbackChanged();\n }\n }\n public hasFunc(func: T): boolean {\n if (this.callbacks == null) return false;\n return this.callbacks.indexOf(func, 0) > -1;\n }\n private fireCallbackChanged() {\n if (!!this.onCallbacksChanged) {\n this.onCallbacksChanged();\n }\n }\n}\n\nexport class EventBase extends Event<\n (sender: T, options: any) => any,\n any\n> {}\n","import { HashTable, Helpers } from \"./helpers\";\nimport { Base, ISurvey, ISurveyData } from \"./base\";\nimport { ExpressionRunner } from \"./conditions\";\nimport { Serializer } from \"./jsonobject\";\n\n/**\n * The calculated value is a way to define the variable in Survey Creator.\n * It has two main properties: name and expression. Based on expression the value read-only property is automatically calculated.\n * The name property should be unique though all calculated values.\n * It uses survey.getVariable/seruvey.setVariable functions to get/set its value. The class do not store its value internally.\n * You may set includeIntoResult property to true to store this calculated value into survey result.\n */\nexport class CalculatedValue extends Base {\n private data: ISurveyData;\n private expressionIsRunning: boolean = false;\n private expressionRunner: ExpressionRunner;\n constructor(name: string = null, expression: string = null) {\n super();\n if (!!name) {\n this.name = name;\n }\n if (!!expression) {\n this.expression = expression;\n }\n }\n public setOwner(data: ISurveyData) {\n this.data = data;\n this.rerunExpression();\n }\n public getType(): string {\n return \"calculatedvalue\";\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.data && !!(this.data)[\"getSurvey\"]\n ? (this.data).getSurvey()\n : null;\n }\n public get owner(): ISurveyData {\n return this.data;\n }\n /**\n * The calculated value name. It should be non empty and unique.\n */\n public get name(): string {\n return this.getPropertyValue(\"name\", \"\");\n }\n public set name(val: string) {\n this.setPropertyValue(\"name\", val);\n }\n /**\n * Set this property to true to include the non-empty calculated value into survey result, survey.data property.\n */\n public get includeIntoResult(): boolean {\n return this.getPropertyValue(\"includeIntoResult\", false);\n }\n public set includeIntoResult(val: boolean) {\n this.setPropertyValue(\"includeIntoResult\", val);\n }\n /**\n * The Expression that used to calculate the value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}.\n *
Example: \"({quantity} * {price}) * (100 - {discount}) / 100\"\n */\n public get expression(): string {\n return this.getPropertyValue(\"expression\", \"\");\n }\n public set expression(val: string) {\n this.setPropertyValue(\"expression\", val);\n this.rerunExpression();\n }\n public locCalculation() {\n this.expressionIsRunning = true;\n }\n public unlocCalculation() {\n this.expressionIsRunning = false;\n }\n private isCalculated = false;\n public resetCalculation() {\n this.isCalculated = false;\n }\n public doCalculation(\n calculatedValues: Array,\n values: HashTable,\n properties: HashTable\n ) {\n if (this.isCalculated) return;\n this.runExpressionCore(calculatedValues, values, properties);\n this.isCalculated = true;\n }\n public runExpression(values: HashTable, properties: HashTable) {\n this.runExpressionCore(null, values, properties);\n }\n public get value(): any {\n if (!this.data) return undefined;\n return this.data.getVariable(this.name);\n }\n protected setValue(val: any) {\n if (!this.data) return;\n this.data.setVariable(this.name, val);\n }\n private get canRunExpression(): boolean {\n return (\n !!this.data &&\n !this.isLoadingFromJson &&\n !!this.expression &&\n !this.expressionIsRunning &&\n !!this.name\n );\n }\n private rerunExpression() {\n if (!this.canRunExpression) return;\n this.runExpression(\n this.data.getFilteredValues(),\n this.data.getFilteredProperties()\n );\n }\n private runExpressionCore(\n calculatedValues: Array,\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.canRunExpression) return;\n this.ensureExpression(values);\n this.locCalculation();\n if (!!calculatedValues) {\n this.runDependentExpressions(calculatedValues, values, properties);\n }\n this.expressionRunner.run(values, properties);\n }\n private runDependentExpressions(\n calculatedValues: Array,\n values: HashTable,\n properties: HashTable\n ) {\n var variables = this.expressionRunner.getVariables();\n if (!variables) return;\n for (var i = 0; i < calculatedValues.length; i++) {\n var calcItem = calculatedValues[i];\n if (calcItem === this || variables.indexOf(calcItem.name) < 0) continue;\n calcItem.doCalculation(calculatedValues, values, properties);\n values[calcItem.name] = calcItem.value;\n }\n }\n private ensureExpression(values: HashTable) {\n if (!!this.expressionRunner) return;\n this.expressionRunner = new ExpressionRunner(this.expression);\n this.expressionRunner.onRunComplete = newValue => {\n if (!Helpers.isTwoValueEquals(newValue, this.value)) {\n this.setValue(newValue);\n }\n this.unlocCalculation();\n };\n }\n}\n\nSerializer.addClass(\n \"calculatedvalue\",\n [\n { name: \"!name\", isUnique: true },\n \"expression:expression\",\n \"includeIntoResult:boolean\",\n ],\n function() {\n return new CalculatedValue();\n },\n \"base\"\n);\n","import { Base, SurveyError, ITextProcessor, IQuestion, ISurvey } from \"./base\";\nimport { ItemValue } from \"./itemvalue\";\nimport { Serializer, JsonObjectProperty } from \"./jsonobject\";\nimport { WebRequestError, WebRequestEmptyError } from \"./error\";\nimport { settings } from \"./settings\";\n\nclass XmlParser {\n private parser = new DOMParser();\n public assignValue(target: any, name: string, value: any) {\n if (Array.isArray(target[name])) {\n target[name].push(value);\n } else if (target[name] !== undefined) {\n target[name] = [target[name]].concat(value);\n } else if (\n typeof value === \"object\" &&\n Object.keys(value).length === 1 &&\n Object.keys(value)[0] === name\n ) {\n target[name] = value[name];\n } else {\n target[name] = value;\n }\n }\n public xml2Json(xmlNode: any, result: any) {\n if (xmlNode.children && xmlNode.children.length > 0) {\n for (let i = 0; i < xmlNode.children.length; i++) {\n let childNode = xmlNode.children[i];\n let childObject = {};\n this.xml2Json(childNode, childObject);\n this.assignValue(result, childNode.nodeName, childObject);\n }\n } else {\n this.assignValue(result, xmlNode.nodeName, xmlNode.textContent);\n }\n }\n public parseXmlString(xmlString: string) {\n let xmlRoot = this.parser.parseFromString(xmlString, \"text/xml\");\n let json = {};\n this.xml2Json(xmlRoot, json);\n return json;\n }\n}\n\n/**\n * A definition for filling choices for checkbox, dropdown and radiogroup questions from resfull services.\n * The run method call a restful service and results can be get on getResultCallback.\n */\nexport class ChoicesRestful extends Base {\n private static cacheText = \"{CACHE}\";\n private static noCacheText = \"{NOCACHE}\";\n public static get EncodeParameters(): boolean {\n return settings.webserviceEncodeParameters;\n }\n public static set EncodeParameters(val: boolean) {\n settings.webserviceEncodeParameters = val;\n }\n public static clearCache() {\n ChoicesRestful.itemsResult = {};\n ChoicesRestful.sendingSameRequests = {};\n }\n private static itemsResult: { [index: string]: any } = {};\n private static sendingSameRequests: {\n [index: string]: Array;\n } = {};\n private static addSameRequest(obj: ChoicesRestful): boolean {\n if (!obj.isUsingCache) return false;\n var hash = obj.objHash;\n var res = ChoicesRestful.sendingSameRequests[hash];\n if (!res) {\n ChoicesRestful.sendingSameRequests[obj.objHash] = [];\n return false;\n }\n res.push(obj);\n return true;\n }\n private static unregisterSameRequests(obj: ChoicesRestful, items: any) {\n if (!obj.isUsingCache) return;\n var res = ChoicesRestful.sendingSameRequests[obj.objHash];\n delete ChoicesRestful.sendingSameRequests[obj.objHash];\n if (!res) return;\n for (var i = 0; i < res.length; i++) {\n if (!!res[i].getResultCallback) {\n res[i].getResultCallback(items);\n }\n }\n }\n public static onBeforeSendRequest: (\n sender: ChoicesRestful,\n options: { request: XMLHttpRequest }\n ) => void;\n private static getCachedItemsResult(obj: ChoicesRestful): boolean {\n var hash = obj.objHash;\n var res = ChoicesRestful.itemsResult[hash];\n if (!res) return false;\n if (obj.getResultCallback) {\n obj.getResultCallback(res);\n }\n return true;\n }\n private lastObjHash: string = \"\";\n private isRunningValue: boolean = false;\n protected processedUrl: string = \"\";\n protected processedPath: string = \"\";\n private isUsingCacheFromUrl: boolean = undefined;\n public onProcessedUrlCallback: (url: string, path: string) => void;\n public getResultCallback: (items: Array) => void;\n public beforeSendRequestCallback: () => void;\n public updateResultCallback: (\n items: Array,\n serverResult: any\n ) => Array;\n public getItemValueCallback: (item: any) => any;\n public error: SurveyError = null;\n public owner: IQuestion;\n constructor() {\n super();\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.owner ? this.owner.survey : null;\n }\n public run(textProcessor: ITextProcessor = null) {\n if (!this.url || !this.getResultCallback) return;\n this.processedText(textProcessor);\n if (!this.processedUrl) {\n this.doEmptyResultCallback({});\n this.lastObjHash = this.objHash;\n return;\n }\n if (this.lastObjHash === this.objHash) return;\n this.lastObjHash = this.objHash;\n this.error = null;\n if (this.useChangedItemsResults()) return;\n if (ChoicesRestful.addSameRequest(this)) return;\n this.sendRequest();\n }\n public get isUsingCache(): boolean {\n if (this.isUsingCacheFromUrl === true) return true;\n if (this.isUsingCacheFromUrl === false) return false;\n return settings.useCachingForChoicesRestful;\n }\n public get isRunning() {\n return this.isRunningValue;\n }\n public get isWaitingForParameters() {\n return this.url && !this.processedUrl;\n }\n protected useChangedItemsResults(): boolean {\n return ChoicesRestful.getCachedItemsResult(this);\n }\n private doEmptyResultCallback(serverResult: any) {\n var items: Array = [];\n if (this.updateResultCallback) {\n items = this.updateResultCallback(items, serverResult);\n }\n this.getResultCallback(items);\n }\n private processedText(textProcessor: ITextProcessor) {\n var urlText = this.url;\n if (!!urlText) {\n urlText = urlText\n .replace(ChoicesRestful.cacheText, \"\")\n .replace(ChoicesRestful.noCacheText, \"\");\n }\n if (textProcessor) {\n var pUrl = textProcessor.processTextEx(\n urlText,\n false,\n settings.webserviceEncodeParameters\n );\n var pPath = textProcessor.processTextEx(\n this.path,\n false,\n settings.webserviceEncodeParameters\n );\n if (!pUrl.hasAllValuesOnLastRun || !pPath.hasAllValuesOnLastRun) {\n this.processedUrl = \"\";\n this.processedPath = \"\";\n } else {\n this.processedUrl = pUrl.text;\n this.processedPath = pPath.text;\n }\n } else {\n this.processedUrl = urlText;\n this.processedPath = this.path;\n }\n if (this.onProcessedUrlCallback) {\n this.onProcessedUrlCallback(this.processedUrl, this.processedPath);\n }\n }\n protected parseResponse(response: any) {\n let parsedResponse;\n if (\n !!response &&\n typeof response.indexOf === \"function\" &&\n response.indexOf(\"<\") === 0\n ) {\n var parser = new XmlParser();\n parsedResponse = parser.parseXmlString(response);\n } else {\n try {\n parsedResponse = JSON.parse(response);\n } catch {\n parsedResponse = (response || \"\")\n .split(\"\\n\")\n .map((s: any) => s.trim(\" \"))\n .filter((s: any) => !!s);\n }\n }\n return parsedResponse;\n }\n protected sendRequest() {\n this.isRunningValue = true;\n var xhr = new XMLHttpRequest();\n xhr.open(\"GET\", this.processedUrl);\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n var self = this;\n var loadingObjHash = this.objHash;\n xhr.onload = function() {\n self.isRunningValue = false;\n if (xhr.status === 200) {\n self.onLoad(self.parseResponse(xhr.response), loadingObjHash);\n } else {\n self.onError(xhr.statusText, xhr.responseText);\n }\n };\n var options = { request: xhr };\n if (!!ChoicesRestful.onBeforeSendRequest) {\n ChoicesRestful.onBeforeSendRequest(this, options);\n }\n this.beforeSendRequest();\n options.request.send();\n }\n public getType(): string {\n return \"choicesByUrl\";\n }\n public get isEmpty(): boolean {\n return (\n !this.url &&\n !this.path &&\n !this.valueName &&\n !this.titleName &&\n !this.imageLinkName\n );\n }\n public getCustomPropertiesNames(): Array {\n var properties = this.getCustomProperties();\n var res = new Array();\n for (var i = 0; i < properties.length; i++) {\n res.push(this.getCustomPropertyName(properties[i].name));\n }\n return res;\n }\n private getCustomPropertyName(propertyName: string): string {\n return propertyName + \"Name\";\n }\n private getCustomProperties(): Array {\n var properties = Serializer.getProperties(this.itemValueType);\n var res = [];\n for (var i = 0; i < properties.length; i++) {\n if (\n properties[i].name === \"value\" ||\n properties[i].name === \"text\" ||\n properties[i].name === \"visibleIf\" ||\n properties[i].name === \"enableIf\"\n )\n continue;\n res.push(properties[i]);\n }\n return res;\n }\n public setData(json: any) {\n this.clear();\n if (json.url) this.url = json.url;\n if (json.path) this.path = json.path;\n if (json.valueName) this.valueName = json.valueName;\n if (json.titleName) this.titleName = json.titleName;\n if (json.imageLinkName) this.imageLinkName = json.imageLinkName;\n if (json.allowEmptyResponse !== undefined)\n this.allowEmptyResponse = json.allowEmptyResponse;\n if (json.attachOriginalItems !== undefined)\n this.attachOriginalItems = json.attachOriginalItems;\n var properties = this.getCustomPropertiesNames();\n for (var i = 0; i < properties.length; i++) {\n if (json[properties[i]]) (this)[properties[i]] = json[properties[i]];\n }\n }\n public getData(): any {\n if (this.isEmpty) return null;\n var res: any = {};\n if (this.url) res[\"url\"] = this.url;\n if (this.path) res[\"path\"] = this.path;\n if (this.valueName) res[\"valueName\"] = this.valueName;\n if (this.titleName) res[\"titleName\"] = this.titleName;\n if (this.imageLinkName) res[\"imageLinkName\"] = this.imageLinkName;\n if (this.allowEmptyResponse)\n res[\"allowEmptyResponse\"] = this.allowEmptyResponse;\n if (this.attachOriginalItems)\n res[\"attachOriginalItems\"] = this.attachOriginalItems;\n var properties = this.getCustomPropertiesNames();\n for (var i = 0; i < properties.length; i++) {\n if ((this)[properties[i]])\n res[properties[i]] = (this)[properties[i]];\n }\n return res;\n }\n /**\n * Gets or sets a link to a web service. You can use text preprocessing here.\n * For example, the following url: _https://restcountries.eu/rest/v2/region/{region}_ is changed based on the _region_ question's value.\n * SurveyJS automatically gets data from the web service when the value of the _region_ question changes.\n * @see path\n * @see valueName\n * @see titleName\n * @see [Example: RESTful Dropdown](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull)\n * @see [Docs: Fill Choices from a RESTful Service](https://surveyjs.io/Documentation/Library/?id=LibraryOverview#fill-the-choices-from-a-restful-service)\n */\n public get url(): string {\n return this.getPropertyValue(\"url\", \"\");\n }\n public set url(val: string) {\n this.setPropertyValue(\"url\", val);\n this.isUsingCacheFromUrl = undefined;\n if (!val) return;\n if (val.indexOf(ChoicesRestful.cacheText) > -1) {\n this.isUsingCacheFromUrl = true;\n } else {\n if (val.indexOf(ChoicesRestful.noCacheText) > -1) {\n this.isUsingCacheFromUrl = false;\n }\n }\n }\n /**\n * Use this property, if a web service returns a lot of information and you need only a part of it.\n * For example, a web service returns a list of countries and a list of capitals.\n * If you need a list of countries, set a correct path from which SurveyJS obtains the data, like: _DataList1\\DataList2_\n * @see url\n * @see valueName\n * @see titleName\n * @see [Example: RESTful Dropdown](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull)\n * @see [Docs: Fill Choices from a RESTful Service](https://surveyjs.io/Documentation/Library/?id=LibraryOverview#fill-the-choices-from-a-restful-service)\n */\n\n public get path(): string {\n return this.getPropertyValue(\"path\", \"\");\n }\n public set path(val: string) {\n this.setPropertyValue(\"path\", val);\n }\n /**\n * Gets or sets the name of a property (in the obtained data object) to which SurveyJS binds to provide values for choice items.\n * @see url\n * @see path\n * @see titleName\n * @see [Example: RESTful Dropdown](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull)\n * @see [Docs: Fill Choices from a RESTful Service](https://surveyjs.io/Documentation/Library/?id=LibraryOverview#fill-the-choices-from-a-restful-service)\n */\n\n public get valueName(): string {\n return this.getPropertyValue(\"valueName\", \"\");\n }\n public set valueName(val: string) {\n this.setPropertyValue(\"valueName\", val);\n }\n /**\n * Gets or sets the name of a property (in the obtained data object) to which SurveyJS binds to provide display texts for choice items.\n * @see url\n * @see path\n * @see valueeName\n * @see [Example: RESTful Dropdown](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull)\n * @see [Docs: Fill Choices from a RESTful Service](https://surveyjs.io/Documentation/Library/?id=LibraryOverview#fill-the-choices-from-a-restful-service)\n */\n\n public get titleName(): string {\n return this.getPropertyValue(\"titleName\", \"\");\n }\n public set titleName(val: string) {\n this.setPropertyValue(\"titleName\", val);\n }\n public get imageLinkName(): string {\n return this.getPropertyValue(\"imageLinkName\", \"\");\n }\n public set imageLinkName(val: string) {\n this.setPropertyValue(\"imageLinkName\", val);\n }\n public get allowEmptyResponse(): boolean {\n return this.getPropertyValue(\"allowEmptyResponse\", false);\n }\n public set allowEmptyResponse(val: boolean) {\n this.setPropertyValue(\"allowEmptyResponse\", val);\n }\n public get attachOriginalItems(): boolean {\n return this.getPropertyValue(\"attachOriginalItems\", false);\n }\n public set attachOriginalItems(val: boolean) {\n this.setPropertyValue(\"attachOriginalItems\", val);\n }\n public get itemValueType(): string {\n if (!this.owner) return \"itemvalue\";\n var prop = Serializer.findProperty(this.owner.getType(), \"choices\");\n if (!prop) return \"itemvalue\";\n if (prop.type == \"itemvalue[]\") return \"itemvalue\";\n return prop.type;\n }\n public clear() {\n this.url = \"\";\n this.path = \"\";\n this.valueName = \"\";\n this.titleName = \"\";\n this.imageLinkName = \"\";\n var properties = this.getCustomPropertiesNames();\n for (var i = 0; i < properties.length; i++) {\n if ((this)[properties[i]]) (this)[properties[i]] = \"\";\n }\n }\n protected beforeSendRequest() {\n if (!!this.beforeSendRequestCallback) {\n this.beforeSendRequestCallback();\n }\n }\n protected onLoad(result: any, loadingObjHash: string = null) {\n if (!loadingObjHash) {\n loadingObjHash = this.objHash;\n }\n var items = new Array();\n var updatedResult = this.getResultAfterPath(result);\n if (updatedResult && updatedResult[\"length\"]) {\n for (var i = 0; i < updatedResult.length; i++) {\n var itemValue = updatedResult[i];\n if (!itemValue) continue;\n var value = !!this.getItemValueCallback\n ? this.getItemValueCallback(itemValue)\n : this.getValue(itemValue);\n var item = new ItemValue(value);\n this.setTitle(item, itemValue);\n this.setCustomProperties(item, itemValue);\n if (this.attachOriginalItems) {\n item.originalItem = itemValue;\n }\n var imageLink = this.getImageLink(itemValue);\n if (!!imageLink) {\n item.imageLink = imageLink;\n }\n items.push(item);\n }\n } else {\n if (!this.allowEmptyResponse) {\n this.error = new WebRequestEmptyError(null, this.owner);\n }\n }\n if (this.updateResultCallback) {\n items = this.updateResultCallback(items, result);\n }\n if (this.isUsingCache) {\n ChoicesRestful.itemsResult[loadingObjHash] = items;\n }\n this.callResultCallback(items, loadingObjHash);\n ChoicesRestful.unregisterSameRequests(this, items);\n }\n protected callResultCallback(\n items: Array,\n loadingObjHash: string\n ) {\n if (loadingObjHash != this.objHash) return;\n this.getResultCallback(items);\n }\n private setCustomProperties(item: ItemValue, itemValue: any) {\n var properties = this.getCustomProperties();\n for (var i = 0; i < properties.length; i++) {\n var prop = properties[i];\n var val = this.getValueCore(\n itemValue,\n this.getPropertyBinding(prop.name)\n );\n if (!this.isValueEmpty(val)) {\n (item)[prop.name] = val;\n }\n }\n }\n private getPropertyBinding(propertyName: string) {\n if ((this)[this.getCustomPropertyName(propertyName)])\n return (this)[this.getCustomPropertyName(propertyName)];\n if ((this)[propertyName]) return (this)[propertyName];\n return propertyName;\n }\n private onError(status: string, response: string) {\n this.error = new WebRequestError(status, response, this.owner);\n this.doEmptyResultCallback(response);\n ChoicesRestful.unregisterSameRequests(this, []);\n }\n private getResultAfterPath(result: any) {\n if (!result) return result;\n if (!this.processedPath) return result;\n var pathes = this.getPathes();\n for (var i = 0; i < pathes.length; i++) {\n result = result[pathes[i]];\n if (!result) return null;\n }\n return result;\n }\n private getPathes(): Array {\n var pathes = [];\n if (this.processedPath.indexOf(\";\") > -1) {\n pathes = this.path.split(\";\");\n } else {\n pathes = this.processedPath.split(\",\");\n }\n if (pathes.length == 0) pathes.push(this.processedPath);\n return pathes;\n }\n private getValue(item: any): any {\n if (!item) return null;\n if (this.valueName) return this.getValueCore(item, this.valueName);\n if (!(item instanceof Object)) return item;\n var len = Object.keys(item).length;\n if (len < 1) return null;\n return item[Object.keys(item)[0]];\n }\n private setTitle(item: ItemValue, itemValue: any): any {\n var title = this.titleName ? this.titleName : \"title\";\n var val = this.getValueCore(itemValue, title);\n if (!val) return;\n if (typeof val === \"string\") {\n item.text = val;\n } else {\n item.locText.setJson(val);\n }\n }\n private getImageLink(item: any): any {\n var imageLink = this.imageLinkName ? this.imageLinkName : \"imageLink\";\n return this.getValueCore(item, imageLink);\n }\n private getValueCore(item: any, property: string): any {\n if (!item) return null;\n if (property.indexOf(\".\") < 0) return item[property];\n var properties = property.split(\".\");\n for (var i = 0; i < properties.length; i++) {\n item = item[properties[i]];\n if (!item) return null;\n }\n return item;\n }\n private get objHash() {\n return (\n this.processedUrl +\n \";\" +\n this.processedPath +\n \";\" +\n this.valueName +\n \";\" +\n this.titleName +\n \";\" +\n this.imageLinkName\n );\n }\n}\n\n/**\n * Obsolete, please use ChoicesRestful\n */\nexport class ChoicesRestfull extends ChoicesRestful {\n public static get EncodeParameters(): boolean {\n return ChoicesRestful.EncodeParameters;\n }\n public static set EncodeParameters(val: boolean) {\n ChoicesRestful.EncodeParameters = val;\n }\n public static clearCache() {\n ChoicesRestful.clearCache();\n }\n public static get onBeforeSendRequest(): (\n sender: ChoicesRestful,\n options: { request: XMLHttpRequest }\n ) => void {\n return ChoicesRestful.onBeforeSendRequest;\n }\n public static set onBeforeSendRequest(\n val: (sender: ChoicesRestful, options: { request: XMLHttpRequest }) => void\n ) {\n ChoicesRestful.onBeforeSendRequest = val;\n }\n}\n\nSerializer.addClass(\n \"choicesByUrl\",\n [\n \"url\",\n \"path\",\n \"valueName\",\n \"titleName\",\n {\n name: \"imageLinkName\",\n visibleIf: function(obj: any) {\n return !!obj && !!obj.owner && obj.owner.getType() == \"imagepicker\";\n },\n },\n { name: \"allowEmptyResponse:boolean\", default: false },\n { name: \"attachOriginalItems:boolean\", default: false, visible: false },\n ],\n function() {\n return new ChoicesRestful();\n }\n);\n","import { Helpers, HashTable } from \"./helpers\";\n\nexport class ProcessValue {\n public values: HashTable = null;\n public properties: HashTable = null;\n constructor() {}\n public getFirstName(text: string, obj: any = null): string {\n if (!text) return text;\n var res = \"\";\n if (!!obj) {\n res = this.getFirstPropertyName(text, obj);\n if (!!res) return res;\n }\n for (var i = 0; i < text.length; i++) {\n var ch = text[i];\n if (ch == \".\" || ch == \"[\") break;\n res += ch;\n }\n return res;\n }\n public hasValue(text: string, values: HashTable = null): boolean {\n if (!values) values = this.values;\n var res = this.getValueCore(text, values);\n return res.hasValue;\n }\n public getValue(text: string, values: HashTable = null): any {\n if (!values) values = this.values;\n var res = this.getValueCore(text, values);\n return res.value;\n }\n public setValue(obj: any, text: string, value: any) {\n if (!text) return;\n var nonNestedObj = this.getNonNestedObject(obj, text, true);\n if (!nonNestedObj) return;\n obj = nonNestedObj.value;\n text = nonNestedObj.text;\n if (!!obj && !!text) {\n obj[text] = value;\n }\n }\n public getValueInfo(valueInfo: any) {\n if (!!valueInfo.path) {\n valueInfo.value = this.getValueFromPath(valueInfo.path, this.values);\n valueInfo.hasValue =\n valueInfo.value !== null && !Helpers.isValueEmpty(valueInfo.value);\n if (\n !valueInfo.hasValue &&\n valueInfo.path.length > 1 &&\n valueInfo.path[valueInfo.path.length - 1] == \"length\"\n ) {\n valueInfo.hasValue = true;\n valueInfo.value = 0;\n }\n return;\n }\n var res = this.getValueCore(valueInfo.name, this.values);\n valueInfo.value = res.value;\n valueInfo.hasValue = res.hasValue;\n valueInfo.path = res.hasValue ? res.path : null;\n }\n private getValueFromPath(path: Array, values: any): any {\n var index = 0;\n while (!!values && index < path.length) {\n var ind_name = path[index];\n if (\n Helpers.isNumber(ind_name) &&\n Array.isArray(values) &&\n ind_name >= values.length\n )\n return null;\n values = values[ind_name];\n index++;\n }\n return values;\n }\n private getValueCore(text: string, values: any): any {\n var res: any = { hasValue: false, value: null, path: null };\n var curValue = values;\n if (!curValue && curValue !== 0 && curValue !== false) return res;\n if (\n text &&\n text.lastIndexOf(\".length\") > -1 &&\n text.lastIndexOf(\".length\") === text.length - \".length\".length\n ) {\n res.value = 0;\n res.hasValue = true;\n }\n var nonNestedObj = this.getNonNestedObject(curValue, text, false);\n if (!nonNestedObj) return res;\n res.path = nonNestedObj.path;\n res.value = !!nonNestedObj.text\n ? this.getObjectValue(nonNestedObj.value, nonNestedObj.text)\n : nonNestedObj.value;\n res.hasValue = !Helpers.isValueEmpty(res.value);\n return res;\n }\n private getNonNestedObject(obj: any, text: string, createPath: boolean): any {\n var curName = this.getFirstPropertyName(text, obj, createPath);\n var path = !!curName ? [curName] : null;\n while (text != curName && !!obj) {\n var isArray = text[0] == \"[\";\n if (!isArray) {\n if (!curName && text == this.getFirstName(text))\n return { value: obj, text: text, path: path };\n obj = this.getObjectValue(obj, curName);\n if (Helpers.isValueEmpty(obj) && !createPath) return null;\n text = text.substr(curName.length);\n } else {\n var objInArray = this.getObjInArray(obj, text);\n if (!objInArray) return null;\n obj = objInArray.value;\n text = objInArray.text;\n path.push(objInArray.index);\n }\n if (!!text && text[0] == \".\") {\n text = text.substr(1);\n }\n curName = this.getFirstPropertyName(text, obj, createPath);\n if (!!curName) {\n path.push(curName);\n }\n }\n return { value: obj, text: text, path: path };\n }\n private getObjInArray(curValue: any, text: string): any {\n if (!Array.isArray(curValue)) return null;\n var index = 1;\n var str = \"\";\n while (index < text.length && text[index] != \"]\") {\n str += text[index];\n index++;\n }\n text = index < text.length ? text.substr(index + 1) : \"\";\n index = this.getIntValue(str);\n if (index < 0 || index >= curValue.length) return null;\n return { value: curValue[index], text: text, index: index };\n }\n private getFirstPropertyName(\n name: string,\n obj: any,\n createProp: boolean = false\n ): string {\n if (!name) return name;\n if (!obj) obj = {};\n if (obj.hasOwnProperty(name)) return name;\n var nameInLow = name.toLowerCase();\n var A = nameInLow[0];\n var a = A.toUpperCase();\n for (var key in obj) {\n var first = key[0];\n if (first === a || first === A) {\n var keyName = key.toLowerCase();\n if (keyName == nameInLow) return key;\n if (nameInLow.length <= keyName.length) continue;\n var ch = nameInLow[keyName.length];\n if (ch != \".\" && ch != \"[\") continue;\n if (keyName == nameInLow.substr(0, keyName.length)) return key;\n }\n }\n if (createProp && name[0] !== \"[\") {\n var ind = name.indexOf(\".\");\n if (ind > -1) {\n name = name.substr(0, ind);\n obj[name] = {};\n }\n return name;\n }\n return \"\";\n }\n private getObjectValue(obj: any, name: string): any {\n if (!name) return null;\n return obj[name];\n }\n private getIntValue(str: any) {\n if (str == \"0\" || ((str | 0) > 0 && str % 1 == 0)) return Number(str);\n return -1;\n }\n}\n","import { HashTable } from \"./helpers\";\nimport { ProcessValue } from \"./conditionProcessValue\";\n\nimport { Operand, FunctionOperand } from \"./expressions/expressions\";\nimport { ConditionsParser } from \"./conditionsParser\";\n\nexport class ExpressionRunnerBase {\n private expressionValue: string;\n private operand: Operand;\n private processValue = new ProcessValue();\n private parser = new ConditionsParser();\n private isAsyncValue: boolean = false;\n private hasFunctionValue: boolean = false;\n private asyncFuncList: Array;\n\n public constructor(expression: string) {\n this.expression = expression;\n }\n\n public get expression(): string {\n return this.expressionValue;\n }\n\n public set expression(value: string) {\n if (this.expression === value) return;\n this.expressionValue = value;\n this.operand = this.parser.parseExpression(value);\n this.hasFunctionValue = this.canRun() ? this.operand.hasFunction() : false;\n this.isAsyncValue = this.hasFunction()\n ? this.operand.hasAsyncFunction()\n : false;\n }\n\n public getVariables(): Array {\n if (!this.operand) return [];\n\n var variables: Array = [];\n this.operand.setVariables(variables);\n return variables;\n }\n\n public hasFunction(): boolean {\n return this.hasFunctionValue;\n }\n public get isAsync() {\n return this.isAsyncValue;\n }\n\n public canRun(): boolean {\n return !!this.operand;\n }\n\n protected runCore(\n values: HashTable,\n properties: HashTable = null\n ): any {\n if (!this.operand) return null;\n\n this.processValue.values = values;\n this.processValue.properties = properties;\n if (!this.isAsync) return this.runValues();\n this.asyncFuncList = [];\n this.operand.addToAsyncList(this.asyncFuncList);\n for (var i = 0; i < this.asyncFuncList.length; i++) {\n this.asyncFuncList[i].onAsyncReady = () => {\n this.doAsyncFunctionReady();\n };\n }\n for (var i = 0; i < this.asyncFuncList.length; i++) {\n this.asyncFuncList[i].evaluateAsync(this.processValue);\n }\n return false;\n }\n private doAsyncFunctionReady() {\n for (var i = 0; i < this.asyncFuncList.length; i++) {\n if (!this.asyncFuncList[i].isReady) return;\n }\n this.runValues();\n }\n private runValues(): any {\n var res = this.operand.evaluate(this.processValue);\n this.doOnComplete(res);\n return res;\n }\n protected doOnComplete(res: any) {}\n}\n\nexport class ConditionRunner extends ExpressionRunnerBase {\n public onRunComplete: (result: boolean) => void;\n public run(\n values: HashTable,\n properties: HashTable = null\n ): boolean {\n return this.runCore(values, properties) == true;\n }\n protected doOnComplete(res: any) {\n if (!!this.onRunComplete) this.onRunComplete(res == true);\n }\n}\n\nexport class ExpressionRunner extends ExpressionRunnerBase {\n public onRunComplete: (result: any) => void;\n public run(values: HashTable, properties: HashTable = null): any {\n return this.runCore(values, properties);\n }\n protected doOnComplete(res: any) {\n if (!!this.onRunComplete) this.onRunComplete(res);\n }\n}\n","import { Operand, Const } from \"./expressions/expressions\";\nimport { SyntaxError, parse } from \"./expressions/expressionParser\";\n\nexport class ConditionsParserError {\n constructor(public at: number, public code: string) {}\n}\n\nexport class ConditionsParser {\n private conditionError: ConditionsParserError;\n private static parserCache: { [index: string]: Operand } = {};\n\n private patchExpression(text: string) {\n return text\n .replace(/=>/g, \">=\")\n .replace(/=/g, \"!=\")\n .replace(/==/g, \"= \")\n .replace(/equals/g, \"equal \")\n .replace(/notequals/g, \"notequal \");\n }\n\n public createCondition(text: string): Operand {\n return this.parseExpression(text);\n }\n\n public parseExpression(text: string): Operand {\n try {\n var result = ConditionsParser.parserCache[text];\n if (result === undefined) {\n result = parse(this.patchExpression(text));\n if (!result.hasAsyncFunction()) {\n ConditionsParser.parserCache[text] = result;\n }\n }\n return result;\n } catch (e) {\n if (e instanceof SyntaxError) {\n this.conditionError = new ConditionsParserError(\n e.location.start.offset,\n e.message\n );\n }\n }\n }\n\n public get error(): ConditionsParserError {\n return this.conditionError;\n }\n}\n","import { surveyCss } from \"./cssstandard\";\n\nexport var defaultBootstrapCss = {\n root: \"sv_main sv_bootstrap_css\",\n container: \"sv_container\",\n header: \"panel-heading card-header\",\n body: \"panel-body card-block mt-4\",\n bodyEmpty: \"panel-body card-block mt-4 sv_body_empty\",\n footer: \"panel-footer card-footer\",\n title: \"\",\n description: \"\",\n logo: \"sv_logo\",\n logoImage: \"sv_logo__image\",\n headerText: \"sv_header__text\",\n navigationButton: \"\",\n completedPage: \"\",\n navigation: {\n complete: \"btn sv_complete_btn\",\n prev: \"btn sv_prev_btn\",\n next: \"btn sv_next_btn\",\n start: \"btn sv_start_btn\",\n preview: \"btn sv_preview_btn\",\n edit: \"btn sv_edit_btn\",\n },\n progress: \"progress center-block mx-auto mb-4\",\n progressBar: \"progress-bar\",\n progressTextUnderBar: \"sv-hidden\",\n progressButtonsContainerCenter: \"sv_progress-buttons__container-center\",\n progressButtonsContainer: \"sv_progress-buttons__container\",\n progressButtonsImageButtonLeft: \"sv_progress-buttons__image-button-left\",\n progressButtonsImageButtonRight: \"sv_progress-buttons__image-button-right\",\n progressButtonsImageButtonHidden: \"sv_progress-buttons__image-button--hidden\",\n progressButtonsListContainer: \"sv_progress-buttons__list-container\",\n progressButtonsList: \"sv_progress-buttons__list\",\n progressButtonsListElementPassed: \"sv_progress-buttons__list-element--passed\",\n progressButtonsListElementCurrent:\n \"sv_progress-buttons__list-element--current\",\n progressButtonsListElementNonClickable:\n \"sv_progress-buttons__list-element--nonclickable\",\n progressButtonsPageTitle: \"sv_progress-buttons__page-title\",\n progressButtonsPageDescription: \"sv_progress-buttons__page-description\",\n page: {\n root: \"\",\n title: \"\",\n description: \"small\",\n },\n pageTitle: \"\",\n pageDescription: \"small\",\n row: \"sv_row\",\n question: {\n mainRoot: \"sv_qstn\",\n flowRoot: \"sv_q_flow sv_qstn\",\n header: \"\",\n headerLeft: \"title-left\",\n content: \"\",\n contentLeft: \"content-left\",\n titleLeftRoot: \"sv_qstn_left\",\n title: \"\",\n titleExpandable: \"sv_q_title_expandable\",\n number: \"sv_q_num\",\n description: \"small\",\n descriptionUnderInput: \"small\",\n requiredText: \"sv_q_required_text\",\n comment: \"form-control\",\n required: \"\",\n titleRequired: \"\",\n hasError: \"has-error\",\n indent: 20,\n formGroup: \"form-group\",\n },\n panel: {\n title: \"sv_p_title\",\n titleExpandable: \"sv_p_title_expandable\",\n titleOnError: \"\",\n icon: \"sv_panel_icon\",\n iconExpanded: \"sv_expanded\",\n description: \"small sv_p_description\",\n container: \"sv_p_container\",\n footer: \"sv_p_footer\",\n number: \"sv_q_num\",\n requiredText: \"sv_q_required_text\",\n },\n error: {\n root: \"alert alert-danger\",\n icon: \"glyphicon glyphicon-exclamation-sign\",\n item: \"\",\n locationTop: \"sv_qstn_error_top\",\n locationBottom: \"sv_qstn_error_bottom\",\n },\n boolean: {\n root: \"sv_qbln form-inline checkbox\",\n item: \"sv-boolean\",\n control: \"sv-visuallyhidden\",\n itemChecked: \"sv-boolean--checked checked\",\n itemIndeterminate: \"sv-boolean--indeterminate\",\n itemDisabled: \"sv-boolean--disabled\",\n switch: \"sv-boolean__switch\",\n slider: \"sv-boolean__slider\",\n label: \"sv-boolean__label \",\n disabledLabel: \"sv-boolean__label--disabled\",\n materialDecorator: \"sv-item__decorator sv-boolean__decorator \",\n itemDecorator: \"sv-item__svg sv-boolean__svg\",\n checkedPath: \"sv-boolean__checked-path\",\n uncheckedPath: \"sv-boolean__unchecked-path\",\n indeterminatePath: \"sv-boolean__indeterminate-path\",\n },\n checkbox: {\n root: \"sv_qcbc sv_qcbx form-inline\",\n item: \"checkbox\",\n itemChecked: \"checked\",\n itemSelectAll: \"sv_q_checkbox_selectall\",\n itemNone: \"sv_q_checkbox_none\",\n itemInline: \"sv_q_checkbox_inline\",\n itemControl: \"\",\n itemDecorator: \"sv-hidden\",\n label: \"\",\n labelChecked: \"\",\n controlLabel: \"\",\n materialDecorator: \"checkbox-material\",\n other: \"sv_q_checkbox_other form-control\",\n column: \"sv_q_select_column\",\n },\n ranking: {\n root: \"sv-ranking\",\n rootMobileMod: \"sv-ranking--mobile\",\n rootDragMod: \"sv-ranking--drag\",\n item: \"sv-ranking-item\",\n itemContent: \"sv-ranking-item__content\",\n itemIndex: \"sv-ranking-item__index\",\n // itemText: \"sv-ranking-item__text\",\n controlLabel: \"sv-ranking-item__text\",\n itemGhostNode: \"sv-ranking-item__ghost\",\n itemIconContainer: \"sv-ranking-item__icon-container\",\n itemIcon: \"sv-ranking-item__icon\",\n itemIconHoverMod: \"sv-ranking-item__icon--hover\",\n itemIconFocusMod: \"sv-ranking-item__icon--focus\",\n itemGhostMod: \"sv-ranking-item--ghost\",\n itemDragMod: \"sv-ranking-item--drag\",\n },\n comment: \"form-control\",\n dropdown: {\n root: \"\",\n control: \"form-control\",\n other: \"sv_q_dd_other form-control\",\n },\n html: { root: \"\" },\n image: { root: \"sv_q_image\", image: \"sv_image_image\" },\n matrix: {\n root: \"table sv_q_matrix\",\n label: \"sv_q_m_label\",\n itemChecked: \"checked\",\n itemDecorator: \"sv-hidden\",\n cellText: \"sv_q_m_cell_text\",\n cellTextSelected: \"sv_q_m_cell_selected bg-primary\",\n cellLabel: \"sv_q_m_cell_label\",\n },\n matrixdropdown: {\n root: \"table\",\n cell: \"sv_matrix_cell\",\n headerCell: \"sv_matrix_cell_header\",\n row: \"sv_matrix_row\",\n detailRow: \"sv_matrix_detail_row\",\n detailRowText: \"sv_matrix_cell_detail_rowtext\",\n detailCell: \"sv_matrix_cell_detail\",\n detailButton: \"sv_matrix_cell_detail_button\",\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\n detailIcon: \"sv_detail_panel_icon\",\n detailIconExpanded: \"sv_detail_expanded\",\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\n },\n matrixdynamic: {\n root: \"table\",\n button: \"button\",\n buttonAdd: \"\",\n buttonRemove: \"\",\n iconAdd: \"\",\n iconRemove: \"\",\n headerCell: \"sv_matrix_cell_header\",\n row: \"sv_matrix_row\",\n detailRow: \"sv_matrix_detail_row\",\n detailCell: \"sv_matrix_cell_detail\",\n detailButton: \"sv_matrix_cell_detail_button\",\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\n detailIcon: \"sv_detail_panel_icon\",\n detailIconExpanded: \"sv_detail_expanded\",\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\n emptyRowsSection: \"sv_matrix_empty_rows_section\",\n emptyRowsText: \"sv_matrix_empty_rows_text\",\n emptyRowsButton: \"\",\n },\n paneldynamic: {\n root: \"\",\n navigation: \"sv-paneldynamic__navigation\",\n progressTop: \"sv-paneldynamic__progress sv-paneldynamic__progress--top\",\n progressBottom:\n \"sv-paneldynamic__progress sv-paneldynamic__progress--bottom\",\n title: \"sv-title sv-question__title\",\n button: \"button\",\n buttonAdd: \"button sv-paneldynamic__add-btn\",\n buttonRemove: \"sv_p_remove_btn\",\n buttonRemoveRight: \"button sv-paneldynamic__remove-btn--right\",\n buttonPrev: \"sv-paneldynamic__prev-btn\",\n buttonNext: \"sv-paneldynamic__next-btn\",\n progressContainer: \"sv-paneldynamic__progress-container\",\n progress: \"sv-progress\",\n progressBar: \"sv-progress__bar\",\n progressText: \"sv-paneldynamic__progress-text\",\n panelWrapper: \"sv_p_wrapper\",\n panelWrapperInRow: \"sv_p_wrapper_in_row\",\n },\n multipletext: {\n root: \"table\",\n itemTitle: \"\",\n itemValue: \"sv_q_mt_item_value form-control\",\n },\n radiogroup: {\n root: \"sv_qcbc form-inline\",\n item: \"radio\",\n itemChecked: \"checked\",\n itemInline: \"sv_q_radiogroup_inline\",\n label: \"\",\n labelChecked: \"\",\n itemControl: \"\",\n itemDecorator: \"sv-hidden\",\n controlLabel: \"\",\n materialDecorator: \"circle\",\n other: \"sv_q_radiogroup_other form-control\",\n clearButton: \"sv_q_radiogroup_clear button\",\n column: \"sv_q_select_column\",\n },\n imagepicker: {\n root: \"sv_imgsel\",\n item: \"sv_q_imgsel\",\n itemChecked: \"checked\",\n itemInline: \"sv_q_imagepicker_inline\",\n label: \"sv_q_imgsel_label\",\n itemControl: \"sv_q_imgsel_control_item\",\n image: \"sv_q_imgsel_image\",\n itemText: \"sv_q_imgsel_text\",\n clearButton: \"sv_q_radiogroup_clear\",\n },\n rating: {\n root: \"btn-group\",\n item: \"btn btn-default btn-secondary\",\n selected: \"active\",\n minText: \"sv_q_rating_min_text\",\n itemText: \"sv_q_rating_item_text\",\n maxText: \"sv_q_rating_max_text\",\n disabled: \"\",\n },\n text: \"form-control\",\n expression: \"form-control\",\n file: {\n root: \"sv_q_file\",\n placeholderInput: \"sv_q_file_placeholder\",\n preview: \"sv_q_file_preview\",\n removeButton: \"sv_q_file_remove_button\",\n fileInput: \"sv_q_file_input\",\n removeFile: \"sv_q_file_remove\",\n removeFileSvg: \"sv-hidden\",\n fileDecorator: \"sv-hidden\",\n fileSignBottom: \"sv-hidden\",\n removeButtonBottom: \"sv-hidden\",\n },\n signaturepad: {\n root: \"sv_q_signaturepad sjs_sp_container\",\n controls: \"sjs_sp_controls\",\n clearButton: \"sjs_sp_clear\",\n },\n saveData: {\n root: \"\",\n saving: \"alert alert-info\",\n error: \"alert alert-danger\",\n success: \"alert alert-success\",\n saveAgainButton: \"\",\n },\n window: {\n root: \"modal-content\",\n body: \"modal-body\",\n header: {\n root: \"modal-header panel-title\",\n title: \"pull-left\",\n button: \"glyphicon pull-right\",\n buttonExpanded: \"glyphicon pull-right glyphicon-chevron-up\",\n buttonCollapsed: \"glyphicon pull-right glyphicon-chevron-down\",\n },\n },\n};\n(surveyCss)[\"bootstrap\"] = defaultBootstrapCss;\n","import { surveyCss } from \"./cssstandard\";\n\nexport var defaultBootstrapMaterialCss = {\n root: \"sv_main sv_bootstrapmaterial_css\",\n container: \"sv_container\",\n header: \"card-heading\",\n body: \"card-body\",\n bodyEmpty: \"card-body sv_body_empty\",\n footer: \"card-footer\",\n title: \"\",\n description: \"\",\n logo: \"sv_logo\",\n logoImage: \"sv_logo__image\",\n headerText: \"sv_header__text\",\n navigationButton: \"\",\n completedPage: \"\",\n navigation: {\n complete: \"btn sv_complete_btn btn-primary\",\n prev: \"btn sv_prev_btn btn-primary\",\n next: \"btn sv_next_btn btn-primary\",\n start: \"btn sv_start_btn btn-primary\",\n preview: \"btn sv_preview_btn btn-primary\",\n edit: \"btn sv_edit_btn btn-primary\",\n },\n progress: \"progress center-block mx-auto mb-4\",\n progressBar: \"progress-bar\",\n progressTextUnderBar: \"sv-hidden\",\n progressButtonsContainerCenter: \"sv_progress-buttons__container-center\",\n progressButtonsContainer: \"sv_progress-buttons__container\",\n progressButtonsImageButtonLeft: \"sv_progress-buttons__image-button-left\",\n progressButtonsImageButtonRight: \"sv_progress-buttons__image-button-right\",\n progressButtonsImageButtonHidden: \"sv_progress-buttons__image-button--hidden\",\n progressButtonsListContainer: \"sv_progress-buttons__list-container\",\n progressButtonsList: \"sv_progress-buttons__list\",\n progressButtonsListElementPassed: \"sv_progress-buttons__list-element--passed\",\n progressButtonsListElementCurrent:\n \"sv_progress-buttons__list-element--current\",\n progressButtonsListElementNonClickable:\n \"sv_progress-buttons__list-element--nonclickable\",\n progressButtonsPageTitle: \"sv_progress-buttons__page-title\",\n progressButtonsPageDescription: \"sv_progress-buttons__page-description\",\n page: {\n root: \"\",\n title: \"\",\n description: \"small\",\n },\n pageTitle: \"\",\n pageDescription: \"small\",\n row: \"sv_row\",\n question: {\n mainRoot: \"sv_qstn form-group bmd-form-group\",\n flowRoot: \"sv_q_flow form-group bmd-form-group\",\n header: \"\",\n headerLeft: \"title-left\",\n content: \"\",\n contentLeft: \"content-left\",\n titleLeftRoot: \"sv_qstn_left\",\n requiredText: \"sv_q_required_text\",\n title: \"\",\n titleExpandable: \"sv_q_title_expandable\",\n number: \"sv_q_num\",\n description: \"small\",\n descriptionUnderInput: \"small\",\n comment: \"form-control\",\n required: \"\",\n titleRequired: \"\",\n hasError: \"has-error\",\n indent: 20,\n formGroup: \"form-group bmd-form-group\",\n },\n panel: {\n title: \"sv_p_title\",\n titleExpandable: \"sv_p_title_expandable\",\n titleOnError: \"\",\n icon: \"sv_panel_icon\",\n iconExpanded: \"sv_expanded\",\n description: \"small sv_p_description\",\n container: \"sv_p_container\",\n footer: \"sv_p_footer\",\n number: \"sv_q_num\",\n requiredText: \"sv_q_required_text\",\n },\n error: {\n root: \"alert alert-danger\",\n icon: \"glyphicon glyphicon-exclamation-sign\",\n item: \"\",\n locationTop: \"sv_qstn_error_top\",\n locationBottom: \"sv_qstn_error_bottom\",\n },\n\n boolean: {\n root: \"sv_qbln checkbox\",\n item: \"sv-boolean\",\n control: \"sv-visuallyhidden\",\n itemChecked: \"sv-boolean--checked checked\",\n itemIndeterminate: \"sv-boolean--indeterminate\",\n itemDisabled: \"sv-boolean--disabled\",\n switch: \"sv-boolean__switch\",\n slider: \"sv-boolean__slider\",\n label: \"sv-boolean__label \",\n disabledLabel: \"sv-boolean__label--disabled\",\n materialDecorator: \"sv-item__decorator sv-boolean__decorator \",\n itemDecorator: \"sv-item__svg sv-boolean__svg\",\n checkedPath: \"sv-boolean__checked-path\",\n uncheckedPath: \"sv-boolean__unchecked-path\",\n indeterminatePath: \"sv-boolean__indeterminate-path\",\n },\n checkbox: {\n root: \"sv_qcbx\",\n item: \"checkbox\",\n itemChecked: \"checked\",\n itemSelectAll: \"sv_q_checkbox_selectall\",\n itemNone: \"sv_q_checkbox_none\",\n itemInline: \"sv_q_checkbox_inline\",\n itemDecorator: \"sv-hidden\",\n itemControl: \"\",\n label: \"\",\n labelChecked: \"\",\n controlLabel: \"\",\n materialDecorator: \"checkbox-decorator\",\n other: \"sv_q_checkbox_other form-control\",\n column: \"sv_q_select_column\",\n },\n ranking: {\n root: \"sv-ranking\",\n rootMobileMod: \"sv-ranking--mobile\",\n rootDragMod: \"sv-ranking--drag\",\n item: \"sv-ranking-item\",\n itemContent: \"sv-ranking-item__content\",\n itemIndex: \"sv-ranking-item__index\",\n // itemText: \"sv-ranking-item__text\",\n controlLabel: \"sv-ranking-item__text\",\n itemGhostNode: \"sv-ranking-item__ghost\",\n itemIconContainer: \"sv-ranking-item__icon-container\",\n itemIcon: \"sv-ranking-item__icon\",\n itemIconHoverMod: \"sv-ranking-item__icon--hover\",\n itemIconFocusMod: \"sv-ranking-item__icon--focus\",\n itemGhostMod: \"sv-ranking-item--ghost\",\n itemDragMod: \"sv-ranking-item--drag\",\n },\n comment: \"form-control\",\n dropdown: {\n root: \"\",\n control: \"form-control\",\n other: \"sv_q_dd_other form-control\",\n },\n html: { root: \"\" },\n image: { root: \"sv_q_image\", image: \"sv_image_image\" },\n matrix: {\n root: \"table sv_q_matrix\",\n row: \"form-group bmd-form-group\",\n label: \"sv_q_m_label radio-inline\",\n cellText: \"sv_q_m_cell_text\",\n cellTextSelected: \"sv_q_m_cell_selected bg-primary\",\n cellLabel: \"sv_q_m_cell_label\",\n itemValue: \"form-control\",\n itemChecked: \"checked\",\n itemDecorator: \"sv-hidden\",\n materialDecorator: \"bmd-radio\",\n },\n matrixdropdown: {\n root: \"table\",\n itemValue: \"form-group bmd-form-group\",\n headerCell: \"sv_matrix_cell_header\",\n row: \"sv_matrix_row\",\n detailRow: \"sv_matrix_detail_row\",\n detailRowText: \"sv_matrix_cell_detail_rowtext\",\n detailCell: \"sv_matrix_cell_detail\",\n detailButton: \"sv_matrix_cell_detail_button\",\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\n detailIcon: \"sv_detail_panel_icon\",\n detailIconExpanded: \"sv_detail_expanded\",\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\n },\n matrixdynamic: {\n mainRoot: \"sv_qstn\",\n flowRoot: \"sv_q_flow\",\n root: \"table\",\n button: \"btn btn-primary\",\n itemValue: \"form-group bmd-form-group\",\n buttonAdd: \"\",\n buttonRemove: \"\",\n iconAdd: \"\",\n iconRemove: \"\",\n headerCell: \"sv_matrix_cell_header\",\n row: \"sv_matrix_row\",\n detailRow: \"sv_matrix_detail_row\",\n detailCell: \"sv_matrix_cell_detail\",\n detailButton: \"sv_matrix_cell_detail_button\",\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\n detailIcon: \"sv_detail_panel_icon\",\n detailIconExpanded: \"sv_detail_expanded\",\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\n emptyRowsSection: \"sv_matrix_empty_rows_section\",\n emptyRowsText: \"sv_matrix_empty_rows_text\",\n emptyRowsButton: \"\",\n },\n paneldynamic: {\n root: \"\",\n navigation: \"sv-paneldynamic__navigation\",\n progressTop: \"sv-paneldynamic__progress sv-paneldynamic__progress--top\",\n progressBottom:\n \"sv-paneldynamic__progress sv-paneldynamic__progress--bottom\",\n title: \"sv-title sv-question__title\",\n button: \"button\",\n buttonAdd: \"button sv-paneldynamic__add-btn btn btn-primary\",\n buttonRemove: \"button sv-paneldynamic__remove-btn btn btn-primary\",\n buttonRemoveRight: \"sv-paneldynamic__remove-btn--right\",\n buttonPrev: \"sv-paneldynamic__prev-btn\",\n buttonNext: \"sv-paneldynamic__next-btn\",\n progressContainer: \"sv-paneldynamic__progress-container\",\n progress: \"sv-progress\",\n progressBar: \"sv-progress__bar\",\n progressText: \"sv-paneldynamic__progress-text\",\n panelWrapper: \"sv_p_wrapper\",\n panelWrapperInRow: \"sv_p_wrapper_in_row\",\n },\n multipletext: {\n root: \"table\",\n itemTitle: \"\",\n row: \"form-group bmd-form-group\",\n itemValue: \"sv_q_mt_item_value form-control\",\n },\n radiogroup: {\n root: \"\",\n item: \"radio\",\n itemChecked: \"checked\",\n itemInline: \"sv_q_radiogroup_inline\",\n itemDecorator: \"sv-hidden\",\n label: \"\",\n labelChecked: \"\",\n itemControl: \"\",\n controlLabel: \"sv_q_radiogroup_control_label\",\n materialDecorator: \"bmd-radio\",\n other: \"sv_q_radiogroup_other form-control\",\n clearButton: \"sv_q_radiogroup_clear button btn btn-primary\",\n column: \"sv_q_select_column\",\n },\n imagepicker: {\n root: \"sv_imgsel\",\n item: \"sv_q_imgsel\",\n itemChecked: \"checked\",\n itemInline: \"sv_q_imagepicker_inline\",\n label: \"sv_q_imgsel_label\",\n itemControl: \"sv_q_imgsel_control_item\",\n image: \"sv_q_imgsel_image\",\n itemText: \"sv_q_imgsel_text\",\n clearButton: \"sv_q_radiogroup_clear\",\n },\n rating: {\n root: \"btn-group\",\n item: \"btn btn-default btn-secondary\",\n selected: \"active\",\n minText: \"sv_q_rating_min_text\",\n itemText: \"sv_q_rating_item_text\",\n maxText: \"sv_q_rating_max_text\",\n disabled: \"\",\n },\n text: \"form-control\",\n expression: \"form-control\",\n file: {\n root: \"form-group bmd-form-group is-fileinput sv_q_file\",\n placeholderInput: \"\",\n preview: \"sv_q_file_preview\",\n removeButton: \"sv_q_file_remove_button\",\n fileInput: \"sv_q_file_input\",\n removeFile: \"sv_q_file_remove\",\n removeFileSvg: \"sv-hidden\",\n fileDecorator: \"sv-hidden\",\n fileSignBottom: \"sv-hidden\",\n removeButtonBottom: \"sv-hidden\",\n },\n signaturepad: {\n root: \"sv_q_signaturepad sjs_sp_container\",\n controls: \"sjs_sp_controls\",\n clearButton: \"sjs_sp_clear\",\n },\n saveData: {\n root: \"\",\n saving: \"alert alert-info\",\n error: \"alert alert-danger\",\n success: \"alert alert-success\",\n saveAgainButton: \"\",\n },\n window: {\n root: \"modal-content\",\n body: \"modal-body\",\n header: {\n root: \"modal-header card-title\",\n title: \"pull-left\",\n button: \"glyphicon pull-right\",\n buttonExpanded: \"glyphicon pull-right glyphicon-chevron-up\",\n buttonCollapsed: \"glyphicon pull-right glyphicon-chevron-down\",\n },\n },\n};\n(surveyCss)[\"bootstrapmaterial\"] = defaultBootstrapMaterialCss;\n","import { surveyCss } from \"./cssstandard\";\nexport var modernCss = {\n root: \"sv-root-modern\",\n container: \"sv-container-modern\",\n header: \"sv-title sv-container-modern__title\",\n body: \"sv-body\",\n bodyEmpty: \"sv-body sv-body--empty\",\n footer: \"sv-footer sv-body__footer sv-clearfix\",\n title: \"\",\n description: \"\",\n logo: \"sv-logo\",\n logoImage: \"sv-logo__image\",\n headerText: \"sv-header__text\",\n navigationButton: \"\",\n completedPage: \"sv-completedpage\",\n navigation: {\n complete: \"sv-btn sv-footer__complete-btn\",\n prev: \"sv-btn sv-footer__prev-btn\",\n next: \"sv-btn sv-footer__next-btn\",\n start: \"sv-btn sv-footer__start-btn\",\n preview: \"sv-btn sv-footer__preview-btn\",\n edit: \"sv-btn sv-footer__edit-btn\",\n },\n panel: {\n title: \"sv-title sv-panel__title\",\n titleExpandable: \"sv-panel__title--expandable\",\n titleOnError: \"sv-panel__title--error\",\n description: \"sv-description sv-panel__description\",\n container: \"sv-panel sv-row__panel\",\n content: \"sv-panel__content\",\n icon: \"sv-panel__icon\",\n iconExpanded: \"sv-panel__icon--expanded\",\n footer: \"sv-panel__footer\",\n requiredText: \"sv-panel__required-text\",\n number: \"sv-question__num\",\n },\n paneldynamic: {\n root: \"sv-paneldynamic\",\n navigation: \"sv-paneldynamic__navigation\",\n title: \"sv-title sv-question__title\",\n button: \"sv-btn\",\n buttonRemove: \"sv-paneldynamic__remove-btn\",\n buttonRemoveRight: \"sv-paneldynamic__remove-btn--right\",\n buttonAdd: \"sv-paneldynamic__add-btn\",\n progressTop: \"sv-paneldynamic__progress sv-paneldynamic__progress--top\",\n progressBottom:\n \"sv-paneldynamic__progress sv-paneldynamic__progress--bottom\",\n buttonPrev: \"sv-paneldynamic__prev-btn\",\n buttonNext: \"sv-paneldynamic__next-btn\",\n progressContainer: \"sv-paneldynamic__progress-container\",\n progress: \"sv-progress\",\n progressBar: \"sv-progress__bar\",\n progressText: \"sv-paneldynamic__progress-text\",\n separator: \"sv-paneldynamic__separator\",\n panelWrapper: \"sv-paneldynamic__panel-wrapper\",\n panelWrapperInRow: \"sv-paneldynamic__panel-wrapper--in-row\",\n },\n progress: \"sv-progress sv-body__progress\",\n progressBar: \"sv-progress__bar\",\n progressText: \"sv-progress__text\",\n progressTextInBar: \"sv-hidden\",\n progressButtonsContainerCenter: \"sv_progress-buttons__container-center\",\n progressButtonsContainer: \"sv_progress-buttons__container\",\n progressButtonsImageButtonLeft: \"sv_progress-buttons__image-button-left\",\n progressButtonsImageButtonRight: \"sv_progress-buttons__image-button-right\",\n progressButtonsImageButtonHidden: \"sv_progress-buttons__image-button--hidden\",\n progressButtonsListContainer: \"sv_progress-buttons__list-container\",\n progressButtonsList: \"sv_progress-buttons__list\",\n progressButtonsListElementPassed: \"sv_progress-buttons__list-element--passed\",\n progressButtonsListElementCurrent:\n \"sv_progress-buttons__list-element--current\",\n progressButtonsListElementNonClickable:\n \"sv_progress-buttons__list-element--nonclickable\",\n progressButtonsPageTitle: \"sv_progress-buttons__page-title\",\n progressButtonsPageDescription: \"sv_progress-buttons__page-description\",\n page: {\n root: \"sv-page sv-body__page\",\n title: \"sv-title sv-page__title\",\n description: \"sv-description sv-page__description\",\n },\n pageTitle: \"sv-title sv-page__title\",\n pageDescription: \"sv-description sv-page__description\",\n row: \"sv-row sv-clearfix\",\n question: {\n mainRoot: \"sv-question sv-row__question\",\n flowRoot: \"sv-question sv-row__question sv-row__question--flow\",\n asCell: \"sv-table__cell\",\n header: \"sv-question__header\",\n headerLeft: \"sv-question__header--location--left\",\n headerTop: \"sv-question__header--location--top\",\n headerBottom: \"sv-question__header--location--bottom\",\n content: \"sv-question__content\",\n contentLeft: \"sv-question__content--left\",\n titleLeftRoot: \"\",\n titleOnAnswer: \"sv-question__title--answer\",\n titleOnError: \"sv-question__title--error\",\n title: \"sv-title sv-question__title\",\n titleExpandable: \"sv-question__title--expandable\",\n icon: \"sv-question__icon\",\n iconExpanded: \"sv-question__icon--expanded\",\n requiredText: \"sv-question__required-text\",\n number: \"sv-question__num\",\n description: \"sv-description sv-question__description\",\n descriptionUnderInput: \"sv-description sv-question__description\",\n comment: \"sv-comment\",\n required: \"sv-question--required\",\n titleRequired: \"sv-question__title--required\",\n indent: 20,\n footer: \"sv-question__footer\",\n formGroup: \"sv-question__form-group\",\n hasError: \"\",\n disabled: \"sv-question--disabled\",\n },\n image: { root: \"sv-image\", image: \"sv_image_image\" },\n error: {\n root: \"sv-question__erbox\",\n icon: \"\",\n item: \"\",\n locationTop: \"sv-question__erbox--location--top\",\n locationBottom: \"sv-question__erbox--location--bottom\",\n },\n checkbox: {\n root: \"sv-selectbase\",\n item: \"sv-item sv-checkbox sv-selectbase__item\",\n itemSelectAll: \"sv-checkbox--selectall\",\n itemNone: \"sv-checkbox--none\",\n itemDisabled: \"sv-item--disabled sv-checkbox--disabled\",\n itemChecked: \"sv-checkbox--checked\",\n itemHover: \"sv-checkbox--allowhover\",\n itemInline: \"sv-selectbase__item--inline\",\n label: \"sv-selectbase__label\",\n labelChecked: \"\",\n itemControl: \"sv-visuallyhidden sv-item__control\",\n itemDecorator: \"sv-item__svg sv-checkbox__svg\",\n controlLabel: \"sv-item__control-label\",\n materialDecorator: \"sv-item__decorator sv-checkbox__decorator\",\n other: \"sv-comment sv-question__other\",\n column: \"sv-selectbase__column\",\n },\n ranking: {\n root: \"sv-ranking\",\n rootMobileMod: \"sv-ranking--mobile\",\n rootDragMod: \"sv-ranking--drag\",\n item: \"sv-ranking-item\",\n itemContent: \"sv-ranking-item__content\",\n itemIndex: \"sv-ranking-item__index\",\n // itemText: \"sv-ranking-item__text\",\n controlLabel: \"sv-ranking-item__text\",\n itemGhostNode: \"sv-ranking-item__ghost\",\n itemIconContainer: \"sv-ranking-item__icon-container\",\n itemIcon: \"sv-ranking-item__icon\",\n itemIconHoverMod: \"sv-ranking-item__icon--hover\",\n itemIconFocusMod: \"sv-ranking-item__icon--focus\",\n itemGhostMod: \"sv-ranking-item--ghost\",\n itemDragMod: \"sv-ranking-item--drag\",\n },\n radiogroup: {\n root: \"sv-selectbase\",\n item: \"sv-item sv-radio sv-selectbase__item\",\n itemInline: \"sv-selectbase__item--inline\",\n label: \"sv-selectbase__label\",\n labelChecked: \"\",\n itemDisabled: \"sv-item--disabled sv-radio--disabled\",\n itemChecked: \"sv-radio--checked\",\n itemHover: \"sv-radio--allowhover\",\n itemControl: \"sv-visuallyhidden sv-item__control\",\n itemDecorator: \"sv-item__svg sv-radio__svg\",\n controlLabel: \"sv-item__control-label\",\n materialDecorator: \"sv-item__decorator sv-radio__decorator\",\n other: \"sv-comment sv-question__other\",\n clearButton: \"sv-btn sv-selectbase__clear-btn\",\n column: \"sv-selectbase__column\",\n },\n boolean: {\n root: \"sv_qbln\",\n small: \"sv-row__question--small\",\n item: \"sv-boolean sv-item\",\n control: \"sv-visuallyhidden\",\n itemChecked: \"sv-boolean--checked\",\n itemIndeterminate: \"sv-boolean--indeterminate\",\n itemDisabled: \"sv-item--disabled sv-boolean--disabled\",\n switch: \"sv-boolean__switch\",\n slider: \"sv-boolean__slider\",\n label: \"sv-boolean__label \",\n disabledLabel: \"sv-boolean__label--disabled\",\n materialDecorator: \"sv-item__decorator sv-boolean__decorator \",\n itemDecorator: \"sv-item__svg sv-boolean__svg\",\n checkedPath: \"sv-boolean__checked-path\",\n uncheckedPath: \"sv-boolean__unchecked-path\",\n indeterminatePath: \"sv-boolean__indeterminate-path\",\n },\n text: {\n root: \"sv-text\",\n small: \"sv-row__question--small\",\n onError: \"sv-text--error\",\n },\n multipletext: {\n root: \"sv-multipletext\",\n item: \"sv-multipletext__item\",\n itemTitle: \"sv-multipletext__item-title\",\n row: \"sv-multipletext__row\",\n cell: \"sv-multipletext__cell\",\n },\n dropdown: {\n root: \"\",\n small: \"sv-row__question--small\",\n control: \"sv-dropdown\",\n selectWrapper: \"\",\n other: \"sv-comment sv-question__other\",\n onError: \"sv-dropdown--error\",\n },\n imagepicker: {\n root: \"sv-imagepicker\",\n item: \"sv-imagepicker__item\",\n itemInline: \"sv-imagepicker__item--inline\",\n itemChecked: \"sv-imagepicker__item--checked\",\n itemDisabled: \"sv-imagepicker__item--disabled\",\n itemHover: \"sv-imagepicker__item--allowhover\",\n label: \"sv-imagepicker__label\",\n itemControl: \"sv-imagepicker__control\",\n image: \"sv-imagepicker__image\",\n itemText: \"sv-imagepicker__text\",\n clearButton: \"sv-btn\",\n other: \"sv-comment sv-question__other\",\n },\n matrix: {\n tableWrapper: \"sv-matrix\",\n root: \"sv-table sv-matrix-root\",\n rowError: \"sv-matrix__row--error\",\n cell: \"sv-table__cell sv-matrix__cell\",\n headerCell: \"sv-table__cell sv-table__cell--header\",\n label: \"sv-item sv-radio sv-matrix__label\",\n itemValue: \"sv-visuallyhidden sv-item__control sv-radio__control\",\n itemChecked: \"sv-radio--checked\",\n itemDisabled: \"sv-item--disabled sv-radio--disabled\",\n itemHover: \"sv-radio--allowhover\",\n materialDecorator: \"sv-item__decorator sv-radio__decorator\",\n itemDecorator: \"sv-item__svg sv-radio__svg\",\n cellText: \"sv-matrix__text\",\n cellTextSelected: \"sv-matrix__text--checked\",\n cellTextDisabled: \"sv-matrix__text--disabled\",\n },\n matrixdropdown: {\n root: \"sv-table sv-matrixdropdown\",\n cell: \"sv-table__cell\",\n headerCell: \"sv-table__cell sv-table__cell--header\",\n row: \"sv-table__row\",\n detailRow: \"sv-table__row sv-table__row--detail\",\n detailRowText: \"sv-table__cell--detail-rowtext\",\n detailCell: \"sv-table__cell--detail\",\n choiceCell: \"sv-table__cell--choice\",\n detailButton: \"sv-table__cell--detail-button\",\n detailButtonExpanded: \"sv-table__cell--detail-button--expanded\",\n detailIcon: \"sv-detail-panel__icon\",\n detailIconExpanded: \"sv-detail-panel__icon--expanded\",\n detailPanelCell: \"sv-table__cell--detail-panel\",\n actionsCell: \"sv-table__cell sv-table__cell--actions\",\n },\n matrixdynamic: {\n root: \"sv-table sv-matrixdynamic\",\n cell: \"sv-table__cell\",\n headerCell: \"sv-table__cell sv-table__cell--header\",\n button: \"sv-btn\",\n buttonAdd: \"sv-matrixdynamic__add-btn\",\n buttonRemove: \"sv-matrixdynamic__remove-btn\",\n iconAdd: \"\",\n iconRemove: \"\",\n row: \"sv-table__row\",\n detailRow: \"sv-table__row sv-table__row--detail\",\n detailCell: \"sv-table__cell--detail\",\n choiceCell: \"sv-table__cell--choice\",\n detailButton: \"sv-table__cell--detail-button\",\n detailButtonExpanded: \"sv-table__cell--detail-button--expanded\",\n detailIcon: \"sv-detail-panel__icon\",\n detailIconExpanded: \"sv-detail-panel__icon--expanded\",\n detailPanelCell: \"sv-table__cell--detail-panel\",\n actionsCell: \"sv-table__cell sv-table__cell--actions\",\n emptyRowsSection: \"sv-table__empty--rows--section\",\n emptyRowsText: \"sv-table__empty--rows--text\",\n emptyRowsButton: \"\",\n },\n rating: {\n root: \"sv-rating\",\n item: \"sv-rating__item\",\n selected: \"sv-rating__item--selected\",\n minText: \"sv-rating__min-text\",\n itemText: \"sv-rating__item-text\",\n maxText: \"sv-rating__max-text\",\n disabled: \"sv-rating--disabled\",\n },\n comment: {\n root: \"sv-comment\",\n small: \"sv-row__question--small\",\n },\n expression: \"\",\n file: {\n root: \"sv-file\",\n other: \"sv-comment sv-question__other\",\n placeholderInput: \"sv-visuallyhidden\",\n preview: \"sv-file__preview\",\n fileSign: \"sv-hidden\",\n fileSignBottom: \"sv-file__sign\",\n fileDecorator: \"sv-file__decorator\",\n fileInput: \"sv-visuallyhidden\",\n noFileChosen: \"sv-description sv-file__no-file-chosen\",\n chooseFile: \"sv-btn sv-file__choose-btn\",\n disabled: \"sv-file__choose-btn--disabled\",\n removeButton: \"sv-hidden\",\n removeButtonBottom: \"sv-btn sv-file__clean-btn\",\n removeFile: \"sv-hidden\",\n removeFileSvg: \"sv-file__remove-svg\",\n wrapper: \"sv-file__wrapper\",\n },\n signaturepad: {\n root: \"sv-signaturepad sjs_sp_container\",\n small: \"sv-row__question--small\",\n controls: \"sjs_sp_controls\",\n clearButton: \"sjs_sp_clear\",\n },\n saveData: {\n root: \"\",\n saving: \"\",\n error: \"\",\n success: \"\",\n saveAgainButton: \"\",\n },\n window: {\n root: \"sv_window\",\n body: \"sv_window_content\",\n header: {\n root: \"sv_window_title\",\n title: \"\",\n button: \"\",\n buttonExpanded: \"\",\n buttonCollapsed: \"\",\n },\n },\n};\n\nsurveyCss[\"modern\"] = modernCss;\n","export var surveyCss: any = {\r\n currentType: \"\",\r\n getCss: function() {\r\n var loc = this.currentType ? this[this.currentType] : defaultStandardCss;\r\n if (!loc) loc = defaultStandardCss;\r\n return loc;\r\n },\r\n};\r\n\r\nexport var defaultStandardCss = {\r\n root: \"sv_main sv_default_css\",\r\n container: \"sv_container\",\r\n header: \"sv_header\",\r\n body: \"sv_body\",\r\n bodyEmpty: \"sv_body sv_body_empty\",\r\n footer: \"sv_nav\",\r\n title: \"\",\r\n description: \"\",\r\n logo: \"sv_logo\",\r\n logoImage: \"sv_logo__image\",\r\n headerText: \"sv_header__text\",\r\n navigationButton: \"\",\r\n completedPage: \"sv_completed_page\",\r\n navigation: {\r\n complete: \"sv_complete_btn\",\r\n prev: \"sv_prev_btn\",\r\n next: \"sv_next_btn\",\r\n start: \"sv_start_btn\",\r\n preview: \"sv_preview_btn\",\r\n edit: \"sv_edit_btn\",\r\n },\r\n progress: \"sv_progress\",\r\n progressBar: \"sv_progress_bar\",\r\n progressTextInBar: \"sv-hidden\",\r\n progressButtonsContainerCenter: \"sv_progress-buttons__container-center\",\r\n progressButtonsContainer: \"sv_progress-buttons__container\",\r\n progressButtonsImageButtonLeft: \"sv_progress-buttons__image-button-left\",\r\n progressButtonsImageButtonRight: \"sv_progress-buttons__image-button-right\",\r\n progressButtonsImageButtonHidden: \"sv_progress-buttons__image-button--hidden\",\r\n progressButtonsListContainer: \"sv_progress-buttons__list-container\",\r\n progressButtonsList: \"sv_progress-buttons__list\",\r\n progressButtonsListElementPassed: \"sv_progress-buttons__list-element--passed\",\r\n progressButtonsListElementCurrent:\r\n \"sv_progress-buttons__list-element--current\",\r\n progressButtonsListElementNonClickable:\r\n \"sv_progress-buttons__list-element--nonclickable\",\r\n progressButtonsPageTitle: \"sv_progress-buttons__page-title\",\r\n progressButtonsPageDescription: \"sv_progress-buttons__page-description\",\r\n page: {\r\n root: \"sv_p_root\",\r\n title: \"sv_page_title\",\r\n description: \"\",\r\n },\r\n // TODO: move to the page object\r\n pageTitle: \"sv_page_title\",\r\n pageDescription: \"\",\r\n row: \"sv_row\",\r\n question: {\r\n mainRoot: \"sv_q sv_qstn\",\r\n flowRoot: \"sv_q_flow sv_qstn\",\r\n header: \"\",\r\n headerLeft: \"title-left\",\r\n content: \"\",\r\n contentLeft: \"content-left\",\r\n titleLeftRoot: \"sv_qstn_left\",\r\n requiredText: \"sv_q_required_text\",\r\n title: \"sv_q_title\",\r\n titleExpandable: \"sv_q_title_expandable\",\r\n number: \"sv_q_num\",\r\n description: \"sv_q_description\",\r\n comment: \"\",\r\n required: \"\",\r\n titleRequired: \"\",\r\n hasError: \"\",\r\n indent: 20,\r\n footer: \"sv_q_footer\",\r\n formGroup: \"form-group\",\r\n asCell: \"sv_matrix_cell\",\r\n icon: \"sv_question_icon\",\r\n iconExpanded: \"sv_expanded\",\r\n },\r\n panel: {\r\n title: \"sv_p_title\",\r\n titleExpandable: \"sv_p_title_expandable\",\r\n titleOnError: \"\",\r\n icon: \"sv_panel_icon\",\r\n iconExpanded: \"sv_expanded\",\r\n description: \"sv_p_description\",\r\n container: \"sv_p_container\",\r\n footer: \"sv_p_footer\",\r\n number: \"sv_q_num\",\r\n requiredText: \"sv_q_required_text\",\r\n },\r\n error: {\r\n root: \"sv_q_erbox\",\r\n icon: \"\",\r\n item: \"\",\r\n locationTop: \"sv_qstn_error_top\",\r\n locationBottom: \"sv_qstn_error_bottom\",\r\n },\r\n\r\n boolean: {\r\n root: \"sv_qcbc sv_qbln\",\r\n item: \"sv-boolean\",\r\n control: \"sv-visuallyhidden\",\r\n itemChecked: \"sv-boolean--checked checked\",\r\n itemIndeterminate: \"sv-boolean--indeterminate\",\r\n itemDisabled: \"sv-boolean--disabled\",\r\n switch: \"sv-boolean__switch\",\r\n slider: \"sv-boolean__slider\",\r\n label: \"sv-boolean__label \",\r\n disabledLabel: \"sv-boolean__label--disabled\",\r\n materialDecorator: \"sv-item__decorator sv-boolean__decorator \",\r\n itemDecorator: \"sv-item__svg sv-boolean__svg\",\r\n checkedPath: \"sv-boolean__checked-path\",\r\n uncheckedPath: \"sv-boolean__unchecked-path\",\r\n indeterminatePath: \"sv-boolean__indeterminate-path\",\r\n },\r\n checkbox: {\r\n root: \"sv_qcbc sv_qcbx\",\r\n item: \"sv_q_checkbox\",\r\n itemSelectAll: \"sv_q_checkbox_selectall\",\r\n itemNone: \"sv_q_checkbox_none\",\r\n itemChecked: \"checked\",\r\n itemInline: \"sv_q_checkbox_inline\",\r\n label: \"sv_q_checkbox_label\",\r\n labelChecked: \"\",\r\n itemControl: \"sv_q_checkbox_control_item\",\r\n itemDecorator: \"sv-hidden\",\r\n controlLabel: \"sv_q_checkbox_control_label\",\r\n materialDecorator: \"checkbox-material\",\r\n other: \"sv_q_other sv_q_checkbox_other\",\r\n column: \"sv_q_select_column\",\r\n },\r\n ranking: {\r\n root: \"sv-ranking\",\r\n rootMobileMod: \"sv-ranking--mobile\",\r\n rootDragMod: \"sv-ranking--drag\",\r\n item: \"sv-ranking-item\",\r\n itemContent: \"sv-ranking-item__content\",\r\n itemIndex: \"sv-ranking-item__index\",\r\n // itemText: \"sv-ranking-item__text\",\r\n controlLabel: \"sv-ranking-item__text\",\r\n itemGhostNode: \"sv-ranking-item__ghost\",\r\n itemIconContainer: \"sv-ranking-item__icon-container\",\r\n itemIcon: \"sv-ranking-item__icon\",\r\n itemIconHoverMod: \"sv-ranking-item__icon--hover\",\r\n itemIconFocusMod: \"sv-ranking-item__icon--focus\",\r\n itemGhostMod: \"sv-ranking-item--ghost\",\r\n itemDragMod: \"sv-ranking-item--drag\",\r\n },\r\n comment: \"\",\r\n dropdown: {\r\n root: \"\",\r\n control: \"sv_q_dropdown_control\",\r\n selectWrapper: \"sv_select_wrapper\",\r\n other: \"sv_q_dd_other\",\r\n },\r\n html: { root: \"\" },\r\n image: { root: \"sv_q_image\", image: \"sv_image_image\" },\r\n matrix: {\r\n root: \"sv_q_matrix\",\r\n label: \"sv_q_m_label\",\r\n itemChecked: \"checked\",\r\n itemDecorator: \"sv-hidden\",\r\n cell: \"sv_q_m_cell\",\r\n cellText: \"sv_q_m_cell_text\",\r\n cellTextSelected: \"sv_q_m_cell_selected\",\r\n cellLabel: \"sv_q_m_cell_label\",\r\n },\r\n matrixdropdown: {\r\n root: \"sv_q_matrix_dropdown\",\r\n cell: \"sv_matrix_cell\",\r\n headerCell: \"sv_matrix_cell_header\",\r\n row: \"sv_matrix_row\",\r\n detailRow: \"sv_matrix_detail_row\",\r\n detailRowText: \"sv_matrix_cell_detail_rowtext\",\r\n detailCell: \"sv_matrix_cell_detail\",\r\n choiceCell: \"sv-table__cell--choice\",\r\n detailButton: \"sv_matrix_cell_detail_button\",\r\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\r\n detailIcon: \"sv_detail_panel_icon\",\r\n detailIconExpanded: \"sv_detail_expanded\",\r\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\r\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\r\n },\r\n matrixdynamic: {\r\n root: \"sv_q_matrix_dynamic\",\r\n button: \"sv_matrix_dynamic_button\",\r\n buttonAdd: \"\",\r\n buttonRemove: \"\",\r\n iconAdd: \"\",\r\n iconRemove: \"\",\r\n cell: \"sv_matrix_cell\",\r\n headerCell: \"sv_matrix_cell_header\",\r\n row: \"sv_matrix_row\",\r\n detailRow: \"sv_matrix_detail_row\",\r\n detailCell: \"sv_matrix_cell_detail\",\r\n choiceCell: \"sv-table__cell--choice\",\r\n detailButton: \"sv_matrix_cell_detail_button\",\r\n detailButtonExpanded: \"sv_matrix_cell_detail_button_expanded\",\r\n detailIcon: \"sv_detail_panel_icon\",\r\n detailIconExpanded: \"sv_detail_expanded\",\r\n detailPanelCell: \"sv_matrix_cell_detail_panel\",\r\n actionsCell: \"sv_matrix_cell sv_matrix_cell_actions\",\r\n emptyRowsSection: \"sv_matrix_empty_rows_section\",\r\n emptyRowsText: \"sv_matrix_empty_rows_text\",\r\n emptyRowsButton: \"\",\r\n },\r\n paneldynamic: {\r\n root: \"sv_panel_dynamic\",\r\n title: \"sv_p_title\",\r\n button: \"\",\r\n buttonAdd: \"sv-paneldynamic__add-btn\",\r\n buttonRemove: \"sv_p_remove_btn\",\r\n buttonRemoveRight: \"sv_p_remove_btn_right\",\r\n buttonPrev: \"sv-paneldynamic__prev-btn\",\r\n buttonNext: \"sv-paneldynamic__next-btn\",\r\n progressContainer: \"sv-paneldynamic__progress-container\",\r\n progress: \"sv-progress\",\r\n progressBar: \"sv-progress__bar\",\r\n progressText: \"sv-paneldynamic__progress-text\",\r\n panelWrapper: \"sv_p_wrapper\",\r\n panelWrapperInRow: \"sv_p_wrapper_in_row\",\r\n },\r\n multipletext: {\r\n root: \"sv_q_mt\",\r\n itemTitle: \"sv_q_mt_title\",\r\n row: \"sv_q_mt_row\",\r\n itemValue: \"sv_q_mt_item_value sv_q_text_root\",\r\n },\r\n radiogroup: {\r\n root: \"sv_qcbc\",\r\n item: \"sv_q_radiogroup\",\r\n itemChecked: \"checked\",\r\n itemInline: \"sv_q_radiogroup_inline\",\r\n itemDecorator: \"sv-hidden\",\r\n label: \"sv_q_radiogroup_label\",\r\n labelChecked: \"\",\r\n itemControl: \"sv_q_radiogroup_control_item\",\r\n controlLabel: \"\",\r\n materialDecorator: \"circle\",\r\n other: \"sv_q_other sv_q_radiogroup_other\",\r\n clearButton: \"sv_q_radiogroup_clear\",\r\n column: \"sv_q_select_column\",\r\n },\r\n imagepicker: {\r\n root: \"sv_imgsel\",\r\n item: \"sv_q_imgsel\",\r\n itemChecked: \"checked\",\r\n label: \"sv_q_imgsel_label\",\r\n itemControl: \"sv_q_imgsel_control_item\",\r\n image: \"sv_q_imgsel_image\",\r\n itemInline: \"sv_q_imagepicker_inline\",\r\n itemText: \"sv_q_imgsel_text\",\r\n clearButton: \"sv_q_radiogroup_clear\",\r\n },\r\n rating: {\r\n root: \"sv_q_rating\",\r\n item: \"sv_q_rating_item\",\r\n selected: \"active\",\r\n minText: \"sv_q_rating_min_text\",\r\n itemText: \"sv_q_rating_item_text\",\r\n maxText: \"sv_q_rating_max_text\",\r\n disabled: \"\",\r\n },\r\n text: \"sv_q_text_root\",\r\n expression: \"\",\r\n file: {\r\n root: \"sv_q_file\",\r\n placeholderInput: \"sv-visuallyhidden\",\r\n preview: \"sv_q_file_preview\",\r\n removeButton: \"sv_q_file_remove_button\",\r\n fileInput: \"sv-visuallyhidden\",\r\n removeFile: \"sv_q_file_remove\",\r\n removeFileSvg: \"sv-hidden\",\r\n fileDecorator: \"sv-file__decorator\",\r\n fileSignBottom: \"sv-hidden\",\r\n removeButtonBottom: \"sv-hidden\",\r\n chooseFile: \"sv_q_file_choose_button\",\r\n noFileChosen: \"sv_q_file_placeholder\",\r\n },\r\n signaturepad: {\r\n root: \"sv_q_signaturepad sjs_sp_container\",\r\n controls: \"sjs_sp_controls\",\r\n clearButton: \"sjs_sp_clear\",\r\n },\r\n saveData: {\r\n root: \"\",\r\n saving: \"\",\r\n error: \"\",\r\n success: \"\",\r\n saveAgainButton: \"\",\r\n },\r\n window: {\r\n root: \"sv_window\",\r\n body: \"sv_window_content\",\r\n header: {\r\n root: \"sv_window_title\",\r\n title: \"\",\r\n button: \"\",\r\n buttonExpanded: \"\",\r\n buttonCollapsed: \"\",\r\n },\r\n },\r\n};\r\n\r\nsurveyCss[\"standard\"] = defaultStandardCss;\r\n","import { settings } from \"./settings\";\n/**\n * The class contains methods to work with api.surveyjs.io service.\n */\nexport class dxSurveyService {\n public static get serviceUrl(): string {\n return settings.surveyServiceUrl;\n }\n public static set serviceUrl(val: string) {\n settings.surveyServiceUrl = val;\n }\n constructor() {}\n public loadSurvey(\n surveyId: string,\n onLoad: (success: boolean, result: string, response: any) => void\n ) {\n var xhr = new XMLHttpRequest();\n xhr.open(\n \"GET\",\n dxSurveyService.serviceUrl + \"/getSurvey?surveyId=\" + surveyId\n );\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n xhr.onload = function () {\n var result = JSON.parse(xhr.response);\n onLoad(xhr.status == 200, result, xhr.response);\n };\n xhr.send();\n }\n public getSurveyJsonAndIsCompleted(\n surveyId: string,\n clientId: string,\n onLoad: (\n success: boolean,\n surveyJson: any,\n result: string,\n response: any\n ) => void\n ) {\n var xhr = new XMLHttpRequest();\n xhr.open(\n \"GET\",\n dxSurveyService.serviceUrl +\n \"/getSurveyAndIsCompleted?surveyId=\" +\n surveyId +\n \"&clientId=\" +\n clientId\n );\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n xhr.onload = function () {\n var result = JSON.parse(xhr.response);\n var surveyJson = result ? result.survey : null;\n var isCompleted = result ? result.isCompleted : null;\n onLoad(xhr.status == 200, surveyJson, isCompleted, xhr.response);\n };\n xhr.send();\n }\n public sendResult(\n postId: string,\n result: JSON,\n onSendResult: (success: boolean, response: any, request?: any) => void,\n clientId: string = null,\n isPartialCompleted: boolean = false\n ) {\n var xhr = new XMLHttpRequest();\n xhr.open(\"POST\", dxSurveyService.serviceUrl + \"/post/\");\n xhr.setRequestHeader(\"Content-Type\", \"application/json; charset=utf-8\");\n var data = { postId: postId, surveyResult: JSON.stringify(result) };\n if (clientId) (data)[\"clientId\"] = clientId;\n if (isPartialCompleted) (data)[\"isPartialCompleted\"] = true;\n var dataStringify: string = JSON.stringify(data);\n var self = this;\n xhr.onload = xhr.onerror = function () {\n if (!onSendResult) return;\n onSendResult(xhr.status === 200, xhr.response, xhr);\n };\n xhr.send(dataStringify);\n }\n public sendFile(\n postId: string,\n file: File,\n onSendFile: (success: boolean, response: any) => void\n ) {\n var xhr = new XMLHttpRequest();\n xhr.onload = xhr.onerror = function () {\n if (!onSendFile) return;\n onSendFile(xhr.status == 200, JSON.parse(xhr.response));\n };\n xhr.open(\"POST\", dxSurveyService.serviceUrl + \"/upload/\", true);\n var formData = new FormData();\n formData.append(\"file\", file);\n formData.append(\"postId\", postId);\n xhr.send(formData);\n }\n public getResult(\n resultId: string,\n name: string,\n onGetResult: (\n success: boolean,\n data: any,\n dataList: Array,\n response: any\n ) => void\n ) {\n var xhr = new XMLHttpRequest();\n var data = \"resultId=\" + resultId + \"&name=\" + name;\n xhr.open(\"GET\", dxSurveyService.serviceUrl + \"/getResult?\" + data);\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n var self = this;\n xhr.onload = function () {\n var result = null;\n var list = null;\n if (xhr.status == 200) {\n result = JSON.parse(xhr.response);\n list = [];\n for (var key in result.QuestionResult) {\n var el = { name: key, value: result.QuestionResult[key] };\n list.push(el);\n }\n }\n onGetResult(xhr.status == 200, result, list, xhr.response);\n };\n xhr.send();\n }\n public isCompleted(\n resultId: string,\n clientId: string,\n onIsCompleted: (success: boolean, result: string, response: any) => void\n ) {\n var xhr = new XMLHttpRequest();\n var data = \"resultId=\" + resultId + \"&clientId=\" + clientId;\n xhr.open(\"GET\", dxSurveyService.serviceUrl + \"/isCompleted?\" + data);\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n var self = this;\n xhr.onload = function () {\n var result = null;\n if (xhr.status == 200) {\n result = JSON.parse(xhr.response);\n }\n onIsCompleted(xhr.status == 200, result, xhr.response);\n };\n xhr.send();\n }\n}\n","import \"../../localization/arabic\";\nimport \"../../localization/bulgarian\";\nimport \"../../localization/catalan\";\nimport \"../../localization/croatian\";\nimport \"../../localization/czech\";\nimport \"../../localization/danish\";\nimport \"../../localization/dutch\";\nimport \"../../localization/estonian\";\nimport \"../../localization/finnish\";\nimport \"../../localization/french\";\nimport \"../../localization/georgian\";\nimport \"../../localization/german\";\nimport \"../../localization/greek\";\nimport \"../../localization/hebrew\";\nimport \"../../localization/hungarian\";\nimport \"../../localization/icelandic\";\nimport \"../../localization/indonesian\";\nimport \"../../localization/italian\";\nimport \"../../localization/japanese\";\nimport \"../../localization/korean\";\nimport \"../../localization/latvian\";\nimport \"../../localization/lithuanian\";\nimport \"../../localization/macedonian\";\nimport \"../../localization/norwegian\";\nimport \"../../localization/persian\";\nimport \"../../localization/polish\";\nimport \"../../localization/portuguese\";\nimport \"../../localization/portuguese-br\";\nimport \"../../localization/romanian\";\nimport \"../../localization/russian\";\nimport \"../../localization/simplified-chinese\";\nimport \"../../localization/spanish\";\nimport \"../../localization/swedish\";\nimport \"../../localization/thai\";\nimport \"../../localization/turkish\";\nimport \"../../localization/traditional-chinese\";\nimport \"../../localization/ukrainian\";\nimport \"../../localization/tajik\";\nimport \"../../localization/swahili\";\nimport \"../../localization/welsh\";\nimport \"../../localization/hindi\";\n","// styles\nimport \"../../main.scss\";\n//import \"../../modern.scss\";\n\nexport var Version: string;\nVersion = `${process.env.VERSION}`;\n\nexport { settings } from \"../../settings\";\nexport { Helpers, HashTable } from \"../../helpers\";\nexport {\n AnswerCountValidator,\n EmailValidator,\n NumericValidator,\n RegexValidator,\n SurveyValidator,\n TextValidator,\n ValidatorResult,\n ExpressionValidator,\n ValidatorRunner,\n} from \"../../validator\";\nexport { ItemValue } from \"../../itemvalue\";\nexport {\n Base,\n Event,\n SurveyError,\n ISurvey,\n SurveyElement,\n ISurveyElement,\n IElement,\n IPage,\n ITitleOwner,\n ArrayChanges,\n} from \"../../base\";\nexport { CalculatedValue } from \"../../calculatedValue\";\nexport {\n CustomError,\n AnswerRequiredError,\n OneAnswerRequiredError,\n RequreNumericError,\n ExceedSizeError,\n} from \"../../error\";\nexport {\n ILocalizableOwner,\n ILocalizableString,\n LocalizableString,\n LocalizableStrings,\n} from \"../../localizablestring\";\nexport { HtmlConditionItem, UrlConditionItem } from \"../../expressionItems\";\nexport { ChoicesRestful, ChoicesRestfull } from \"../../choicesRestful\";\nexport { FunctionFactory, registerFunction } from \"../../functionsfactory\";\nexport { ConditionRunner, ExpressionRunner } from \"../../conditions\";\nexport {\n Operand,\n Const,\n BinaryOperand,\n Variable,\n FunctionOperand,\n ArrayOperand,\n} from \"../../expressions/expressions\";\nexport { ConditionsParser } from \"../../conditionsParser\";\nexport { ProcessValue } from \"../../conditionProcessValue\";\nexport {\n JsonError,\n JsonIncorrectTypeError,\n JsonMetadata,\n JsonMetadataClass,\n JsonMissingTypeError,\n JsonMissingTypeErrorBase,\n JsonObject,\n JsonObjectProperty,\n JsonRequiredPropertyError,\n JsonUnknownPropertyError,\n Serializer,\n property,\n propertyArray,\n} from \"../../jsonobject\";\nexport {\n MatrixDropdownCell,\n MatrixDropdownColumn,\n matrixDropdownColumnTypes,\n MatrixDropdownRowModelBase,\n QuestionMatrixDropdownModelBase,\n QuestionMatrixDropdownRenderedCell,\n QuestionMatrixDropdownRenderedRow,\n QuestionMatrixDropdownRenderedTable,\n} from \"../../question_matrixdropdownbase\";\nexport {\n MatrixDropdownRowModel,\n QuestionMatrixDropdownModel,\n} from \"../../question_matrixdropdown\";\nexport {\n MatrixDynamicRowModel,\n QuestionMatrixDynamicModel,\n} from \"../../question_matrixdynamic\";\nexport {\n MatrixRowModel,\n MatrixCells,\n QuestionMatrixModel,\n IMatrixData,\n} from \"../../question_matrix\";\nexport {\n MultipleTextItemModel,\n QuestionMultipleTextModel,\n} from \"../../question_multipletext\";\nexport { PanelModel, PanelModelBase, QuestionRowModel } from \"../../panel\";\nexport { FlowPanelModel } from \"../../flowpanel\";\nexport { PageModel } from \"../../page\";\nexport * from \"../../question-row\";\nexport { Question } from \"../../question\";\nexport { QuestionNonValue } from \"../../questionnonvalue\";\nexport { QuestionEmptyModel } from \"../../question_empty\";\nexport {\n QuestionCheckboxBase,\n QuestionSelectBase,\n} from \"../../question_baseselect\";\nexport { QuestionCheckboxModel } from \"../../question_checkbox\";\nexport { QuestionRankingModel } from \"../../question_ranking\";\nexport { QuestionCommentModel } from \"../../question_comment\";\nexport { QuestionDropdownModel } from \"../../question_dropdown\";\nexport { QuestionFactory, ElementFactory } from \"../../questionfactory\";\nexport { QuestionFileModel } from \"../../question_file\";\nexport { QuestionHtmlModel } from \"../../question_html\";\nexport { QuestionRadiogroupModel } from \"../../question_radiogroup\";\nexport { QuestionRatingModel } from \"../../question_rating\";\nexport { QuestionExpressionModel } from \"../../question_expression\";\nexport { QuestionTextModel } from \"../../question_text\";\nexport { QuestionBooleanModel } from \"../../question_boolean\";\nexport { QuestionImagePickerModel } from \"../../question_imagepicker\";\nexport { QuestionImageModel } from \"../../question_image\";\nexport { QuestionSignaturePadModel } from \"../../question_signaturepad\";\nexport {\n QuestionPanelDynamicModel,\n QuestionPanelDynamicItem,\n} from \"../../question_paneldynamic\";\nexport { SurveyTimer } from \"../../surveytimer\";\nexport { SurveyProgressButtonsModel } from \"../../surveyProgressButtons\";\nexport { SurveyModel } from \"../../survey\";\nexport {\n SurveyTrigger,\n SurveyTriggerComplete,\n SurveyTriggerSetValue,\n SurveyTriggerVisible,\n SurveyTriggerCopyValue,\n SurveyTriggerRunExpression,\n Trigger,\n} from \"../../trigger\";\nexport { SurveyWindowModel } from \"../../surveyWindow\";\nexport { TextPreProcessor } from \"../../textPreProcessor\";\n\nexport { dxSurveyService } from \"../../dxSurveyService\";\nexport { englishStrings } from \"../../localization/english\";\nexport { surveyLocalization, surveyStrings } from \"../../surveyStrings\";\n// export { cultureInfo } from \"../../cultureInfo\";\nexport {\n QuestionCustomWidget,\n CustomWidgetCollection,\n} from \"../../questionCustomWidgets\";\nexport {\n QuestionCustomModel,\n QuestionCompositeModel,\n ComponentQuestionJSON,\n ComponentCollection,\n} from \"../../question_custom\";\n\nexport { StylesManager } from \"../../stylesmanager\";\n\nexport {\n ActionBarItem,\n IActionBarItem,\n AdaptiveActionBarItemWrapper,\n AdaptiveElement,\n} from \"../../action-bar\";\nexport { ListModel } from \"../../list\";\nexport { PopupModel, PopupViewModel } from \"../../popup\";\nexport { IsMobile } from \"../../utils/is-mobile\";\nexport {\n confirmAction,\n detectIEOrEdge,\n loadFileFromBase64,\n createSvg,\n} from \"../../utils/utils\";\n\nexport { surveyCss } from \"../../defaultCss/cssstandard\";\n//Uncomment to include the \"date\" question type.\n//export {default as QuestionDateModel} from \"../../plugins/question_date\";\n","// model\nexport * from \"./chunks/model\";\n\n// localization\nimport \"./chunks/localization\";\n\n// css standard classes\nexport { defaultStandardCss } from \"../defaultCss/cssstandard\";\n// css bootstrap classes\nexport { defaultBootstrapCss } from \"../defaultCss/cssbootstrap\";\n// css bootstrap + material classes\nexport { defaultBootstrapMaterialCss } from \"../defaultCss/cssbootstrapmaterial\";\n// css modern classes\nexport { modernCss } from \"../defaultCss/cssmodern\";\n\n// utils\nexport * from \"../rendererFactory\";\nexport * from \"../utils/resonsibilitymanager\";\nexport { unwrap } from \"../utils/utils\";\n","// react\nexport { Survey } from \"../react/reactSurvey\";\nimport { ReactSurveyModel, ReactWindowModel } from \"../react/reactsurveymodel\";\nexport { ReactSurveyModel as Model };\nexport { ReactWindowModel as WindowModel };\nexport { SurveyNavigationBase } from \"../react/reactSurveyNavigationBase\";\nexport { SurveyTimerPanel } from \"../react/reacttimerpanel\";\nexport { SurveyNavigation } from \"../react/reactSurveyNavigation\";\nexport { SurveyPage } from \"../react/page\";\nexport { SurveyRow } from \"../react/row\";\nexport { SurveyPanel } from \"../react/panel\";\nexport { SurveyFlowPanel } from \"../react/flow-panel\";\nexport {\n SurveyQuestion,\n SurveyElementErrors,\n SurveyQuestionAndErrorsCell,\n} from \"../react/reactquestion\";\nexport {\n SurveyElementBase,\n SurveyQuestionElementBase,\n} from \"../react/reactquestion_element\";\nexport {\n SurveyQuestionCommentItem,\n SurveyQuestionComment,\n} from \"../react/reactquestion_comment\";\nexport {\n SurveyQuestionCheckbox,\n SurveyQuestionCheckboxItem,\n} from \"../react/reactquestion_checkbox\";\nexport {\n SurveyQuestionRanking,\n SurveyQuestionRankingItem,\n} from \"../react/reactquestion_ranking\";\nexport { SurveyQuestionDropdown } from \"../react/reactquestion_dropdown\";\nexport {\n SurveyQuestionMatrix,\n SurveyQuestionMatrixRow,\n} from \"../react/reactquestion_matrix\";\nexport { SurveyQuestionHtml } from \"../react/reactquestion_html\";\nexport { SurveyQuestionFile } from \"../react/reactquestion_file\";\nexport { SurveyQuestionMultipleText } from \"../react/reactquestion_multipletext\";\nexport { SurveyQuestionRadiogroup } from \"../react/reactquestion_radiogroup\";\nexport { SurveyQuestionText } from \"../react/reactquestion_text\";\nexport { SurveyQuestionBoolean } from \"../react/boolean\";\nexport { SurveyQuestionBooleanCheckbox } from \"../react/boolean-checkbox\";\nexport { SurveyQuestionEmpty } from \"../react/reactquestion_empty\";\nexport { SurveyQuestionMatrixDropdownCell } from \"../react/reactquestion_matrixdropdownbase\";\nexport { SurveyQuestionMatrixDropdown } from \"../react/reactquestion_matrixdropdown\";\nexport { SurveyQuestionMatrixDynamic } from \"../react/reactquestion_matrixdynamic\";\nexport { SurveyQuestionPanelDynamic } from \"../react/reactquestion_paneldynamic\";\nexport { SurveyProgress } from \"../react/reactSurveyProgress\";\nexport { SurveyProgressButtons } from \"../react/reactSurveyProgressButtons\";\nexport { SurveyQuestionRating } from \"../react/reactquestion_rating\";\nexport { SurveyQuestionExpression } from \"../react/reactquestion_expression\";\nexport { SurveyWindow } from \"../react/reactSurveyWindow\";\nexport { ReactQuestionFactory } from \"../react/reactquestion_factory\";\nexport { ReactElementFactory } from \"../react/element-factory\";\nexport { SurveyQuestionImagePicker } from \"../react/imagepicker\";\nexport { SurveyQuestionImage } from \"../react/image\";\nexport { SurveyQuestionSignaturePad } from \"../react/signaturepad\";\nexport {\n SurveyQuestionCustom,\n SurveyQuestionComposite,\n} from \"../react/reactquestion_custom\";\n\nexport { DefaultTitle } from \"../react/components/default-title/default-title\";\nexport { Popup } from \"../react/components/popup/popup\";\nexport { List } from \"../react/components/list/list\";\nexport { TitleActions } from \"../react/components/title-actions/title-actions\";\nexport { SurveyActionBar } from \"../react/components/action-bar/action-bar\";\nexport { SvgIcon } from \"../react/components/svg-icon/svg-icon\";\nexport { SurveyQuestionMatrixDynamicRemoveButton } from \"../react/components/matrix-actions/remove-button/remove-button\";\nexport { SurveyQuestionMatrixDetailButton } from \"../react/components/matrix-actions/detail-button/detail-button\";\n\nexport { SurveyLocStringViewer } from \"../react/string-viewer\";\nexport { SurveyLocStringEditor } from \"../react/string-editor\";\nexport * from \"../utils/resonsibilitymanager\";\nexport { unwrap } from \"../utils/utils\";\n\n//Uncomment to include the \"date\" question type.\n//export {default as SurveyQuestionDate} from \"../plugins/react/reactquestiondate\";\n","export * from \"./core\";\nexport * from \"./react-ui\";\n","import { surveyLocalization } from \"./surveyStrings\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { SurveyError, ISurveyErrorOwner } from \"./base\";\n\nexport class AnswerRequiredError extends SurveyError {\n constructor(\n public text: string = null,\n errorOwner: ISurveyErrorOwner = null\n ) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"required\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"requiredError\");\n }\n}\nexport class OneAnswerRequiredError extends SurveyError {\n constructor(\n public text: string = null,\n errorOwner: ISurveyErrorOwner = null\n ) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"requireoneanswer\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"requiredErrorInPanel\");\n }\n}\nexport class RequreNumericError extends SurveyError {\n constructor(\n public text: string = null,\n errorOwner: ISurveyErrorOwner = null\n ) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"requirenumeric\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"numericError\");\n }\n}\nexport class ExceedSizeError extends SurveyError {\n constructor(private maxSize: number, errorOwner: ISurveyErrorOwner = null) {\n super(null, errorOwner);\n this.locText.text = this.getText();\n }\n public getErrorType(): string {\n return \"exceedsize\";\n }\n public getDefaultText(): string {\n return surveyLocalization\n .getString(\"exceedMaxSize\")\n [\"format\"](this.getTextSize());\n }\n private getTextSize() {\n var sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\"];\n var fixed = [0, 0, 2, 3, 3];\n if (this.maxSize === 0) {\n return \"0 Byte\";\n }\n var i = Math.floor(Math.log(this.maxSize) / Math.log(1024));\n var value = this.maxSize / Math.pow(1024, i);\n return value.toFixed(fixed[i]) + \" \" + sizes[i];\n }\n}\nexport class WebRequestError extends SurveyError {\n constructor(\n public status: string,\n public response: string,\n errorOwner: ISurveyErrorOwner = null\n ) {\n super(null, errorOwner);\n }\n public getErrorType(): string {\n return \"webrequest\";\n }\n protected getDefaultText(): string {\n return surveyLocalization\n .getString(\"urlRequestError\")\n [\"format\"](this.status, this.response);\n }\n}\nexport class WebRequestEmptyError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"webrequestempty\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"urlGetChoicesError\");\n }\n}\nexport class OtherEmptyError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"otherempty\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"otherRequiredError\");\n }\n}\nexport class UploadingFileError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"uploadingfile\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"uploadingFile\");\n }\n}\nexport class RequiredInAllRowsError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"requiredinallrowserror\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"requiredInAllRowsError\");\n }\n}\nexport class MinRowCountError extends SurveyError {\n constructor(\n public minRowCount: number,\n errorOwner: ISurveyErrorOwner = null\n ) {\n super(null, errorOwner);\n }\n public getErrorType(): string {\n return \"minrowcounterror\";\n }\n protected getDefaultText(): string {\n return surveyLocalization\n .getString(\"minRowCountError\")\n [\"format\"](this.minRowCount);\n }\n}\nexport class KeyDuplicationError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"keyduplicationerror\";\n }\n protected getDefaultText(): string {\n return surveyLocalization.getString(\"keyDuplicationError\");\n }\n}\nexport class CustomError extends SurveyError {\n constructor(public text: string, errorOwner: ISurveyErrorOwner = null) {\n super(text, errorOwner);\n }\n public getErrorType(): string {\n return \"custom\";\n }\n}\n","import { Serializer } from \"./jsonobject\";\nimport { Base } from \"./base\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { ConditionRunner } from \"./conditions\";\n\nexport class ExpressionItem extends Base implements ILocalizableOwner {\n public locOwner: ILocalizableOwner;\n constructor(expression: string = null) {\n super();\n this.createLocalizableString(\"html\", this);\n this.expression = expression;\n }\n public getType(): string {\n return \"expressionitem\";\n }\n public runCondition(values: any, properties: any): boolean {\n if (!this.expression) return false;\n return new ConditionRunner(this.expression).run(values, properties);\n }\n /**\n * The expression property. If this expression returns true, then survey will use html property to show on complete page.\n */\n public get expression(): string {\n return this.getPropertyValue(\"expression\", \"\");\n }\n public set expression(val: string) {\n this.setPropertyValue(\"expression\", val);\n }\n get locHtml(): LocalizableString {\n return this.getLocalizableString(\"html\");\n }\n\n public getLocale(): string {\n return !!this.locOwner ? this.locOwner.getLocale() : \"\";\n }\n public getMarkdownHtml(text: string, name: string): string {\n return !!this.locOwner ? this.locOwner.getMarkdownHtml(text, name) : null;\n }\n public getRenderer(name: string): string {\n return !!this.locOwner ? this.locOwner.getRenderer(name) : null;\n }\n public getProcessedText(text: string): string {\n return this.locOwner ? this.locOwner.getProcessedText(text) : text;\n }\n}\n\n/**\n * A class that contains expression and html propeties. It uses in survey.completedHtmlOnCondition array.\n * If the expression returns true then html of this item uses instead of survey.completedHtml property\n * @see SurveyModel.completedHtmlOnCondition\n * @see SurveyModel.completedHtml\n */\nexport class HtmlConditionItem extends ExpressionItem {\n constructor(expression: string = null, html: string = null) {\n super(expression);\n this.createLocalizableString(\"html\", this);\n this.html = html;\n }\n public getType(): string {\n return \"htmlconditionitem\";\n }\n /**\n * The html that shows on completed ('Thank you') page. The expression should return true\n * @see expression\n */\n public get html(): string {\n return this.getLocalizableStringText(\"html\");\n }\n public set html(value: string) {\n this.setLocalizableStringText(\"html\", value);\n }\n get locHtml(): LocalizableString {\n return this.getLocalizableString(\"html\");\n }\n}\n\n/**\n * A class that contains expression and url propeties. It uses in survey.navigateToUrlOnCondition array.\n * If the expression returns true then url of this item uses instead of survey.navigateToUrl property\n * @see SurveyModel.navigateToUrl\n */\nexport class UrlConditionItem extends ExpressionItem {\n constructor(expression: string = null, url: string = null) {\n super(expression);\n this.createLocalizableString(\"url\", this);\n this.url = url;\n }\n public getType(): string {\n return \"urlconditionitem\";\n }\n /**\n * The url that survey navigates to on completing the survey. The expression should return true\n * @see expression\n */\n public get url(): string {\n return this.getLocalizableStringText(\"url\");\n }\n public set url(value: string) {\n this.setLocalizableStringText(\"url\", value);\n }\n get locUrl(): LocalizableString {\n return this.getLocalizableString(\"url\");\n }\n}\n\nSerializer.addClass(\n \"expressionitem\",\n [\"expression:condition\"],\n function() {\n return new ExpressionItem();\n },\n \"base\"\n);\n\nSerializer.addClass(\n \"htmlconditionitem\",\n [{ name: \"html:html\", serializationProperty: \"locHtml\" }],\n function() {\n return new HtmlConditionItem();\n },\n \"expressionitem\"\n);\n\nSerializer.addClass(\n \"urlconditionitem\",\n [{ name: \"url:string\", serializationProperty: \"locUrl\" }],\n function() {\n return new UrlConditionItem();\n },\n \"expressionitem\"\n);\n","import {\nConst,\nBinaryOperand,\nVariable,\nOperand,\nUnaryOperand,\nFunctionOperand,\nArrayOperand\n} from \"./expressions\";\n\n// Generated by PEG.js v. 0.10.0 (ts-pegjs plugin v. 0.3.1 )\n//\n// https://pegjs.org/ https://github.com/metadevpro/ts-pegjs\n\n\"use strict\";\n\nexport interface IFilePosition {\n offset: number;\n line: number;\n column: number;\n}\n\nexport interface IFileRange {\n start: IFilePosition;\n end: IFilePosition;\n}\n\nexport interface ILiteralExpectation {\n type: \"literal\";\n text: string;\n ignoreCase: boolean;\n}\n\nexport interface IClassParts extends Array {}\n\nexport interface IClassExpectation {\n type: \"class\";\n parts: IClassParts;\n inverted: boolean;\n ignoreCase: boolean;\n}\n\nexport interface IAnyExpectation {\n type: \"any\";\n}\n\nexport interface IEndExpectation {\n type: \"end\";\n}\n\nexport interface IOtherExpectation {\n type: \"other\";\n description: string;\n}\n\nexport type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;\n\nexport class SyntaxError extends Error {\n public static buildMessage(expected: Expectation[], found: string | null) {\n function hex(ch: string): string {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n\n function literalEscape(s: string): string {\n return s\n .replace(/\\\\/g, \"\\\\\\\\\")\n .replace(/\"/g, \"\\\\\\\"\")\n .replace(/\\0/g, \"\\\\0\")\n .replace(/\\t/g, \"\\\\t\")\n .replace(/\\n/g, \"\\\\n\")\n .replace(/\\r/g, \"\\\\r\")\n .replace(/[\\x00-\\x0F]/g, (ch) => \"\\\\x0\" + hex(ch) )\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, (ch) => \"\\\\x\" + hex(ch) );\n }\n\n function classEscape(s: string): string {\n return s\n .replace(/\\\\/g, \"\\\\\\\\\")\n .replace(/\\]/g, \"\\\\]\")\n .replace(/\\^/g, \"\\\\^\")\n .replace(/-/g, \"\\\\-\")\n .replace(/\\0/g, \"\\\\0\")\n .replace(/\\t/g, \"\\\\t\")\n .replace(/\\n/g, \"\\\\n\")\n .replace(/\\r/g, \"\\\\r\")\n .replace(/[\\x00-\\x0F]/g, (ch) => \"\\\\x0\" + hex(ch) )\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, (ch) => \"\\\\x\" + hex(ch) );\n }\n\n function describeExpectation(expectation: Expectation) {\n switch (expectation.type) {\n case \"literal\":\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n case \"class\":\n const escapedParts = expectation.parts.map((part) => {\n return Array.isArray(part)\n ? classEscape(part[0] as string) + \"-\" + classEscape(part[1] as string)\n : classEscape(part);\n });\n\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n case \"any\":\n return \"any character\";\n case \"end\":\n return \"end of input\";\n case \"other\":\n return expectation.description;\n }\n }\n\n function describeExpected(expected1: Expectation[]) {\n const descriptions = expected1.map(describeExpectation);\n let i: number;\n let j: number;\n\n descriptions.sort();\n\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found1: string | null) {\n return found1 ? \"\\\"\" + literalEscape(found1) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n }\n\n public message: string;\n public expected: Expectation[];\n public found: string | null;\n public location: IFileRange;\n public name: string;\n\n constructor(message: string, expected: Expectation[], found: string | null, location: IFileRange) {\n super();\n this.message = message;\n this.expected = expected;\n this.found = found;\n this.location = location;\n this.name = \"SyntaxError\";\n\n if (typeof (Error as any).captureStackTrace === \"function\") {\n (Error as any).captureStackTrace(this, SyntaxError);\n }\n }\n}\n\nexport interface ICached {\n nextPos: number;\n result: any;\n}\n\nfunction peg$parse(input: string, options?: IParseOptions) {\n options = options !== undefined ? options : {};\n\n const peg$FAILED: Readonly = {};\n\n const peg$startRuleFunctions: {[id: string]: any} = { Expression: peg$parseExpression };\n let peg$startRuleFunction: () => any = peg$parseExpression;\n\n const peg$c0 = function(head: any, tail: any): any {\n return buildBinaryOperand(head, tail, true);\n };\n const peg$c1 = \"||\";\n const peg$c2 = peg$literalExpectation(\"||\", false);\n const peg$c3 = \"or\";\n const peg$c4 = peg$literalExpectation(\"or\", true);\n const peg$c5 = function(): any { return \"or\"; };\n const peg$c6 = \"&&\";\n const peg$c7 = peg$literalExpectation(\"&&\", false);\n const peg$c8 = \"and\";\n const peg$c9 = peg$literalExpectation(\"and\", true);\n const peg$c10 = function(): any { return \"and\"; };\n const peg$c11 = function(head: any, tail: any): any {\n return buildBinaryOperand(head, tail);\n };\n const peg$c12 = \"<=\";\n const peg$c13 = peg$literalExpectation(\"<=\", false);\n const peg$c14 = \"lessorequal\";\n const peg$c15 = peg$literalExpectation(\"lessorequal\", true);\n const peg$c16 = function(): any { return \"lessorequal\"; };\n const peg$c17 = \">=\";\n const peg$c18 = peg$literalExpectation(\">=\", false);\n const peg$c19 = \"greaterorequal\";\n const peg$c20 = peg$literalExpectation(\"greaterorequal\", true);\n const peg$c21 = function(): any { return \"greaterorequal\"; };\n const peg$c22 = \"=\";\n const peg$c23 = peg$literalExpectation(\"=\", false);\n const peg$c24 = \"equal\";\n const peg$c25 = peg$literalExpectation(\"equal\", true);\n const peg$c26 = function(): any { return \"equal\"; };\n const peg$c27 = \"!=\";\n const peg$c28 = peg$literalExpectation(\"!=\", false);\n const peg$c29 = \"notequal\";\n const peg$c30 = peg$literalExpectation(\"notequal\", true);\n const peg$c31 = function(): any { return \"notequal\"; };\n const peg$c32 = \"<\";\n const peg$c33 = peg$literalExpectation(\"<\", false);\n const peg$c34 = \"less\";\n const peg$c35 = peg$literalExpectation(\"less\", true);\n const peg$c36 = function(): any { return \"less\"; };\n const peg$c37 = \">\";\n const peg$c38 = peg$literalExpectation(\">\", false);\n const peg$c39 = \"greater\";\n const peg$c40 = peg$literalExpectation(\"greater\", true);\n const peg$c41 = function(): any { return \"greater\"; };\n const peg$c42 = \"+\";\n const peg$c43 = peg$literalExpectation(\"+\", false);\n const peg$c44 = function(): any { return \"plus\"; };\n const peg$c45 = \"-\";\n const peg$c46 = peg$literalExpectation(\"-\", false);\n const peg$c47 = function(): any { return \"minus\"; };\n const peg$c48 = \"*\";\n const peg$c49 = peg$literalExpectation(\"*\", false);\n const peg$c50 = function(): any { return \"mul\"; };\n const peg$c51 = \"/\";\n const peg$c52 = peg$literalExpectation(\"/\", false);\n const peg$c53 = function(): any { return \"div\"; };\n const peg$c54 = \"%\";\n const peg$c55 = peg$literalExpectation(\"%\", false);\n const peg$c56 = function(): any { return \"mod\"; };\n const peg$c57 = \"^\";\n const peg$c58 = peg$literalExpectation(\"^\", false);\n const peg$c59 = \"power\";\n const peg$c60 = peg$literalExpectation(\"power\", true);\n const peg$c61 = function(): any { return \"power\"; };\n const peg$c62 = \"*=\";\n const peg$c63 = peg$literalExpectation(\"*=\", false);\n const peg$c64 = \"contains\";\n const peg$c65 = peg$literalExpectation(\"contains\", true);\n const peg$c66 = \"contain\";\n const peg$c67 = peg$literalExpectation(\"contain\", true);\n const peg$c68 = function(): any { return \"contains\"; };\n const peg$c69 = \"notcontains\";\n const peg$c70 = peg$literalExpectation(\"notcontains\", true);\n const peg$c71 = \"notcontain\";\n const peg$c72 = peg$literalExpectation(\"notcontain\", true);\n const peg$c73 = function(): any { return \"notcontains\"; };\n const peg$c74 = \"anyof\";\n const peg$c75 = peg$literalExpectation(\"anyof\", true);\n const peg$c76 = function(): any {return \"anyof\"; };\n const peg$c77 = \"allof\";\n const peg$c78 = peg$literalExpectation(\"allof\", true);\n const peg$c79 = function(): any {return \"allof\"; };\n const peg$c80 = \"(\";\n const peg$c81 = peg$literalExpectation(\"(\", false);\n const peg$c82 = \")\";\n const peg$c83 = peg$literalExpectation(\")\", false);\n const peg$c84 = function(expr: any): any { return expr; };\n const peg$c85 = function(name: any, params: any): any { return new FunctionOperand(name, params); };\n const peg$c86 = \"!\";\n const peg$c87 = peg$literalExpectation(\"!\", false);\n const peg$c88 = \"negate\";\n const peg$c89 = peg$literalExpectation(\"negate\", true);\n const peg$c90 = function(expr: any): any { return new UnaryOperand(expr, \"negate\"); };\n const peg$c91 = function(expr: any, op: any): any { return new UnaryOperand(expr, op); };\n const peg$c92 = \"empty\";\n const peg$c93 = peg$literalExpectation(\"empty\", true);\n const peg$c94 = function(): any { return \"empty\"; };\n const peg$c95 = \"notempty\";\n const peg$c96 = peg$literalExpectation(\"notempty\", true);\n const peg$c97 = function(): any { return \"notempty\"; };\n const peg$c98 = \"undefined\";\n const peg$c99 = peg$literalExpectation(\"undefined\", false);\n const peg$c100 = \"null\";\n const peg$c101 = peg$literalExpectation(\"null\", false);\n const peg$c102 = function(): any { return null; };\n const peg$c103 = function(value: any): any { return new Const(value); };\n const peg$c104 = \"{\";\n const peg$c105 = peg$literalExpectation(\"{\", false);\n const peg$c106 = \"}\";\n const peg$c107 = peg$literalExpectation(\"}\", false);\n const peg$c108 = function(value: any): any { return new Variable(value); };\n const peg$c109 = function(value: any): any { return value; };\n const peg$c110 = \"''\";\n const peg$c111 = peg$literalExpectation(\"''\", false);\n const peg$c112 = function(): any {return \"\"; };\n const peg$c113 = \"\\\"\\\"\";\n const peg$c114 = peg$literalExpectation(\"\\\"\\\"\", false);\n const peg$c115 = \"'\";\n const peg$c116 = peg$literalExpectation(\"'\", false);\n const peg$c117 = function(value: any): any { return \"'\" + value + \"'\"; };\n const peg$c118 = \"\\\"\";\n const peg$c119 = peg$literalExpectation(\"\\\"\", false);\n const peg$c120 = \"[\";\n const peg$c121 = peg$literalExpectation(\"[\", false);\n const peg$c122 = \"]\";\n const peg$c123 = peg$literalExpectation(\"]\", false);\n const peg$c124 = function(sequence: any): any { return sequence; };\n const peg$c125 = \",\";\n const peg$c126 = peg$literalExpectation(\",\", false);\n const peg$c127 = function(expr: any, tail: any): any {\n if (expr == null)\n return new ArrayOperand([]);\n\n var array = [expr];\n if (Array.isArray(tail)) {\n var flatten = flattenArray(tail);\n for (var i = 3; i < flatten.length; i += 4) {\n array.push(flatten[i]);\n }\n }\n\n return new ArrayOperand(array);\n };\n const peg$c128 = \"true\";\n const peg$c129 = peg$literalExpectation(\"true\", true);\n const peg$c130 = function(): any { return true; };\n const peg$c131 = \"false\";\n const peg$c132 = peg$literalExpectation(\"false\", true);\n const peg$c133 = function(): any { return false; };\n const peg$c134 = \"0x\";\n const peg$c135 = peg$literalExpectation(\"0x\", false);\n const peg$c136 = function(): any { return parseInt(text(), 16); };\n const peg$c137 = /^[\\-]/;\n const peg$c138 = peg$classExpectation([\"-\"], false, false);\n const peg$c139 = function(sign: any, num: any): any { return sign == null ? num : -num; };\n const peg$c140 = \".\";\n const peg$c141 = peg$literalExpectation(\".\", false);\n const peg$c142 = function(): any { return parseFloat(text()); };\n const peg$c143 = function(): any { return parseInt(text(), 10); };\n const peg$c144 = \"0\";\n const peg$c145 = peg$literalExpectation(\"0\", false);\n const peg$c146 = function(): any { return 0; };\n const peg$c147 = function(chars: any): any { return chars.join(\"\"); };\n const peg$c148 = \"\\\\'\";\n const peg$c149 = peg$literalExpectation(\"\\\\'\", false);\n const peg$c150 = function(): any { return \"'\"; };\n const peg$c151 = \"\\\\\\\"\";\n const peg$c152 = peg$literalExpectation(\"\\\\\\\"\", false);\n const peg$c153 = function(): any { return \"\\\"\"; };\n const peg$c154 = /^[^\"']/;\n const peg$c155 = peg$classExpectation([\"\\\"\", \"'\"], true, false);\n const peg$c156 = function(): any { return text(); };\n const peg$c157 = /^[^{}]/;\n const peg$c158 = peg$classExpectation([\"{\", \"}\"], true, false);\n const peg$c159 = /^[0-9]/;\n const peg$c160 = peg$classExpectation([[\"0\", \"9\"]], false, false);\n const peg$c161 = /^[1-9]/;\n const peg$c162 = peg$classExpectation([[\"1\", \"9\"]], false, false);\n const peg$c163 = /^[a-zA-Z]/;\n const peg$c164 = peg$classExpectation([[\"a\", \"z\"], [\"A\", \"Z\"]], false, false);\n const peg$c165 = peg$otherExpectation(\"whitespace\");\n const peg$c166 = /^[ \\t\\n\\r]/;\n const peg$c167 = peg$classExpectation([\" \", \"\\t\", \"\\n\", \"\\r\"], false, false);\n\n let peg$currPos = 0;\n let peg$savedPos = 0;\n const peg$posDetailsCache = [{ line: 1, column: 1 }];\n let peg$maxFailPos = 0;\n let peg$maxFailExpected: Expectation[] = [];\n let peg$silentFails = 0;\n\n const peg$resultsCache: {[id: number]: ICached} = {};\n\n let peg$result;\n\n if (options.startRule !== undefined) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n\n function text(): string {\n return input.substring(peg$savedPos, peg$currPos);\n }\n\n function location(): IFileRange {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n\n function expected(description: string, location1?: IFileRange) {\n location1 = location1 !== undefined\n ? location1\n : peg$computeLocation(peg$savedPos, peg$currPos);\n\n throw peg$buildStructuredError(\n [peg$otherExpectation(description)],\n input.substring(peg$savedPos, peg$currPos),\n location1\n );\n }\n\n function error(message: string, location1?: IFileRange) {\n location1 = location1 !== undefined\n ? location1\n : peg$computeLocation(peg$savedPos, peg$currPos);\n\n throw peg$buildSimpleError(message, location1);\n }\n\n function peg$literalExpectation(text1: string, ignoreCase: boolean): ILiteralExpectation {\n return { type: \"literal\", text: text1, ignoreCase: ignoreCase };\n }\n\n function peg$classExpectation(parts: IClassParts, inverted: boolean, ignoreCase: boolean): IClassExpectation {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n\n function peg$anyExpectation(): IAnyExpectation {\n return { type: \"any\" };\n }\n\n function peg$endExpectation(): IEndExpectation {\n return { type: \"end\" };\n }\n\n function peg$otherExpectation(description: string): IOtherExpectation {\n return { type: \"other\", description: description };\n }\n\n function peg$computePosDetails(pos: number) {\n let details = peg$posDetailsCache[pos];\n let p;\n\n if (details) {\n return details;\n } else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n } else {\n details.column++;\n }\n\n p++;\n }\n\n peg$posDetailsCache[pos] = details;\n\n return details;\n }\n }\n\n function peg$computeLocation(startPos: number, endPos: number): IFileRange {\n const startPosDetails = peg$computePosDetails(startPos);\n const endPosDetails = peg$computePosDetails(endPos);\n\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n\n function peg$fail(expected1: Expectation) {\n if (peg$currPos < peg$maxFailPos) { return; }\n\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n\n peg$maxFailExpected.push(expected1);\n }\n\n function peg$buildSimpleError(message: string, location1: IFileRange) {\n return new SyntaxError(message, [], \"\", location1);\n }\n\n function peg$buildStructuredError(expected1: Expectation[], found: string | null, location1: IFileRange) {\n return new SyntaxError(\n SyntaxError.buildMessage(expected1, found),\n expected1,\n found,\n location1\n );\n }\n\n function peg$parseExpression(): Operand {\n let s0, s1, s2, s3, s4, s5, s6, s7, s8;\n\n const key = peg$currPos * 34 + 0;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseLogicOr();\n if (s2 !== peg$FAILED) {\n s3 = [];\n s4 = peg$currPos;\n s5 = peg$parse_();\n if (s5 !== peg$FAILED) {\n s6 = peg$parseOrSign();\n if (s6 !== peg$FAILED) {\n s7 = peg$parse_();\n if (s7 !== peg$FAILED) {\n s8 = peg$parseLogicOr();\n if (s8 !== peg$FAILED) {\n s5 = [s5, s6, s7, s8];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n s4 = peg$currPos;\n s5 = peg$parse_();\n if (s5 !== peg$FAILED) {\n s6 = peg$parseOrSign();\n if (s6 !== peg$FAILED) {\n s7 = peg$parse_();\n if (s7 !== peg$FAILED) {\n s8 = peg$parseLogicOr();\n if (s8 !== peg$FAILED) {\n s5 = [s5, s6, s7, s8];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s2, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseOrSign(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 1;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c1) {\n s1 = peg$c1;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c2); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 2).toLowerCase() === peg$c3) {\n s1 = input.substr(peg$currPos, 2);\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c4); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c5();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseLogicOr(): BinaryOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 2;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseLogicAnd();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseAndSign();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseLogicAnd();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseAndSign();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseLogicAnd();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseAndSign(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 3;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c6) {\n s1 = peg$c6;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c7); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 3).toLowerCase() === peg$c8) {\n s1 = input.substr(peg$currPos, 3);\n peg$currPos += 3;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c9); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c10();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseLogicAnd(): BinaryOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 4;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseCompOps();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseComparableOperators();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseCompOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseComparableOperators();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseCompOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c11(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseComparableOperators(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 5;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c12) {\n s1 = peg$c12;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c13); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 11).toLowerCase() === peg$c14) {\n s1 = input.substr(peg$currPos, 11);\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c15); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c16();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c17) {\n s1 = peg$c17;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 14).toLowerCase() === peg$c19) {\n s1 = input.substr(peg$currPos, 14);\n peg$currPos += 14;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c20); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 61) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c24) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c25); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c26();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c27) {\n s1 = peg$c27;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c28); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 8).toLowerCase() === peg$c29) {\n s1 = input.substr(peg$currPos, 8);\n peg$currPos += 8;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c30); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c31();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 60) {\n s1 = peg$c32;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c33); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 4).toLowerCase() === peg$c34) {\n s1 = input.substr(peg$currPos, 4);\n peg$currPos += 4;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c35); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c36();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 62) {\n s1 = peg$c37;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c38); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 7).toLowerCase() === peg$c39) {\n s1 = input.substr(peg$currPos, 7);\n peg$currPos += 7;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c40); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c41();\n }\n s0 = s1;\n }\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseCompOps(): BinaryOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 6;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsePlusMinusOps();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsePlusMinusSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsePlusMinusOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsePlusMinusSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsePlusMinusOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsePlusMinusSigns(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 7;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 43) {\n s1 = peg$c42;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c43); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c44();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 45) {\n s1 = peg$c45;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c46); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c47();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsePlusMinusOps(): BinaryOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 8;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseMulDivOps();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseMulDivSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseMulDivOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseMulDivSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseMulDivOps();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseMulDivSigns(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 9;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 42) {\n s1 = peg$c48;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c50();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 47) {\n s1 = peg$c51;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c52); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c53();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 37) {\n s1 = peg$c54;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c55); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56();\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseMulDivOps(): BinaryOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 10;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseBinaryFuncOp();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsePowerSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseBinaryFuncOp();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsePowerSigns();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseBinaryFuncOp();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsePowerSigns(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 11;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 94) {\n s1 = peg$c57;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c59) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c61();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseBinaryFuncOp(): any {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 12;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseFactor();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseBinFunctions();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseFactor();\n if (s7 === peg$FAILED) {\n s7 = null;\n }\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parseBinFunctions();\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseFactor();\n if (s7 === peg$FAILED) {\n s7 = null;\n }\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c11(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseBinFunctions(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 13;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c62) {\n s1 = peg$c62;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c63); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 8).toLowerCase() === peg$c64) {\n s1 = input.substr(peg$currPos, 8);\n peg$currPos += 8;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c65); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 7).toLowerCase() === peg$c66) {\n s1 = input.substr(peg$currPos, 7);\n peg$currPos += 7;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c67); }\n }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c68();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11).toLowerCase() === peg$c69) {\n s1 = input.substr(peg$currPos, 11);\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 10).toLowerCase() === peg$c71) {\n s1 = input.substr(peg$currPos, 10);\n peg$currPos += 10;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c72); }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c73();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c74) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c76();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c77) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c78); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c79();\n }\n s0 = s1;\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseFactor(): Operand {\n let s0, s1, s2, s3, s4, s5;\n\n const key = peg$currPos * 34 + 14;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 40) {\n s1 = peg$c80;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c81); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseExpression();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c82;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c83); }\n }\n if (s5 === peg$FAILED) {\n s5 = null;\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c84(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$parseFunctionOp();\n if (s0 === peg$FAILED) {\n s0 = peg$parseUnaryFunctionOp();\n if (s0 === peg$FAILED) {\n s0 = peg$parseAtom();\n if (s0 === peg$FAILED) {\n s0 = peg$parseArrayOp();\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseFunctionOp(): any {\n let s0, s1, s2, s3, s4;\n\n const key = peg$currPos * 34 + 15;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseLettersAndDigits();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 40) {\n s2 = peg$c80;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c81); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parseSequence();\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s4 = peg$c82;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c83); }\n }\n if (s4 === peg$FAILED) {\n s4 = null;\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c85(s1, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseUnaryFunctionOp(): any {\n let s0, s1, s2, s3;\n\n const key = peg$currPos * 34 + 16;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c86;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c87); }\n }\n if (s1 === peg$FAILED) {\n if (input.substr(peg$currPos, 6).toLowerCase() === peg$c88) {\n s1 = input.substr(peg$currPos, 6);\n peg$currPos += 6;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c89); }\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseExpression();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c90(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseAtom();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseUnFunctions();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c91(s1, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseUnFunctions(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 17;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c92) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c93); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c94();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 8).toLowerCase() === peg$c95) {\n s1 = input.substr(peg$currPos, 8);\n peg$currPos += 8;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c96); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c97();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseAtom(): any {\n let s0, s1, s2, s3, s4;\n\n const key = peg$currPos * 34 + 18;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.substr(peg$currPos, 9) === peg$c98) {\n s2 = peg$c98;\n peg$currPos += 9;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c99); }\n }\n if (s2 === peg$FAILED) {\n if (input.substr(peg$currPos, 4) === peg$c100) {\n s2 = peg$c100;\n peg$currPos += 4;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c101); }\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c102();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseConstValue();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c103(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 123) {\n s2 = peg$c104;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c105); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parseValueInput();\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s4 = peg$c106;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c107); }\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c108(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseConstValue(): any {\n let s0, s1, s2, s3;\n\n const key = peg$currPos * 34 + 19;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseLogicValue();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c109(s1);\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseArithmeticValue();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c109(s1);\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseLettersAndDigits();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c109(s1);\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c110) {\n s1 = peg$c110;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c111); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c112();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c113) {\n s1 = peg$c113;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c114); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c112();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c115;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c116); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseAnyInput();\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s3 = peg$c115;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c116); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c117(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 34) {\n s1 = peg$c118;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c119); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseAnyInput();\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 34) {\n s3 = peg$c118;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c119); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c117(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n }\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseArrayOp(): any {\n let s0, s1, s2, s3;\n\n const key = peg$currPos * 34 + 20;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 91) {\n s1 = peg$c120;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c121); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseSequence();\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 93) {\n s3 = peg$c122;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c123); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c124(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseSequence(): ArrayOperand {\n let s0, s1, s2, s3, s4, s5, s6, s7;\n\n const key = peg$currPos * 34 + 21;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseExpression();\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c125;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c126); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseExpression();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c125;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c126); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseExpression();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c127(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseLogicValue(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 22;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 4).toLowerCase() === peg$c128) {\n s1 = input.substr(peg$currPos, 4);\n peg$currPos += 4;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c129); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c130();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5).toLowerCase() === peg$c131) {\n s1 = input.substr(peg$currPos, 5);\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c132); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c133();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseArithmeticValue(): any {\n let s0, s1, s2;\n\n const key = peg$currPos * 34 + 23;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c134) {\n s1 = peg$c134;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c135); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseDigits();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c136();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (peg$c137.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c138); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseNumber();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c139(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseNumber(): any {\n let s0, s1, s2, s3;\n\n const key = peg$currPos * 34 + 24;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseDigits();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 46) {\n s2 = peg$c140;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c141); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parseDigits();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c142();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseNonZeroDigits();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseDigits();\n if (s2 === peg$FAILED) {\n s2 = null;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c143();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 48) {\n s1 = peg$c144;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c145); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c146();\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseValueInput(): any {\n let s0, s1, s2;\n\n const key = peg$currPos * 34 + 25;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parseValueCharacters();\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parseValueCharacters();\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c147(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseAnyInput(): any {\n let s0, s1, s2;\n\n const key = peg$currPos * 34 + 26;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parseAnyCharacters();\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parseAnyCharacters();\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c147(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseAnyCharacters(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 27;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c148) {\n s1 = peg$c148;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c149); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c150();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c151) {\n s1 = peg$c151;\n peg$currPos += 2;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c152); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c153();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (peg$c154.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c155); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c156();\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseValueCharacters(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 28;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (peg$c157.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c158); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c156();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseLettersAndDigits(): any {\n let s0, s1, s2, s3, s4, s5, s6;\n\n const key = peg$currPos * 34 + 29;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseLetters();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parseDigits();\n if (s4 !== peg$FAILED) {\n s5 = [];\n s6 = peg$parseLetters();\n while (s6 !== peg$FAILED) {\n s5.push(s6);\n s6 = peg$parseLetters();\n }\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parseDigits();\n if (s4 !== peg$FAILED) {\n s5 = [];\n s6 = peg$parseLetters();\n while (s6 !== peg$FAILED) {\n s5.push(s6);\n s6 = peg$parseLetters();\n }\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c156();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseDigits(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 30;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c159.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c160); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c159.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c160); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseNonZeroDigits(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 31;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c161.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c162); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c161.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c162); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseLetters(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 32;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c163.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c164); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c163.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c164); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parse_(): any {\n let s0, s1;\n\n const key = peg$currPos * 34 + 33;\n const cached: ICached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n peg$silentFails++;\n s0 = [];\n if (peg$c166.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c167); }\n }\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c166.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c167); }\n }\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c165); }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n\n function buildBinaryOperand(head: Operand, tail: Array, isArithmeticOp: boolean = false) {\n return tail.reduce(\n function(result, elements) {\n return new BinaryOperand(elements[1], result, elements[3], isArithmeticOp);\n }, \n head);\n }\n\n function flattenArray(array: Array): Array {\n return [].concat.apply([], array);\n }\n\n\n peg$result = peg$startRuleFunction();\n\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n } else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n\n throw peg$buildStructuredError(\n peg$maxFailExpected,\n peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,\n peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)\n );\n }\n}\n\nexport interface IParseOptions {\n filename?: string;\n startRule?: string;\n tracer?: any;\n [key: string]: any;\n}\nexport type ParseFunction = (input: string, options?: IParseOptions) => any;\nexport const parse: ParseFunction = peg$parse;\n\n","import { HashTable, Helpers } from \"../helpers\";\nimport { FunctionFactory } from \"../functionsfactory\";\nimport { ProcessValue } from \"../conditionProcessValue\";\nimport { equal } from \"assert\";\n\nexport abstract class Operand {\n public toString(func: (op: Operand) => string = undefined): string {\n return \"\";\n }\n public abstract getType(): string;\n public abstract evaluate(processValue?: ProcessValue): any;\n public abstract setVariables(variables: Array): any;\n public hasFunction(): boolean {\n return false;\n }\n public hasAsyncFunction() {\n return false;\n }\n public addToAsyncList(list: Array): void {}\n}\n\nexport class BinaryOperand extends Operand {\n private consumer: Function;\n private isArithmeticValue: boolean;\n constructor(\n private operatorName: string,\n private left: any = null,\n private right: any = null,\n isArithmeticOp: boolean = false\n ) {\n super();\n this.isArithmeticValue = isArithmeticOp;\n if (isArithmeticOp) {\n this.consumer = OperandMaker.binaryFunctions[\"arithmeticOp\"](\n operatorName\n );\n } else {\n this.consumer = OperandMaker.binaryFunctions[operatorName];\n }\n\n if (this.consumer == null) {\n OperandMaker.throwInvalidOperatorError(operatorName);\n }\n }\n public getType(): string {\n return \"binary\";\n }\n public get isArithmetic() {\n return this.isArithmeticValue;\n }\n public get isConjunction() {\n return this.operatorName == \"or\" || this.operatorName == \"and\";\n }\n public get conjunction(): string {\n return this.isConjunction ? this.operatorName : \"\";\n }\n public get operator(): string {\n return this.operatorName;\n }\n public get leftOperand() {\n return this.left;\n }\n public get rightOperand() {\n return this.right;\n }\n\n private evaluateParam(x: any, processValue?: ProcessValue): any {\n return x == null ? null : x.evaluate(processValue);\n }\n\n public evaluate(processValue?: ProcessValue): any {\n return this.consumer.call(\n this,\n this.evaluateParam(this.left, processValue),\n this.evaluateParam(this.right, processValue)\n );\n }\n\n public toString(func: (op: Operand) => string = undefined): string {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n return (\n \"(\" +\n OperandMaker.safeToString(this.left, func) +\n \" \" +\n OperandMaker.operatorToString(this.operatorName) +\n \" \" +\n OperandMaker.safeToString(this.right, func) +\n \")\"\n );\n }\n\n public setVariables(variables: Array) {\n if (this.left != null) this.left.setVariables(variables);\n if (this.right != null) this.right.setVariables(variables);\n }\n\n public hasFunction(): boolean {\n return (\n (!!this.left && this.left.hasFunction()) ||\n (!!this.right && this.right.hasFunction())\n );\n }\n public hasAsyncFunction(): boolean {\n return (\n (!!this.left && this.left.hasAsyncFunction()) ||\n (!!this.right && this.right.hasAsyncFunction())\n );\n }\n public addToAsyncList(list: Array) {\n if (!!this.left) this.left.addToAsyncList(list);\n if (!!this.right) this.right.addToAsyncList(list);\n }\n}\n\nexport class UnaryOperand extends Operand {\n private consumer: Function;\n constructor(private expressionValue: Operand, private operatorName: string) {\n super();\n this.consumer = OperandMaker.unaryFunctions[operatorName];\n if (this.consumer == null) {\n OperandMaker.throwInvalidOperatorError(operatorName);\n }\n }\n public get operator(): string {\n return this.operatorName;\n }\n public get expression(): Operand {\n return this.expressionValue;\n }\n public getType(): string {\n return \"unary\";\n }\n public toString(func: (op: Operand) => string = undefined): string {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n return (\n OperandMaker.operatorToString(this.operatorName) +\n \" \" +\n this.expression.toString(func)\n );\n }\n\n public evaluate(processValue?: ProcessValue): boolean {\n let value = this.expression.evaluate(processValue);\n return this.consumer.call(this, value);\n }\n\n public setVariables(variables: Array) {\n this.expression.setVariables(variables);\n }\n}\n\nexport class ArrayOperand extends Operand {\n constructor(public values: Array) {\n super();\n }\n public getType(): string {\n return \"array\";\n }\n public toString(func: (op: Operand) => string = undefined): string {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n return (\n \"[\" +\n this.values\n .map(function(el: Operand) {\n return el.toString(func);\n })\n .join(\", \") +\n \"]\"\n );\n }\n\n public evaluate(processValue?: ProcessValue): Array {\n return this.values.map(function(el: Operand) {\n return el.evaluate(processValue);\n });\n }\n\n public setVariables(variables: Array) {\n this.values.forEach(el => {\n el.setVariables(variables);\n });\n }\n\n public hasFunction(): boolean {\n return this.values.some(operand => operand.hasFunction());\n }\n public hasAsyncFunction(): boolean {\n return this.values.some(operand => operand.hasAsyncFunction());\n }\n public addToAsyncList(list: Array) {\n this.values.forEach(operand => operand.addToAsyncList(list));\n }\n}\n\nexport class Const extends Operand {\n constructor(private value: any) {\n super();\n }\n public getType(): string {\n return \"const\";\n }\n public toString(func: (op: Operand) => string = undefined): string {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n return this.value.toString();\n }\n public get correctValue(): any {\n return this.getCorrectValue(this.value);\n }\n\n public evaluate(): any {\n return this.getCorrectValue(this.value);\n }\n\n public setVariables(variables: Array) {}\n protected getCorrectValue(value: any): any {\n if (!value || typeof value != \"string\") return value;\n if (this.isBooleanValue(value)) return value.toLowerCase() === \"true\";\n if (\n value.length > 1 &&\n this.isQuote(value[0]) &&\n this.isQuote(value[value.length - 1])\n )\n return value.substr(1, value.length - 2);\n if (OperandMaker.isNumeric(value)) {\n if (value.indexOf(\"0x\") == 0) return parseInt(value);\n if (value.length > 1 && value[0] == \"0\") return value;\n return parseFloat(value);\n }\n return value;\n }\n private isQuote(ch: string): boolean {\n return ch == \"'\" || ch == '\"';\n }\n private isBooleanValue(value: any): boolean {\n return (\n value &&\n (value.toLowerCase() === \"true\" || value.toLowerCase() === \"false\")\n );\n }\n}\n\nexport class Variable extends Const {\n static DisableConversionChar = \"#\";\n private valueInfo: any = {};\n private useValueAsItIs: boolean = false;\n constructor(private variableName: string) {\n super(variableName);\n if (\n !!this.variableName &&\n this.variableName.length > 1 &&\n this.variableName[0] === Variable.DisableConversionChar\n ) {\n this.variableName = this.variableName.substr(1);\n this.useValueAsItIs = true;\n }\n }\n public getType(): string {\n return \"variable\";\n }\n public toString(func: (op: Operand) => string = undefined): string {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n var prefix = this.useValueAsItIs ? Variable.DisableConversionChar : \"\";\n return \"{\" + prefix + this.variableName + \"}\";\n }\n public get variable() {\n return this.variableName;\n }\n public evaluate(processValue?: ProcessValue): any {\n this.valueInfo.name = this.variableName;\n processValue.getValueInfo(this.valueInfo);\n return this.valueInfo.hasValue\n ? this.getCorrectValue(this.valueInfo.value)\n : null;\n }\n public setVariables(variables: Array) {\n variables.push(this.variableName);\n }\n protected getCorrectValue(value: any): any {\n if (this.useValueAsItIs) return value;\n return super.getCorrectValue(value);\n }\n}\n\nexport class FunctionOperand extends Operand {\n private isReadyValue: boolean;\n private asynResult: any;\n public onAsyncReady: () => void;\n constructor(private originalValue: string, private parameters: ArrayOperand) {\n super();\n this.isReadyValue = false;\n if (Array.isArray(parameters) && parameters.length === 0) {\n this.parameters = new ArrayOperand([]);\n }\n }\n public getType(): string {\n return \"function\";\n }\n public evaluateAsync(processValue: ProcessValue) {\n this.isReadyValue = false;\n var asyncProcessValue = new ProcessValue();\n asyncProcessValue.values = Helpers.createCopy(processValue.values);\n asyncProcessValue.properties = Helpers.createCopy(processValue.properties);\n asyncProcessValue.properties.returnResult = (result: any) => {\n this.asynResult = result;\n this.isReadyValue = true;\n this.onAsyncReady();\n };\n this.evaluateCore(asyncProcessValue);\n }\n public evaluate(processValue?: ProcessValue): any {\n if (this.isReady) return this.asynResult;\n return this.evaluateCore(processValue);\n }\n private evaluateCore(processValue?: ProcessValue): any {\n return FunctionFactory.Instance.run(\n this.originalValue,\n this.parameters.evaluate(processValue),\n processValue.properties\n );\n }\n\n public toString(func: (op: Operand) => string = undefined) {\n if (!!func) {\n var res = func(this);\n if (!!res) return res;\n }\n return this.originalValue + \"(\" + this.parameters.toString(func) + \")\";\n }\n\n public setVariables(variables: Array) {\n this.parameters.setVariables(variables);\n }\n public get isReady() {\n return this.isReadyValue;\n }\n public hasFunction(): boolean {\n return true;\n }\n public hasAsyncFunction(): boolean {\n return FunctionFactory.Instance.isAsyncFunction(this.originalValue);\n }\n public addToAsyncList(list: Array) {\n if (this.hasAsyncFunction()) {\n list.push(this);\n }\n }\n}\n\nexport class OperandMaker {\n static throwInvalidOperatorError(op: string) {\n throw new Error(\"Invalid operator: '\" + op + \"'\");\n }\n\n static safeToString(operand: Operand, func: (op: Operand) => string): string {\n return operand == null ? \"\" : operand.toString(func);\n }\n\n static toOperandString(value: string): string {\n if (\n !!value &&\n !OperandMaker.isNumeric(value) &&\n !OperandMaker.isBooleanValue(value)\n )\n value = \"'\" + value + \"'\";\n return value;\n }\n\n static isSpaceString(str: string): boolean {\n return !!str && !str.replace(\" \", \"\");\n }\n\n static isNumeric(value: string): boolean {\n if (\n !!value &&\n (value.indexOf(\"-\") > -1 ||\n value.indexOf(\"+\") > 1 ||\n value.indexOf(\"*\") > -1 ||\n value.indexOf(\"^\") > -1 ||\n value.indexOf(\"/\") > -1 ||\n value.indexOf(\"%\") > -1)\n )\n return false;\n if (OperandMaker.isSpaceString(value)) return false;\n return Helpers.isNumber(value);\n }\n\n static isBooleanValue(value: string): boolean {\n return (\n !!value &&\n (value.toLowerCase() === \"true\" || value.toLowerCase() === \"false\")\n );\n }\n\n static unaryFunctions: HashTable = {\n empty: function(value: any): boolean {\n return Helpers.isValueEmpty(value);\n },\n notempty: function(value: any): boolean {\n return !OperandMaker.unaryFunctions.empty(value);\n },\n negate: function(value: boolean): boolean {\n return !value;\n },\n };\n\n static binaryFunctions: HashTable = {\n arithmeticOp(operatorName: string) {\n return function(a: any, b: any): any {\n if (Helpers.isValueEmpty(a) && !OperandMaker.isSpaceString(a)) {\n a = typeof b === \"string\" ? \"\" : 0;\n }\n if (Helpers.isValueEmpty(b) && !OperandMaker.isSpaceString(b)) {\n b = typeof a === \"string\" ? \"\" : 0;\n }\n\n let consumer = OperandMaker.binaryFunctions[operatorName];\n return consumer == null ? null : consumer.call(this, a, b);\n };\n },\n and: function(a: boolean, b: boolean): boolean {\n return a && b;\n },\n or: function(a: boolean, b: boolean): boolean {\n return a || b;\n },\n plus: function(a: any, b: any): any {\n return a + b;\n },\n minus: function(a: number, b: number): number {\n return a - b;\n },\n mul: function(a: number, b: number): number {\n return a * b;\n },\n div: function(a: number, b: number): number {\n if (!b) return null;\n return a / b;\n },\n mod: function(a: number, b: number): number {\n if (!b) return null;\n return a % b;\n },\n power: function(a: number, b: number): number {\n return Math.pow(a, b);\n },\n greater: function(left: any, right: any): boolean {\n if (left == null || right == null) return false;\n return left > right;\n },\n less: function(left: any, right: any): boolean {\n if (left == null || right == null) return false;\n return left < right;\n },\n greaterorequal: function(left: any, right: any): boolean {\n if (OperandMaker.binaryFunctions.equal(left, right)) return true;\n return OperandMaker.binaryFunctions.greater(left, right);\n },\n lessorequal: function(left: any, right: any): boolean {\n if (OperandMaker.binaryFunctions.equal(left, right)) return true;\n return OperandMaker.binaryFunctions.less(left, right);\n },\n equal: function(left: any, right: any): boolean {\n return OperandMaker.isTwoValueEquals(left, right);\n },\n notequal: function(left: any, right: any): boolean {\n return !OperandMaker.binaryFunctions.equal(left, right);\n },\n contains: function(left: any, right: any): boolean {\n return OperandMaker.binaryFunctions.containsCore(left, right, true);\n },\n notcontains: function(left: any, right: any): boolean {\n if (!left && !Helpers.isValueEmpty(right)) return true;\n return OperandMaker.binaryFunctions.containsCore(left, right, false);\n },\n anyof: function(left: any, right: any): boolean {\n if (!left && Helpers.isValueEmpty(right)) return true;\n if (!left || (!Array.isArray(left) && left.length === 0)) return false;\n if (Helpers.isValueEmpty(right)) return true;\n if (!Array.isArray(left))\n return OperandMaker.binaryFunctions.contains(right, left);\n if (!Array.isArray(right))\n return OperandMaker.binaryFunctions.contains(left, right);\n for (var i = 0; i < right.length; i++) {\n if (OperandMaker.binaryFunctions.contains(left, right[i])) return true;\n }\n return false;\n },\n allof: function(left: any, right: any): boolean {\n if (!left && !Helpers.isValueEmpty(right)) return false;\n if (!Array.isArray(right))\n return OperandMaker.binaryFunctions.contains(left, right);\n for (var i = 0; i < right.length; i++) {\n if (!OperandMaker.binaryFunctions.contains(left, right[i]))\n return false;\n }\n return true;\n },\n containsCore: function(left: any, right: any, isContains: any): boolean {\n if (!left) return false;\n if (!left.length) {\n left = left.toString();\n }\n if (typeof left === \"string\" || left instanceof String) {\n if (!right) return false;\n right = right.toString();\n var found = left.indexOf(right) > -1;\n return isContains ? found : !found;\n }\n var rightArray = Array.isArray(right) ? right : [right];\n for (var rIndex = 0; rIndex < rightArray.length; rIndex++) {\n var i = 0;\n right = rightArray[rIndex];\n for (; i < left.length; i++) {\n if (OperandMaker.isTwoValueEquals(left[i], right)) break;\n }\n if (i == left.length) return !isContains;\n }\n return isContains;\n },\n };\n\n static isTwoValueEquals(x: any, y: any): boolean {\n if (x === \"undefined\") x = undefined;\n if (y === \"undefined\") y = undefined;\n return Helpers.isTwoValueEquals(x, y, true);\n }\n\n static operatorToString(operatorName: string): string {\n let opStr = OperandMaker.signs[operatorName];\n return opStr == null ? operatorName : opStr;\n }\n\n static signs: HashTable = {\n less: \"<\",\n lessorequal: \"<=\",\n greater: \">\",\n greaterorequal: \">=\",\n equal: \"==\",\n notequal: \"!=\",\n plus: \"+\",\n minus: \"-\",\n mul: \"*\",\n div: \"/\",\n and: \"and\",\n or: \"or\",\n power: \"^\",\n mod: \"%\",\n negate: \"!\",\n };\n}\n","import { Serializer } from \"./jsonobject\";\nimport { IElement, IQuestion } from \"./base\";\nimport { PanelModel } from \"./panel\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { Question } from \"./question\";\n\n/**\n * The flow panel object. It is a container with flow layout where you can mix questions with markdown text.\n *\n */\nexport class FlowPanelModel extends PanelModel {\n static contentElementNamePrefix = \"element:\";\n public contentChangedCallback: () => void;\n public onGetHtmlForQuestion: (question: Question) => string;\n public onCustomHtmlProducing: () => string;\n constructor(name: string = \"\") {\n super(name);\n this.createLocalizableString(\"content\", this, true);\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"content\", function () {\n self.onContentChanged();\n });\n }\n public getType(): string {\n return \"flowpanel\";\n }\n getChildrenLayoutType(): string {\n return \"flow\";\n }\n onSurveyLoad(): any {\n super.onSurveyLoad();\n this.onContentChanged();\n }\n public get content(): string {\n return this.getLocalizableStringText(\"content\");\n }\n public set content(val: string) {\n this.setLocalizableStringText(\"content\", val);\n }\n public get locContent(): LocalizableString {\n return this.getLocalizableString(\"content\");\n }\n public get html(): string {\n return this.getPropertyValue(\"html\", \"\");\n }\n public set html(val: string) {\n this.setPropertyValue(\"html\", val);\n }\n protected onContentChanged(): any {\n var html = \"\";\n if (!!this.onCustomHtmlProducing) {\n html = this.onCustomHtmlProducing();\n } else {\n html = this.produceHtml();\n }\n this.html = html;\n if (!!this.contentChangedCallback) this.contentChangedCallback();\n }\n public produceHtml(): string {\n var html = [];\n //contentElementNamePrefix\n var regEx = /{(.*?(element:)[^$].*?)}/g;\n var str = this.content;\n var startIndex = 0;\n var res = null;\n while ((res = regEx.exec(str)) !== null) {\n if (res.index > startIndex) {\n html.push(str.substr(startIndex, res.index - startIndex));\n startIndex = res.index;\n }\n var question = this.getQuestionFromText(res[0]);\n if (!!question) {\n html.push(this.getHtmlForQuestion(question));\n } else {\n html.push(\n str.substr(startIndex, res.index + res[0].length - startIndex)\n );\n }\n startIndex = res.index + res[0].length;\n }\n if (startIndex < str.length) {\n html.push(str.substr(startIndex, str.length - startIndex));\n }\n return html.join(\"\").replace(new RegExp(\"
\", \"g\"), \"
\");\n }\n public getQuestionFromText(str: string): Question {\n str = str.substr(1, str.length - 2);\n str = str.replace(FlowPanelModel.contentElementNamePrefix, \"\").trim();\n return this.getQuestionByName(str);\n }\n protected getHtmlForQuestion(question: Question): string {\n if (!!this.onGetHtmlForQuestion) return this.onGetHtmlForQuestion(question);\n return \"\";\n }\n protected getQuestionHtmlId(question: Question): string {\n return this.name + \"_\" + question.id;\n }\n protected onAddElement(element: IElement, index: number) {\n super.onAddElement(element, index);\n this.addElementToContent(element);\n element.renderWidth = \"\";\n }\n protected onRemoveElement(element: IElement) {\n var searchStr = this.getElementContentText(element);\n this.content = this.content.replace(searchStr, \"\");\n super.onRemoveElement(element);\n }\n dragDropMoveElement(src: IElement, target: IElement, targetIndex: number) {}\n private addElementToContent(element: IElement) {\n if (this.isLoadingFromJson) return;\n var text = this.getElementContentText(element);\n if (!this.insertTextAtCursor(text)) {\n this.content = this.content + text;\n }\n }\n private insertTextAtCursor(text: string, prevName: string = null): boolean {\n if (\n !this.isDesignMode ||\n typeof document === \"undefined\" ||\n !window.getSelection\n )\n return false;\n let sel = window.getSelection();\n if (sel.getRangeAt && sel.rangeCount) {\n let range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(text));\n var self = this;\n if (self.getContent) {\n var str = self.getContent(prevName);\n this.content = str;\n }\n return true;\n }\n return false;\n }\n public getElementContentText(element: IElement) {\n return \"{\" + FlowPanelModel.contentElementNamePrefix + element.name + \"}\";\n }\n}\n\nSerializer.addClass(\n \"flowpanel\",\n [{ name: \"content:html\", serializationProperty: \"locContent\" }],\n function () {\n return new FlowPanelModel();\n },\n \"panel\"\n);\n","import { HashTable, Helpers } from \"./helpers\";\n\nexport class FunctionFactory {\n public static Instance: FunctionFactory = new FunctionFactory();\n private functionHash: HashTable<(params: any[]) => any> = {};\n private isAsyncHash: HashTable = {};\n\n public register(\n name: string,\n func: (params: any[]) => any,\n isAsync: boolean = false\n ) {\n this.functionHash[name] = func;\n if (isAsync) this.isAsyncHash[name] = true;\n }\n public unregister(name: string) {\n delete this.functionHash[name];\n delete this.isAsyncHash[name];\n }\n public hasFunction(name: string): boolean {\n return !!this.functionHash[name];\n }\n public isAsyncFunction(name: string): boolean {\n return !!this.isAsyncHash[name];\n }\n\n public clear() {\n this.functionHash = {};\n }\n public getAll(): Array {\n var result = [];\n for (var key in this.functionHash) {\n result.push(key);\n }\n return result.sort();\n }\n public run(\n name: string,\n params: any[],\n properties: HashTable = null\n ): any {\n var func = this.functionHash[name];\n if (!func) return null;\n let classRunner = {\n func: func,\n };\n\n if (properties) {\n for (var key in properties) {\n (classRunner)[key] = properties[key];\n }\n }\n return classRunner.func(params);\n }\n}\n\nexport var registerFunction = FunctionFactory.Instance.register;\n\nfunction getParamsAsArray(value: any, arr: any[]) {\n if (value === undefined || value === null) return;\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n getParamsAsArray(value[i], arr);\n }\n } else {\n if (Helpers.isNumber(value)) {\n value = parseFloat(value);\n }\n arr.push(value);\n }\n}\n\nfunction sum(params: any[]): any {\n var arr: any[] = [];\n getParamsAsArray(params, arr);\n var res = 0;\n for (var i = 0; i < arr.length; i++) {\n res += arr[i];\n }\n return res;\n}\nFunctionFactory.Instance.register(\"sum\", sum);\n\nfunction min_max(params: any[], isMin: boolean): any {\n var arr: any[] = [];\n getParamsAsArray(params, arr);\n var res = undefined;\n for (var i = 0; i < arr.length; i++) {\n if (res === undefined) {\n res = arr[i];\n }\n if (isMin) {\n if (res > arr[i]) res = arr[i];\n } else {\n if (res < arr[i]) res = arr[i];\n }\n }\n return res;\n}\n\nfunction min(params: any[]): any {\n return min_max(params, true);\n}\nFunctionFactory.Instance.register(\"min\", min);\n\nfunction max(params: any[]): any {\n return min_max(params, false);\n}\nFunctionFactory.Instance.register(\"max\", max);\n\nfunction count(params: any[]): any {\n var arr: any[] = [];\n getParamsAsArray(params, arr);\n return arr.length;\n}\nFunctionFactory.Instance.register(\"count\", count);\n\nfunction avg(params: any[]): any {\n var arr: any[] = [];\n getParamsAsArray(params, arr);\n var res = 0;\n for (var i = 0; i < arr.length; i++) {\n res += arr[i];\n }\n return arr.length > 0 ? res / arr.length : 0;\n}\nFunctionFactory.Instance.register(\"avg\", avg);\n\nfunction getInArrayParams(params: any[]): any {\n if (params.length != 2) return null;\n var arr = params[0];\n if (!arr) return null;\n if (!Array.isArray(arr) && !Array.isArray(Object.keys(arr))) return null;\n var name = params[1];\n if (typeof name !== \"string\" && !(name instanceof String)) return null;\n return { data: arr, name: name };\n}\n\nfunction calcInArray(\n params: any[],\n func: (res: number, val: number) => number\n): any {\n var v = getInArrayParams(params);\n if (!v) return undefined;\n var res = undefined;\n if (Array.isArray(v.data)) {\n for (var i = 0; i < v.data.length; i++) {\n var item = v.data[i];\n if (!!item && item[v.name]) {\n res = func(res, item[v.name]);\n }\n }\n } else {\n for (var key in v.data) {\n var item = v.data[key];\n if (!!item && item[v.name]) {\n res = func(res, item[v.name]);\n }\n }\n }\n return res;\n}\n\nfunction sumInArray(params: any[]): any {\n var res = calcInArray(params, function(res: number, val: number): number {\n if (res == undefined) res = 0;\n return +res + +val;\n });\n return res !== undefined ? res : 0;\n}\nFunctionFactory.Instance.register(\"sumInArray\", sumInArray);\n\nfunction minInArray(params: any[]): any {\n return calcInArray(params, function(res: number, val: number): number {\n if (res == undefined) return val;\n return res < val ? res : val;\n });\n}\nFunctionFactory.Instance.register(\"minInArray\", minInArray);\n\nfunction maxInArray(params: any[]): any {\n return calcInArray(params, function(res: number, val: number): number {\n if (res == undefined) return val;\n return res > val ? res : val;\n });\n}\nFunctionFactory.Instance.register(\"maxInArray\", maxInArray);\n\nfunction countInArray(params: any[]): any {\n var res = calcInArray(params, function(res: number, val: number): number {\n if (res == undefined) res = 0;\n return res + 1;\n });\n return res !== undefined ? res : 0;\n}\nFunctionFactory.Instance.register(\"countInArray\", countInArray);\n\nfunction avgInArray(params: any[]): any {\n var count = countInArray(params);\n if (count == 0) return 0;\n return sumInArray(params) / count;\n}\nFunctionFactory.Instance.register(\"avgInArray\", avgInArray);\n\nfunction iif(params: any[]): any {\n if (!params && params.length !== 3) return \"\";\n return params[0] ? params[1] : params[2];\n}\nFunctionFactory.Instance.register(\"iif\", iif);\n\nfunction getDate(params: any[]): any {\n if (!params && params.length < 1) return null;\n if (!params[0]) return null;\n return new Date(params[0]);\n}\nFunctionFactory.Instance.register(\"getDate\", getDate);\n\nfunction age(params: any[]): any {\n if (!params && params.length < 1) return null;\n if (!params[0]) return null;\n var birthDate = new Date(params[0]);\n var today = new Date();\n var age = today.getFullYear() - birthDate.getFullYear();\n var m = today.getMonth() - birthDate.getMonth();\n if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {\n age -= age > 0 ? 1 : 0;\n }\n return age;\n}\nFunctionFactory.Instance.register(\"age\", age);\n\nfunction isContainerReady(params: any[]): any {\n if (!params && params.length < 1) return false;\n if (!params[0] || !this.survey) return false;\n var name = params[0];\n var container = this.survey.getPageByName(name);\n if (!container) container = this.survey.getPanelByName(name);\n if (!container) return false;\n var questions = container.questions;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].hasErrors(false)) return false;\n }\n return true;\n}\nFunctionFactory.Instance.register(\"isContainerReady\", isContainerReady);\n\nfunction isDisplayMode() {\n return this.survey && this.survey.isDisplayMode;\n}\nFunctionFactory.Instance.register(\"isDisplayMode\", isDisplayMode);\n\nfunction currentDate() {\n return new Date();\n}\nFunctionFactory.Instance.register(\"currentDate\", currentDate);\n\nfunction today(params: any[]) {\n var res = new Date();\n if (Array.isArray(params) && params.length == 1) {\n res.setDate(res.getDate() + params[0]);\n }\n return res;\n}\nFunctionFactory.Instance.register(\"today\", today);\n\nfunction diffDays(params: any[]) {\n if (!Array.isArray(params) || params.length !== 2) return 0;\n if (!params[0] || !params[1]) return 0;\n const date1: any = new Date(params[0]);\n const date2: any = new Date(params[1]);\n const diffTime = Math.abs(date2 - date1);\n return Math.ceil(diffTime / (1000 * 60 * 60 * 24));\n}\nFunctionFactory.Instance.register(\"diffDays\", diffDays);\n","export interface HashTable {\n [key: string]: T;\n}\n\nexport class Helpers {\n /**\n * A static methods that returns true if a value underfined, null, empty string or empty array.\n * @param value\n */\n public static isValueEmpty(value: any) {\n if (Array.isArray(value) && value.length === 0) return true;\n if (!!value && typeof value === \"object\" && value.constructor === Object) {\n for (var key in value) {\n if (!Helpers.isValueEmpty(value[key])) return false;\n }\n return true;\n }\n return !value && value !== 0 && value !== false;\n }\n public static isArrayContainsEqual(x: any, y: any): boolean {\n if (!Array.isArray(x) || !Array.isArray(y)) return false;\n if (x.length !== y.length) return false;\n for (var i = 0; i < x.length; i++) {\n var j = 0;\n for (; j < y.length; j++) {\n if (Helpers.isTwoValueEquals(x[i], y[j])) break;\n }\n if (j === y.length) return false;\n }\n return true;\n }\n public static isArraysEqual(\n x: any,\n y: any,\n ignoreOrder: boolean = false\n ): boolean {\n if (!Array.isArray(x) || !Array.isArray(y)) return false;\n if (x.length !== y.length) return false;\n if (ignoreOrder) {\n var xSorted = [];\n var ySorted = [];\n for (var i = 0; i < x.length; i++) {\n xSorted.push(x[i]);\n ySorted.push(y[i]);\n }\n xSorted.sort();\n ySorted.sort();\n x = xSorted;\n y = ySorted;\n }\n for (var i = 0; i < x.length; i++) {\n if (!Helpers.isTwoValueEquals(x[i], y[i])) return false;\n }\n return true;\n }\n public static isTwoValueEquals(\n x: any,\n y: any,\n ignoreOrder: boolean = false\n ): boolean {\n if (x === y) return true;\n\n if (Array.isArray(x) && x.length === 0 && typeof y === \"undefined\")\n return true;\n if (Array.isArray(y) && y.length === 0 && typeof x === \"undefined\")\n return true;\n if ((x === undefined || x === null) && y === \"\") return true;\n if ((y === undefined || y === null) && x === \"\") return true;\n\n if (typeof x === \"string\" && typeof y == \"string\") return x == y;\n\n if (Helpers.isConvertibleToNumber(x) && Helpers.isConvertibleToNumber(y)) {\n if (parseInt(x) === parseInt(y) && parseFloat(x) === parseFloat(y)) {\n return true;\n }\n }\n\n if (\n (!Helpers.isValueEmpty(x) && Helpers.isValueEmpty(y)) ||\n (Helpers.isValueEmpty(x) && !Helpers.isValueEmpty(y))\n )\n return false;\n if ((x === true || x === false) && typeof y == \"string\") {\n return x.toString() === y.toLocaleLowerCase();\n }\n if ((y === true || y === false) && typeof x == \"string\") {\n return y.toString() === x.toLocaleLowerCase();\n }\n if (!(x instanceof Object) && !(y instanceof Object)) return x == y;\n if (!(x instanceof Object) || !(y instanceof Object)) return false;\n if (x[\"equals\"]) return x.equals(y);\n if (!!x.toJSON && !!y.toJSON && !!x.getType && !!y.getType) {\n if (x.isDiposed || y.isDiposed) return false;\n if (x.getType() !== y.getType()) return false;\n if (!!x.name && x.name !== y.name) return false;\n return this.isTwoValueEquals(x.toJSON(), y.toJSON());\n }\n if (Array.isArray(x) && Array.isArray(y))\n return Helpers.isArraysEqual(x, y, ignoreOrder);\n\n for (var p in x) {\n if (!x.hasOwnProperty(p)) continue;\n if (!y.hasOwnProperty(p)) return false;\n if (x[p] === y[p]) continue;\n if (typeof x[p] !== \"object\") return false;\n if (!this.isTwoValueEquals(x[p], y[p])) return false;\n }\n for (p in y) {\n if (y.hasOwnProperty(p) && !x.hasOwnProperty(p)) return false;\n }\n return true;\n }\n public static randomizeArray(array: Array): Array {\n for (var i = array.length - 1; i > 0; i--) {\n var j = Math.floor(Math.random() * (i + 1));\n var temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n return array;\n }\n public static getUnbindValue(value: any): any {\n if (!!value && value instanceof Object) {\n //do not return the same object instance!!!\n return JSON.parse(JSON.stringify(value));\n }\n return value;\n }\n public static createCopy(obj: any) {\n var res: any = {};\n if (!obj) return res;\n for (var key in obj) {\n res[key] = obj[key];\n }\n return res;\n }\n public static isConvertibleToNumber(value: any): boolean {\n return (\n value !== undefined &&\n value !== null &&\n !Array.isArray(value) &&\n !isNaN(value)\n );\n }\n public static isNumber(value: any): boolean {\n if (\n typeof value == \"string\" &&\n !!value &&\n value.indexOf(\"0x\") == 0 &&\n value.length > 32\n )\n return false;\n return !isNaN(parseFloat(value)) && isFinite(value);\n }\n public static getMaxLength(maxLength: number, surveyLength: number): any {\n if (maxLength < 0) {\n maxLength = surveyLength;\n }\n return maxLength > 0 ? maxLength : null;\n }\n public static getNumberByIndex(index: number, startIndexStr: string): string {\n if (index < 0) return \"\";\n var startIndex = 1;\n var prefix = \"\";\n var postfix = \".\";\n var isNumeric = true;\n var strIndex = \"A\";\n var str = \"\";\n if (!!startIndexStr) {\n str = startIndexStr;\n var ind = str.length - 1;\n var hasDigit = false;\n for (var i = 0; i < str.length; i++) {\n if (Helpers.isCharDigit(str[i])) {\n hasDigit = true;\n break;\n }\n }\n var checkLetter = function() {\n return (\n (hasDigit && !Helpers.isCharDigit(str[ind])) ||\n Helpers.isCharNotLetterAndDigit(str[ind])\n );\n };\n while (ind >= 0 && checkLetter()) ind--;\n var newPostfix = \"\";\n if (ind < str.length - 1) {\n newPostfix = str.substr(ind + 1);\n str = str.substr(0, ind + 1);\n }\n ind = str.length - 1;\n while (ind >= 0) {\n if (checkLetter()) break;\n ind--;\n if (!hasDigit) break;\n }\n strIndex = str.substr(ind + 1);\n prefix = str.substr(0, ind + 1);\n if (parseInt(strIndex)) startIndex = parseInt(strIndex);\n else if (strIndex.length == 1) isNumeric = false;\n if (!!newPostfix || !!prefix) {\n postfix = newPostfix;\n }\n }\n if (isNumeric) return prefix + (index + startIndex).toString() + postfix;\n return (\n prefix + String.fromCharCode(strIndex.charCodeAt(0) + index) + postfix\n );\n }\n public static isCharNotLetterAndDigit(ch: string): boolean {\n return ch.toUpperCase() == ch.toLowerCase() && !Helpers.isCharDigit(ch);\n }\n public static isCharDigit(ch: string): boolean {\n return ch >= \"0\" && ch <= \"9\";\n }\n}\nif (!(String.prototype)[\"format\"]) {\n (String.prototype)[\"format\"] = function() {\n var args = arguments;\n return this.replace(/{(\\d+)}/g, function(match: any, number: any) {\n return typeof args[number] != \"undefined\" ? args[number] : match;\n });\n };\n}\n","import { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport {\n JsonObject,\n JsonObjectProperty,\n Serializer,\n CustomPropertiesCollection,\n} from \"./jsonobject\";\nimport { Helpers } from \"./helpers\";\nimport { ConditionRunner } from \"./conditions\";\nimport { Base, ISurvey } from \"./base\";\nimport { settings } from \"./settings\";\n\n/**\n * Array of ItemValue is used in checkox, dropdown and radiogroup choices, matrix columns and rows.\n * It has two main properties: value and text. If text is empty, value is used for displaying.\n * The text property is localizable and support markdown.\n */\nexport class ItemValue extends Base {\n [index: string]: any;\n public static get Separator() {\n return settings.itemValueSeparator;\n }\n public static set Separator(val: string) {\n settings.itemValueSeparator = val;\n }\n public static createArray(locOwner: ILocalizableOwner): Array {\n var items: Array = [];\n ItemValue.setupArray(items, locOwner);\n return items;\n }\n public static setupArray(\n items: Array,\n locOwner: ILocalizableOwner\n ) {\n items.push = function(value): number {\n var result = Array.prototype.push.call(this, value);\n value.locOwner = locOwner;\n return result;\n };\n items.unshift = function(value): number {\n var result = Array.prototype.unshift.call(this, value);\n value.locOwner = locOwner;\n return result;\n };\n items.splice = function(\n start?: number,\n deleteCount?: number,\n ...items: ItemValue[]\n ): ItemValue[] {\n var result = Array.prototype.splice.call(\n this,\n start,\n deleteCount,\n ...items\n );\n if (!items) items = [];\n for (var i = 0; i < items.length; i++) {\n items[i].locOwner = locOwner;\n }\n return result;\n };\n }\n public static setData(items: Array, values: Array) {\n items.length = 0;\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n var item: ItemValue;\n if (typeof value.getType === \"function\") {\n item = Serializer.createClass(value.getType());\n } else {\n item = new ItemValue(null);\n }\n item.setData(value);\n if (!!value.originalItem) {\n item.originalItem = value.originalItem;\n }\n items.push(item);\n }\n }\n public static getData(items: Array): any {\n var result = new Array();\n for (var i = 0; i < items.length; i++) {\n result.push(items[i].getData());\n }\n return result;\n }\n public static getItemByValue(items: Array, val: any): ItemValue {\n if (!Array.isArray(items)) return null;\n for (var i = 0; i < items.length; i++) {\n if (Helpers.isTwoValueEquals(items[i].value, val)) return items[i];\n }\n return null;\n }\n public static getTextOrHtmlByValue(\n items: Array,\n val: any\n ): string {\n var item = ItemValue.getItemByValue(items, val);\n return item !== null ? item.locText.textOrHtml : \"\";\n }\n public static locStrsChanged(items: Array) {\n for (var i = 0; i < items.length; i++) {\n items[i].locText.strChanged();\n }\n }\n public static runConditionsForItems(\n items: Array,\n filteredItems: Array,\n runner: ConditionRunner,\n values: any,\n properties: any,\n useItemExpression: boolean = true\n ): boolean {\n return ItemValue.runConditionsForItemsCore(\n items,\n filteredItems,\n runner,\n values,\n properties,\n true,\n useItemExpression\n );\n }\n public static runEnabledConditionsForItems(\n items: Array,\n runner: ConditionRunner,\n values: any,\n properties: any,\n onItemCallBack?: (item: ItemValue) => boolean\n ): boolean {\n return ItemValue.runConditionsForItemsCore(\n items,\n null,\n runner,\n values,\n properties,\n false,\n true,\n onItemCallBack\n );\n }\n private static runConditionsForItemsCore(\n items: Array,\n filteredItems: Array,\n runner: ConditionRunner,\n values: any,\n properties: any,\n isVisible: boolean,\n useItemExpression: boolean = true,\n onItemCallBack?: (item: ItemValue) => boolean\n ): boolean {\n if (!values) {\n values = {};\n }\n var itemValue = values[\"item\"];\n var choiceValue = values[\"choice\"];\n var hasChanded = false;\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n values[\"item\"] = item.value;\n values[\"choice\"] = item.value;\n var itemRunner =\n useItemExpression && !!item.getConditionRunner\n ? item.getConditionRunner(isVisible)\n : false;\n if (!itemRunner) {\n itemRunner = runner;\n }\n var newValue = true;\n if (itemRunner) {\n newValue = itemRunner.run(values, properties);\n }\n if (newValue && !!onItemCallBack) {\n newValue = onItemCallBack(item);\n }\n if (!!filteredItems && newValue) {\n filteredItems.push(item);\n }\n var oldValue = isVisible ? item.isVisible : item.isEnabled;\n if (newValue != oldValue) {\n hasChanded = true;\n if (isVisible) {\n if (!!item.setIsVisible) item.setIsVisible(newValue);\n } else {\n if (!!item.setIsEnabled) item.setIsEnabled(newValue);\n }\n }\n }\n if (itemValue) {\n values[\"item\"] = itemValue;\n } else {\n delete values[\"item\"];\n }\n if (choiceValue) {\n values[\"choice\"] = choiceValue;\n } else {\n delete values[\"choice\"];\n }\n return hasChanded;\n }\n public ownerPropertyName: string = \"\";\n //private itemValue: any;\n private locTextValue: LocalizableString;\n private isVisibleValue: boolean = true;\n private visibleConditionRunner: ConditionRunner;\n private enableConditionRunner: ConditionRunner;\n\n constructor(\n value: any,\n text: string = null,\n protected typeName = \"itemvalue\"\n ) {\n super();\n this.locTextValue = new LocalizableString(null, true);\n this.locTextValue.onGetTextCallback = txt => {\n return txt\n ? txt\n : !Helpers.isValueEmpty(this.value)\n ? this.value.toString()\n : null;\n };\n if (text) this.locText.text = text;\n if (!!value && typeof value === \"object\") {\n this.setData(value);\n } else {\n this.value = value;\n }\n if (this.getType() != \"itemvalue\") {\n CustomPropertiesCollection.createProperties(this);\n }\n this.onCreating();\n }\n\n public onCreating(): any {}\n public getType(): string {\n return !!this.typeName ? this.typeName : \"itemvalue\";\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.locOwner && !!(this.locOwner)[\"getSurvey\"]\n ? (this.locOwner).getSurvey()\n : null;\n }\n public getLocale(): string {\n return this.locText.locale;\n }\n public get locText(): LocalizableString {\n return this.locTextValue;\n }\n setLocText(locText: LocalizableString) {\n this.locTextValue = locText;\n }\n public get locOwner(): ILocalizableOwner {\n return this.locText.owner;\n }\n public set locOwner(value: ILocalizableOwner) {\n this.locText.owner = value;\n }\n public get value(): any {\n return this.getPropertyValue(\"value\");\n }\n public set value(newValue: any) {\n var text: string = undefined;\n if (!Helpers.isValueEmpty(newValue)) {\n var str: string = newValue.toString();\n var index = str.indexOf(settings.itemValueSeparator);\n if (index > -1) {\n newValue = str.slice(0, index);\n text = str.slice(index + 1);\n }\n }\n this.setPropertyValue(\"value\", newValue);\n if (!!text) {\n this.text = text;\n }\n }\n public get hasText(): boolean {\n return this.locText.pureText ? true : false;\n }\n public get pureText(): string {\n return this.locText.pureText;\n }\n public set pureText(val: string) {\n this.text = val;\n }\n public get text(): string {\n return this.locText.calculatedText; //TODO: it will be correct to use this.locText.text, however it would require a lot of rewriting in Creator\n }\n public set text(newText: string) {\n const oldText = this.locText.text;\n this.locText.text = newText;\n this.propertyValueChanged(\"text\", oldText, newText);\n }\n public get calculatedText() {\n return this.locText.calculatedText;\n }\n public getData(): any {\n var json = this.toJSON();\n if (!!json[\"value\"] && !!json[\"value\"][\"pos\"]) {\n delete json[\"value\"][\"pos\"];\n }\n if (Object.keys(json).length == 1 && !Helpers.isValueEmpty(json[\"value\"]))\n return this.value;\n return json;\n }\n public toJSON(): any {\n var res = {};\n var properties = Serializer.getProperties(this.getType());\n if (!properties || properties.length == 0) {\n properties = Serializer.getProperties(\"itemvalue\");\n }\n var jsoObj = new JsonObject();\n for (var i = 0; i < properties.length; i++) {\n jsoObj.valueToJson(this, res, properties[i]);\n }\n return res;\n }\n public setData(value: any) {\n if (Helpers.isValueEmpty(value)) return;\n if (typeof value.value !== \"undefined\") {\n var json = value;\n if (typeof value.toJSON === \"function\") {\n json = (value).toJSON();\n }\n new JsonObject().toObject(json, this);\n } else {\n this.value = value;\n }\n }\n public get visibleIf(): string {\n return this.getPropertyValue(\"visibleIf\", \"\");\n }\n public set visibleIf(val: string) {\n this.setPropertyValue(\"visibleIf\", val);\n }\n public get enableIf(): string {\n return this.getPropertyValue(\"enableIf\", \"\");\n }\n public set enableIf(val: string) {\n this.setPropertyValue(\"enableIf\", val);\n }\n public get isVisible() {\n return this.isVisibleValue;\n }\n public setIsVisible(val: boolean) {\n this.isVisibleValue = val;\n }\n public get isEnabled() {\n return this.getPropertyValue(\"isEnabled\", true);\n }\n public setIsEnabled(val: boolean) {\n this.setPropertyValue(\"isEnabled\", val);\n }\n public addUsedLocales(locales: Array) {\n this.AddLocStringToUsedLocales(this.locTextValue, locales);\n }\n protected onPropertyValueChanged(name: string, oldValue: any, newValue: any) {\n if (name === \"value\" && !this.hasText) {\n this.locText.onChanged();\n }\n var funcName = \"itemValuePropertyChanged\";\n if (!this.locOwner || !(this.locOwner)[funcName]) return;\n (this.locOwner)[funcName](this, name, oldValue, newValue);\n }\n protected getConditionRunner(isVisible: boolean) {\n if (isVisible) return this.getVisibleConditionRunner();\n return this.getEnableConditionRunner();\n }\n private getVisibleConditionRunner(): ConditionRunner {\n if (!this.visibleIf) return null;\n if (!this.visibleConditionRunner)\n this.visibleConditionRunner = new ConditionRunner(this.visibleIf);\n this.visibleConditionRunner.expression = this.visibleIf;\n return this.visibleConditionRunner;\n }\n private getEnableConditionRunner(): ConditionRunner {\n if (!this.enableIf) return null;\n if (!this.enableConditionRunner)\n this.enableConditionRunner = new ConditionRunner(this.enableIf);\n this.enableConditionRunner.expression = this.enableIf;\n return this.enableConditionRunner;\n }\n public originalItem: any;\n}\n\nBase.createItemValue = function(source: any, type?: string): any {\n var item = null;\n if (!!type) {\n item = JsonObject.metaData.createClass(type, {});\n } else if (typeof source.getType === \"function\") {\n item = new ItemValue(null, undefined, source.getType());\n } else {\n item = new ItemValue(null);\n }\n item.setData(source);\n return item;\n};\nBase.itemValueLocStrChanged = function(arr: Array): void {\n ItemValue.locStrsChanged(arr);\n};\nJsonObjectProperty.getItemValuesDefaultValue = function(val: any): any {\n var res = new Array();\n ItemValue.setData(res, val || []);\n return res;\n};\n\nSerializer.addClass(\n \"itemvalue\",\n [\n \"!value\",\n {\n name: \"text\",\n serializationProperty: \"locText\",\n },\n { name: \"visibleIf:condition\", showMode: \"form\" },\n { name: \"enableIf:condition\", showMode: \"form\" },\n ],\n (value: any) => new ItemValue(value)\n);\n","import { Helpers, HashTable } from \"./helpers\";\n\nexport interface IPropertyDecoratorOptions {\n defaultValue?: any;\n defaultSource?: string;\n localizable?:\n | { name: string; onGetTextCallback?: (str: string) => string }\n | boolean;\n onSet?: (val: any, target: any) => void;\n}\n\nfunction ensureLocString(\n target: any,\n options: IPropertyDecoratorOptions,\n key: string\n) {\n let locString = target.getLocalizableString(key);\n if (!locString) {\n locString = target.createLocalizableString(key, target, true);\n if (\n typeof options.localizable === \"object\" &&\n typeof options.localizable.onGetTextCallback === \"function\"\n ) {\n locString.onGetTextCallback = options.localizable.onGetTextCallback;\n }\n }\n}\n\nexport function property(options?: IPropertyDecoratorOptions) {\n return function(target: any, key: string) {\n if (!options || !options.localizable) {\n Object.defineProperty(target, key, {\n get: function() {\n const value = this.getPropertyValue(key);\n if (value !== undefined) {\n return value;\n }\n if (!!options && options.defaultValue === false) return false;\n return !!options\n ? options.defaultValue || this[options.defaultSource]\n : undefined;\n },\n set: function(val: any) {\n this.setPropertyValue(key, val);\n if (!!options && options.onSet) {\n options.onSet(val, this);\n }\n },\n });\n } else {\n Object.defineProperty(target, key, {\n get: function() {\n ensureLocString(this, options, key);\n return (\n this.getLocalizableStringText(key) ||\n options.defaultValue ||\n this[options.defaultSource]\n );\n },\n set: function(val: any) {\n ensureLocString(this, options, key);\n this.setLocalizableStringText(key, val);\n if (!!options && options.onSet) {\n options.onSet(val, this);\n }\n },\n });\n Object.defineProperty(\n target,\n options.localizable === true\n ? \"loc\" + key.charAt(0).toUpperCase() + key.slice(1)\n : options.localizable.name,\n {\n get: function() {\n ensureLocString(this, options, key);\n return this.getLocalizableString(key);\n },\n }\n );\n }\n };\n}\n\nexport interface IArrayPropertyDecoratorOptions {\n onPush?: any;\n onRemove?: any;\n onSet?: (val: any, target: any) => void;\n}\n\nfunction ensureArray(\n target: any,\n options: IArrayPropertyDecoratorOptions,\n key: string\n) {\n target.ensureArray(\n key,\n !!options ? options.onPush : null,\n !!options ? options.onRemove : null\n );\n}\n\nexport function propertyArray(options?: IArrayPropertyDecoratorOptions) {\n return function(target: any, key: string) {\n Object.defineProperty(target, key, {\n get: function() {\n ensureArray(this, options, key);\n return this.getPropertyValue(key);\n },\n set: function(val: any) {\n ensureArray(this, options, key);\n const arr = this.getPropertyValue(key);\n if (val === arr) {\n return;\n }\n if (arr) {\n arr.splice(0, arr.length, ...(val || []));\n } else {\n this.setPropertyValue(key, val);\n }\n if (!!options && options.onSet) {\n options.onSet(val, this);\n }\n },\n });\n };\n}\n\nexport interface IObject {\n [key: string]: any;\n}\n\n/**\n * Contains information about a property of a survey element (page, panel, questions, and etc).\n * @see addProperty\n * @see removeProperty\n * @see [Add Properties](https://surveyjs.io/Documentation/Survey-Creator#addproperties)\n * @see [Remove Properties](https://surveyjs.io/Documentation/Survey-Creator#removeproperties)\n */\nexport class JsonObjectProperty implements IObject {\n public static getItemValuesDefaultValue: (val: any) => any;\n [key: string]: any;\n private static Index = 1;\n private static mergableValues = [\n \"typeValue\",\n \"choicesValue\",\n \"baseValue\",\n \"readOnlyValue\",\n \"visibleValue\",\n \"isSerializable\",\n \"isLightSerializable\",\n \"isCustom\",\n \"isBindable\",\n \"isUnique\",\n \"isDynamicChoices\",\n \"isLocalizableValue\",\n \"className\",\n \"alternativeName\",\n \"layout\",\n \"classNamePart\",\n \"baseClassName\",\n \"defaultValue\",\n \"serializationProperty\",\n \"onGetValue\",\n \"onSetValue\",\n \"displayName\",\n \"category\",\n \"categoryIndex\",\n \"visibleIndex\",\n \"nextToProperty\",\n \"showMode\",\n \"dependedProperties\",\n \"visibleIf\",\n \"onPropertyEditorUpdate\",\n \"maxLength\",\n \"maxValue\",\n \"minValue\",\n \"dataListValue\",\n ];\n private idValue: number;\n private classInfoValue: JsonMetadataClass;\n private typeValue: string = null;\n private choicesValue: Array = null;\n private baseValue: any = null;\n private isRequiredValue: boolean = false;\n private isUniqueValue: boolean = false;\n private readOnlyValue: boolean | null = null;\n private visibleValue: boolean | null = null;\n private isLocalizableValue: boolean | null = null;\n private choicesfunc: (obj: any, choicesCallback: any) => Array = null;\n private dependedProperties: Array = null;\n public isSerializable: boolean = true;\n public isLightSerializable: boolean = true;\n public isCustom: boolean = false;\n public isDynamicChoices: boolean = false; //TODO obsolete, use dependsOn attribute\n public isBindable: boolean = false;\n public className: string = null;\n public alternativeName: string = null;\n public classNamePart: string = null;\n public baseClassName: string = null;\n public defaultValueValue: any = null;\n public serializationProperty: string = null;\n public displayName: string = null;\n public category: string = \"\";\n public categoryIndex: number = -1;\n public visibleIndex: number = -1;\n public nextToProperty: string = null;\n public showMode: string = null;\n public maxLength: number = -1;\n public maxValue: any;\n public minValue: any;\n private dataListValue: Array;\n public layout: string = null;\n public onGetValue: (obj: any) => any = null;\n public onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any = null;\n public visibleIf: (obj: any) => boolean = null;\n public onPropertyEditorUpdate: (obj: any, propEditor: any) => any;\n\n constructor(\n classInfo: JsonMetadataClass,\n public name: string,\n isRequired: boolean = false\n ) {\n this.classInfoValue = classInfo;\n this.isRequiredValue = isRequired;\n this.idValue = JsonObjectProperty.Index++;\n }\n public get id(): number {\n return this.idValue;\n }\n public get classInfo(): JsonMetadataClass {\n return this.classInfoValue;\n }\n public get type(): string {\n return this.typeValue ? this.typeValue : \"string\";\n }\n public set type(value: string) {\n if (value === \"itemvalues\") value = \"itemvalue[]\";\n this.typeValue = value;\n if (this.typeValue.indexOf(\"[]\") === this.typeValue.length - 2) {\n this.isArray = true;\n this.className = this.typeValue.substr(0, this.typeValue.length - 2);\n }\n }\n public isArray = false;\n public get isRequired() {\n return this.isRequiredValue;\n }\n public set isRequired(val: boolean) {\n this.isRequiredValue = val;\n }\n public get isUnique() {\n return this.isUniqueValue;\n }\n public set isUnique(val: boolean) {\n this.isUniqueValue = val;\n }\n public get hasToUseGetValue() {\n return this.onGetValue || this.serializationProperty;\n }\n public get defaultValue() {\n var result: any = this.defaultValueValue;\n if (\n !!JsonObjectProperty.getItemValuesDefaultValue &&\n JsonObject.metaData.isDescendantOf(this.className, \"itemvalue\")\n ) {\n result = JsonObjectProperty.getItemValuesDefaultValue(\n this.defaultValueValue || []\n );\n }\n return result;\n }\n public set defaultValue(newValue) {\n this.defaultValueValue = newValue;\n }\n public isDefaultValue(value: any): boolean {\n if (!Helpers.isValueEmpty(this.defaultValue))\n return this.defaultValue == value;\n return (\n (value === false && (this.type == \"boolean\" || this.type == \"switch\")) ||\n value === \"\" ||\n Helpers.isValueEmpty(value)\n );\n }\n public getValue(obj: any): any {\n if (this.onGetValue) return this.onGetValue(obj);\n if (this.serializationProperty && !!obj[this.serializationProperty])\n return obj[this.serializationProperty].getJson();\n return obj[this.name];\n }\n public getPropertyValue(obj: any): any {\n if (this.isLocalizable) {\n return !!obj[this.serializationProperty]\n ? obj[this.serializationProperty].text\n : null;\n }\n return this.getValue(obj);\n }\n public get hasToUseSetValue() {\n return this.onSetValue || this.serializationProperty;\n }\n public setValue(obj: any, value: any, jsonConv: JsonObject) {\n if (this.onSetValue) {\n this.onSetValue(obj, value, jsonConv);\n } else {\n if (this.serializationProperty && !!obj[this.serializationProperty])\n obj[this.serializationProperty].setJson(value);\n else {\n if (value && typeof value === \"string\") {\n if (this.type == \"number\") {\n value = parseInt(value);\n }\n if (this.type == \"boolean\" || this.type == \"switch\") {\n value = value.toLowerCase() === \"true\";\n }\n }\n obj[this.name] = value;\n }\n }\n }\n public getObjType(objType: string) {\n if (!this.classNamePart) return objType;\n return objType.replace(this.classNamePart, \"\");\n }\n public getClassName(className: string): string {\n if (className) className = className.toLowerCase();\n return this.classNamePart && className.indexOf(this.classNamePart) < 0\n ? className + this.classNamePart\n : className;\n }\n /**\n * Depricated, please use getChoices\n */\n public get choices(): Array {\n return this.getChoices(null);\n }\n public get hasChoices(): boolean {\n return !!this.choicesValue || !!this.choicesfunc;\n }\n public getChoices(obj: any, choicesCallback: any = null): Array {\n if (this.choicesValue != null) return this.choicesValue;\n if (this.choicesfunc != null) return this.choicesfunc(obj, choicesCallback);\n return null;\n }\n public setChoices(\n value: Array,\n valueFunc: (obj: any) => Array = null\n ) {\n this.choicesValue = value;\n this.choicesfunc = valueFunc;\n }\n public getBaseValue(): string {\n if (!this.baseValue) return \"\";\n if (typeof this.baseValue == \"function\") return this.baseValue();\n return this.baseValue;\n }\n public setBaseValue(val: any) {\n this.baseValue = val;\n }\n public get readOnly(): boolean {\n return this.readOnlyValue != null ? this.readOnlyValue : false;\n }\n public set readOnly(val: boolean) {\n this.readOnlyValue = val;\n }\n public isVisible(layout: string, obj: any = null): boolean {\n let isLayout = !this.layout || this.layout == layout;\n if (!this.visible || !isLayout) return false;\n if (!!this.visibleIf && !!obj) return this.visibleIf(obj);\n return true;\n }\n public get visible(): boolean {\n return this.visibleValue != null ? this.visibleValue : true;\n }\n public set visible(val: boolean) {\n this.visibleValue = val;\n }\n public get isLocalizable(): boolean {\n return this.isLocalizableValue != null ? this.isLocalizableValue : false;\n }\n public set isLocalizable(val: boolean) {\n this.isLocalizableValue = val;\n }\n public get dataList(): Array {\n return Array.isArray(this.dataListValue) ? this.dataListValue : [];\n }\n public set dataList(val: Array) {\n this.dataListValue = val;\n }\n public mergeWith(prop: JsonObjectProperty) {\n var valuesNames = JsonObjectProperty.mergableValues;\n for (var i = 0; i < valuesNames.length; i++) {\n this.mergeValue(prop, valuesNames[i]);\n }\n }\n public addDependedProperty(name: string) {\n if (!this.dependedProperties) {\n this.dependedProperties = [];\n }\n if (this.dependedProperties.indexOf(name) < 0) {\n this.dependedProperties.push(name);\n }\n }\n public getDependedProperties(): Array {\n return !!this.dependedProperties ? this.dependedProperties : [];\n }\n public schemaType(): string {\n if (!!this.className) return \"array\";\n if (!!this.baseClassName) return \"array\";\n if (this.type == \"boolean\" || this.type == \"number\") return this.type;\n return \"string\";\n }\n private mergeValue(prop: JsonObjectProperty, valueName: string) {\n if (this[valueName] == null && prop[valueName] != null) {\n this[valueName] = prop[valueName];\n }\n }\n}\nexport class CustomPropertiesCollection {\n private static properties: IObject = {};\n private static parentClasses: { [key: string]: string } = {};\n public static addProperty(className: string, property: any) {\n className = className.toLowerCase();\n var props = CustomPropertiesCollection.properties;\n if (!props[className]) {\n props[className] = [];\n }\n props[className].push(property);\n }\n public static removeProperty(className: string, propertyName: string) {\n className = className.toLowerCase();\n var props = CustomPropertiesCollection.properties;\n if (!props[className]) return;\n var properties = props[className];\n for (var i = 0; i < properties.length; i++) {\n if (properties[i].name == propertyName) {\n props[className].splice(i, 1);\n break;\n }\n }\n }\n public static addClass(className: string, parentClassName: string) {\n className = className.toLowerCase();\n if (parentClassName) {\n parentClassName = parentClassName.toLowerCase();\n }\n CustomPropertiesCollection.parentClasses[className] = parentClassName;\n }\n public static getProperties(className: string): Array {\n className = className.toLowerCase();\n var res = [];\n var props = CustomPropertiesCollection.properties;\n while (className) {\n var properties = props[className];\n if (properties) {\n for (var i = 0; i < properties.length; i++) {\n res.push(properties[i]);\n }\n }\n className = CustomPropertiesCollection.parentClasses[className];\n }\n return res;\n }\n public static createProperties(obj: any) {\n if (!obj || !obj.getType) return;\n CustomPropertiesCollection.createPropertiesCore(obj, obj.getType());\n }\n private static createPropertiesCore(obj: any, className: string) {\n var props = CustomPropertiesCollection.properties;\n if (props[className]) {\n CustomPropertiesCollection.createPropertiesInObj(obj, props[className]);\n }\n var parentClass = CustomPropertiesCollection.parentClasses[className];\n if (parentClass) {\n CustomPropertiesCollection.createPropertiesCore(obj, parentClass);\n }\n }\n private static createPropertiesInObj(obj: any, properties: any[]) {\n for (var i = 0; i < properties.length; i++) {\n CustomPropertiesCollection.createPropertyInObj(obj, properties[i]);\n }\n }\n private static createPropertyInObj(obj: any, prop: JsonObjectProperty) {\n if (obj[prop.name] || obj.hasOwnProperty(prop.name)) return;\n if (\n prop.isLocalizable &&\n prop.serializationProperty &&\n !obj[prop.serializationProperty] &&\n obj.createCustomLocalizableObj\n ) {\n obj.createCustomLocalizableObj(prop.name);\n var locDesc = {\n get: function() {\n return obj.getLocalizableString(prop.name);\n },\n };\n Object.defineProperty(obj, prop.serializationProperty, locDesc);\n var desc = {\n get: function() {\n return obj.getLocalizableStringText(prop.name, prop.defaultValue);\n },\n set: function(v: any) {\n obj.setLocalizableStringText(prop.name, v);\n },\n };\n Object.defineProperty(obj, prop.name, desc);\n } else {\n var defaultValue = prop.defaultValue;\n var isArrayProp = false;\n if (typeof obj.createNewArray === \"function\") {\n if (JsonObject.metaData.isDescendantOf(prop.className, \"itemvalue\")) {\n obj.createNewArray(prop.name, function(item: any) {\n item.locOwner = obj;\n item.ownerPropertyName = prop.name;\n });\n isArrayProp = true;\n }\n //It is a simple array property\n if (prop.type === \"multiplevalues\") {\n obj.createNewArray(prop.name);\n isArrayProp = true;\n }\n if (isArrayProp) {\n if (Array.isArray(defaultValue)) {\n obj.setPropertyValue(prop.name, defaultValue);\n }\n defaultValue = null;\n }\n }\n if (!!obj.getPropertyValue && !!obj.setPropertyValue) {\n var desc = {\n get: () => {\n if (!!prop.onGetValue) {\n return prop.onGetValue(obj);\n }\n return obj.getPropertyValue(prop.name, defaultValue);\n },\n set: function(v: any) {\n if (!!prop.onSetValue) {\n prop.onSetValue(obj, v, null);\n } else {\n obj.setPropertyValue(prop.name, v);\n }\n },\n };\n Object.defineProperty(obj, prop.name, desc);\n }\n }\n }\n}\n\nexport class JsonMetadataClass {\n static requiredSymbol = \"!\";\n static typeSymbol = \":\";\n properties: Array = null;\n constructor(\n public name: string,\n properties: Array,\n public creator: (json?: any) => any = null,\n public parentName: string = null\n ) {\n name = name.toLowerCase();\n if (this.parentName) {\n this.parentName = this.parentName.toLowerCase();\n CustomPropertiesCollection.addClass(name, this.parentName);\n }\n this.properties = new Array();\n for (var i = 0; i < properties.length; i++) {\n var prop = this.createProperty(properties[i]);\n if (prop) {\n this.properties.push(prop);\n }\n }\n }\n public find(name: string): JsonObjectProperty {\n for (var i = 0; i < this.properties.length; i++) {\n if (this.properties[i].name == name) return this.properties[i];\n }\n return null;\n }\n public createProperty(propInfo: any): JsonObjectProperty {\n var propertyName = typeof propInfo === \"string\" ? propInfo : propInfo.name;\n if (!propertyName) return;\n var propertyType = null;\n var typeIndex = propertyName.indexOf(JsonMetadataClass.typeSymbol);\n if (typeIndex > -1) {\n propertyType = propertyName.substring(typeIndex + 1);\n propertyName = propertyName.substring(0, typeIndex);\n }\n var isRequired =\n this.getIsPropertyNameRequired(propertyName) || !!propInfo.isRequired;\n propertyName = this.getPropertyName(propertyName);\n var prop = new JsonObjectProperty(this, propertyName, isRequired);\n if (propertyType) {\n prop.type = propertyType;\n }\n if (typeof propInfo === \"object\") {\n if (propInfo.type) {\n prop.type = propInfo.type;\n }\n if (!Helpers.isValueEmpty(propInfo.default)) {\n prop.defaultValue = propInfo.default;\n }\n if (!Helpers.isValueEmpty(propInfo.isSerializable)) {\n prop.isSerializable = propInfo.isSerializable;\n }\n if (!Helpers.isValueEmpty(propInfo.isLightSerializable)) {\n prop.isLightSerializable = propInfo.isLightSerializable;\n }\n if (!Helpers.isValueEmpty(propInfo.maxLength)) {\n prop.maxLength = propInfo.maxLength;\n }\n if (!Helpers.isValueEmpty(propInfo.displayName)) {\n prop.displayName = propInfo.displayName;\n }\n if (!Helpers.isValueEmpty(propInfo.category)) {\n prop.category = propInfo.category;\n }\n if (!Helpers.isValueEmpty(propInfo.categoryIndex)) {\n prop.categoryIndex = propInfo.categoryIndex;\n }\n if (!Helpers.isValueEmpty(propInfo.nextToProperty)) {\n prop.nextToProperty = propInfo.nextToProperty;\n }\n if (!Helpers.isValueEmpty(propInfo.visibleIndex)) {\n prop.visibleIndex = propInfo.visibleIndex;\n }\n if (!Helpers.isValueEmpty(propInfo.showMode)) {\n prop.showMode = propInfo.showMode;\n }\n if (!Helpers.isValueEmpty(propInfo.maxValue)) {\n prop.maxValue = propInfo.maxValue;\n }\n if (!Helpers.isValueEmpty(propInfo.minValue)) {\n prop.minValue = propInfo.minValue;\n }\n if (!Helpers.isValueEmpty(propInfo.dataList)) {\n prop.dataList = propInfo.dataList;\n }\n if (!Helpers.isValueEmpty(propInfo.isDynamicChoices)) {\n prop.isDynamicChoices = propInfo.isDynamicChoices;\n }\n if (!Helpers.isValueEmpty(propInfo.isBindable)) {\n prop.isBindable = propInfo.isBindable;\n }\n if (!Helpers.isValueEmpty(propInfo.isUnique)) {\n prop.isUnique = propInfo.isUnique;\n }\n if (propInfo.visible === true || propInfo.visible === false) {\n prop.visible = propInfo.visible;\n }\n if (!!propInfo.visibleIf) {\n prop.visibleIf = propInfo.visibleIf;\n }\n if (!!propInfo.onPropertyEditorUpdate) {\n prop.onPropertyEditorUpdate = propInfo.onPropertyEditorUpdate;\n }\n if (propInfo.readOnly === true) {\n prop.readOnly = true;\n }\n if (propInfo.choices) {\n var choicesFunc =\n typeof propInfo.choices === \"function\" ? propInfo.choices : null;\n var choicesValue =\n typeof propInfo.choices !== \"function\" ? propInfo.choices : null;\n prop.setChoices(choicesValue, choicesFunc);\n }\n if (!!propInfo.baseValue) {\n prop.setBaseValue(propInfo.baseValue);\n }\n if (propInfo.onGetValue) {\n prop.onGetValue = propInfo.onGetValue;\n }\n if (propInfo.onSetValue) {\n prop.onSetValue = propInfo.onSetValue;\n }\n if (propInfo.isLocalizable) {\n propInfo.serializationProperty = \"loc\" + prop.name;\n }\n if (propInfo.serializationProperty) {\n prop.serializationProperty = propInfo.serializationProperty;\n var s: string;\n if (\n prop.serializationProperty &&\n prop.serializationProperty.indexOf(\"loc\") == 0\n ) {\n prop.isLocalizable = true;\n }\n }\n if (propInfo.isLocalizable) {\n prop.isLocalizable = propInfo.isLocalizable;\n }\n if (propInfo.className) {\n prop.className = propInfo.className;\n }\n if (propInfo.baseClassName) {\n prop.baseClassName = propInfo.baseClassName;\n }\n if (propInfo.classNamePart) {\n prop.classNamePart = propInfo.classNamePart;\n }\n if (propInfo.alternativeName) {\n prop.alternativeName = propInfo.alternativeName;\n }\n if (propInfo.layout) {\n prop.layout = propInfo.layout;\n }\n if (propInfo.dependsOn) {\n this.addDependsOnProperties(prop, propInfo.dependsOn);\n }\n }\n return prop;\n }\n private addDependsOnProperties(prop: JsonObjectProperty, dependsOn: any) {\n if (Array.isArray(dependsOn)) {\n for (var i = 0; i < dependsOn.length; i++) {\n this.addDependsOnProperty(prop, dependsOn[i]);\n }\n } else {\n this.addDependsOnProperty(prop, dependsOn);\n }\n }\n private addDependsOnProperty(prop: JsonObjectProperty, dependsOn: string) {\n var property = this.find(dependsOn);\n if (!property) {\n property = Serializer.findProperty(this.parentName, dependsOn);\n }\n if (!property) return;\n property.addDependedProperty(prop.name);\n }\n private getIsPropertyNameRequired(propertyName: string): boolean {\n return (\n propertyName.length > 0 &&\n propertyName[0] == JsonMetadataClass.requiredSymbol\n );\n }\n private getPropertyName(propertyName: string): string {\n if (!this.getIsPropertyNameRequired(propertyName)) return propertyName;\n propertyName = propertyName.slice(1);\n return propertyName;\n }\n}\n\n/**\n * The metadata object. It contains object properties' runtime information and allows you to modify it.\n */\nexport class JsonMetadata {\n private classes: HashTable = {};\n private alternativeNames: HashTable = {};\n private childrenClasses: HashTable> = {};\n private classProperties: HashTable> = {};\n private classHashProperties: HashTable> = {};\n public getObjPropertyValue(obj: any, name: string): any {\n if (this.isObjWrapper(obj)) {\n var orignalObj = obj.getOriginalObj();\n var prop = Serializer.findProperty(orignalObj.getType(), name);\n if (!!prop) return this.getObjPropertyValueCore(orignalObj, prop);\n }\n var prop = Serializer.findProperty(obj.getType(), name);\n if (!prop) return obj[name];\n return this.getObjPropertyValueCore(obj, prop);\n }\n public setObjPropertyValue(obj: any, name: string, val: any) {\n var prop = Serializer.findProperty(obj.getType(), name);\n if (\n !prop ||\n !prop.isSerializable ||\n this.isObjWrapper(obj) ||\n prop.isLocalizable\n ) {\n obj[name] = val;\n } else {\n obj.setPropertyValue(name, val);\n }\n }\n private getObjPropertyValueCore(obj: any, prop: JsonObjectProperty): any {\n if (!prop.isSerializable) return obj[prop.name];\n if (prop.isLocalizable) {\n if (prop.isArray) return obj[prop.name];\n if (!!prop.serializationProperty)\n return obj[prop.serializationProperty].text;\n }\n return obj.getPropertyValue(prop.name);\n }\n private isObjWrapper(obj: any): boolean {\n return !!obj.getOriginalObj && !!obj.getOriginalObj();\n }\n public addClass(\n name: string,\n properties: Array,\n creator: (json?: any) => any = null,\n parentName: string = null\n ): JsonMetadataClass {\n name = name.toLowerCase();\n var metaDataClass = new JsonMetadataClass(\n name,\n properties,\n creator,\n parentName\n );\n this.classes[name] = metaDataClass;\n if (parentName) {\n parentName = parentName.toLowerCase();\n var children = this.childrenClasses[parentName];\n if (!children) {\n this.childrenClasses[parentName] = [];\n }\n this.childrenClasses[parentName].push(metaDataClass);\n }\n return metaDataClass;\n }\n public removeClass(name: string) {\n var metaClass = this.findClass(name);\n if (!metaClass) return;\n delete this.classes[metaClass.name];\n if (!!metaClass.parentName) {\n var index = this.childrenClasses[metaClass.parentName].indexOf(metaClass);\n if (index > -1) {\n this.childrenClasses[metaClass.parentName].splice(index, 1);\n }\n }\n }\n public overrideClassCreatore(name: string, creator: () => any) {\n this.overrideClassCreator(name, creator);\n }\n public overrideClassCreator(name: string, creator: () => any) {\n name = name.toLowerCase();\n var metaDataClass = this.findClass(name);\n if (metaDataClass) {\n metaDataClass.creator = creator;\n }\n }\n public getProperties(className: string): Array {\n var metaClass = this.findClass(className);\n if (!metaClass) return [];\n var properties = this.classProperties[metaClass.name];\n if (!!properties) return properties;\n this.fillPropertiesForClass(metaClass.name);\n return this.classProperties[metaClass.name];\n }\n private getHashProperties(className: string): HashTable {\n var metaClass = this.findClass(className);\n if (!metaClass) return {};\n var properties = this.classHashProperties[metaClass.name];\n if (!!properties) return properties;\n this.fillPropertiesForClass(metaClass.name);\n return this.classHashProperties[metaClass.name];\n }\n private fillPropertiesForClass(className: string) {\n var properties = new Array();\n var hashProperties = {};\n this.fillProperties(className, properties, hashProperties);\n this.classProperties[className] = properties;\n this.classHashProperties[className] = hashProperties;\n }\n public getPropertiesByObj(obj: any): Array {\n if (!obj || !obj.getType) return [];\n var res: any = {};\n var props = this.getProperties(obj.getType());\n for (var i = 0; i < props.length; i++) {\n res[props[i].name] = props[i];\n }\n var dynamicProps = !!obj.getDynamicType\n ? this.getProperties(obj.getDynamicType())\n : null;\n if (dynamicProps && dynamicProps.length > 0) {\n for (var i = 0; i < dynamicProps.length; i++) {\n let dProp = dynamicProps[i];\n if (!!res[dProp.name]) continue;\n res[dProp.name] = dProp;\n }\n }\n return Object.keys(res).map(key => res[key]);\n }\n public getDynamicPropertiesByObj(\n obj: any,\n dynamicType: string = null\n ): Array {\n if (!obj || !obj.getType || (!obj.getDynamicType && !dynamicType))\n return [];\n var dType = !!dynamicType ? dynamicType : obj.getDynamicType();\n if (!dType) return [];\n var dynamicProps = this.getProperties(dType);\n if (!dynamicProps || dynamicProps.length == 0) return [];\n var hash: any = {};\n var props = this.getProperties(obj.getType());\n for (var i = 0; i < props.length; i++) {\n hash[props[i].name] = props[i];\n }\n var res = [];\n for (var i = 0; i < dynamicProps.length; i++) {\n let dProp = dynamicProps[i];\n if (!hash[dProp.name]) {\n res.push(dProp);\n }\n }\n return res;\n }\n public findProperty(\n className: string,\n propertyName: string\n ): JsonObjectProperty {\n var hash = this.getHashProperties(className);\n var res = hash[propertyName];\n return !!res ? res : null;\n }\n public findProperties(\n className: string,\n propertyNames: Array\n ): Array {\n var result = [];\n var hash = this.getHashProperties(className);\n for (var i = 0; i < propertyNames.length; i++) {\n var prop = hash[propertyNames[i]];\n if (prop) {\n result.push(prop);\n }\n }\n return result;\n }\n public getAllPropertiesByName(\n propertyName: string\n ): Array {\n var res = new Array();\n var classes = this.getAllClasses();\n for (var i = 0; i < classes.length; i++) {\n var classInfo = this.findClass(classes[i]);\n for (var j = 0; j < classInfo.properties.length; j++) {\n if (classInfo.properties[j].name == propertyName) {\n res.push(classInfo.properties[j]);\n break;\n }\n }\n }\n return res;\n }\n public getAllClasses(): Array {\n var res = new Array();\n for (var name in this.classes) {\n res.push(name);\n }\n return res;\n }\n public createClass(name: string, json: any = undefined): any {\n name = name.toLowerCase();\n var metaDataClass = this.findClass(name);\n if (!metaDataClass) return null;\n if (metaDataClass.creator) return metaDataClass.creator(json);\n var parentName = metaDataClass.parentName;\n while (parentName) {\n metaDataClass = this.findClass(parentName);\n if (!metaDataClass) return null;\n parentName = metaDataClass.parentName;\n if (metaDataClass.creator)\n return this.createCustomType(name, metaDataClass.creator, json);\n }\n return null;\n }\n private createCustomType(\n name: string,\n creator: any,\n json: any = undefined\n ): any {\n name = name.toLowerCase();\n var res = creator(json);\n var customTypeName = name;\n var customTemplateName = res.getTemplate\n ? res.getTemplate()\n : res.getType();\n res.getType = function() {\n return customTypeName;\n };\n res.getTemplate = function() {\n return customTemplateName;\n };\n CustomPropertiesCollection.createProperties(res);\n return res;\n }\n public getChildrenClasses(\n name: string,\n canBeCreated: boolean = false\n ): Array {\n name = name.toLowerCase();\n var result: Array = [];\n this.fillChildrenClasses(name, canBeCreated, result);\n return result;\n }\n public getRequiredProperties(name: string): Array {\n var properties = this.getProperties(name);\n var res = [];\n for (var i = 0; i < properties.length; i++) {\n if (properties[i].isRequired) {\n res.push(properties[i].name);\n }\n }\n return res;\n }\n public addProperties(className: string, propertiesInfos: Array) {\n className = className.toLowerCase();\n var metaDataClass = this.findClass(className);\n for (var i = 0; i < propertiesInfos.length; i++) {\n this.addCustomPropertyCore(metaDataClass, propertiesInfos[i]);\n }\n }\n public addProperty(className: string, propertyInfo: any): JsonObjectProperty {\n return this.addCustomPropertyCore(this.findClass(className), propertyInfo);\n }\n private addCustomPropertyCore(\n metaDataClass: JsonMetadataClass,\n propertyInfo: any\n ): JsonObjectProperty {\n if (!metaDataClass) return null;\n var property = metaDataClass.createProperty(propertyInfo);\n if (property) {\n property.isCustom = true;\n this.addPropertyToClass(metaDataClass, property);\n this.emptyClassPropertiesHash(metaDataClass);\n CustomPropertiesCollection.addProperty(metaDataClass.name, property);\n }\n return property;\n }\n public removeProperty(className: string, propertyName: string) {\n var metaDataClass = this.findClass(className);\n if (!metaDataClass) return false;\n var property = metaDataClass.find(propertyName);\n if (property) {\n this.removePropertyFromClass(metaDataClass, property);\n this.emptyClassPropertiesHash(metaDataClass);\n CustomPropertiesCollection.removeProperty(\n metaDataClass.name,\n propertyName\n );\n }\n }\n private addPropertyToClass(\n metaDataClass: JsonMetadataClass,\n property: JsonObjectProperty\n ) {\n if (metaDataClass.find(property.name) != null) return;\n metaDataClass.properties.push(property);\n }\n private removePropertyFromClass(\n metaDataClass: JsonMetadataClass,\n property: JsonObjectProperty\n ) {\n var index = metaDataClass.properties.indexOf(property);\n if (index < 0) return;\n metaDataClass.properties.splice(index, 1);\n }\n private emptyClassPropertiesHash(metaDataClass: JsonMetadataClass) {\n this.classProperties[metaDataClass.name] = null;\n this.classHashProperties[metaDataClass.name] = null;\n var childClasses = this.getChildrenClasses(metaDataClass.name);\n for (var i = 0; i < childClasses.length; i++) {\n this.classProperties[childClasses[i].name] = null;\n this.classHashProperties[childClasses[i].name] = null;\n }\n }\n private fillChildrenClasses(\n name: string,\n canBeCreated: boolean,\n result: Array\n ) {\n var children = this.childrenClasses[name];\n if (!children) return;\n for (var i = 0; i < children.length; i++) {\n if (!canBeCreated || children[i].creator) {\n result.push(children[i]);\n }\n this.fillChildrenClasses(children[i].name, canBeCreated, result);\n }\n }\n public findClass(name: string): JsonMetadataClass {\n name = name.toLowerCase();\n var res = this.classes[name];\n if (!res) {\n var newName = this.alternativeNames[name];\n if (!!newName && newName != name) return this.findClass(newName);\n }\n return res;\n }\n public isDescendantOf(className: string, ancestorClassName: string) {\n if (!className || !ancestorClassName) {\n return false;\n }\n className = className.toLowerCase();\n ancestorClassName = ancestorClassName.toLowerCase();\n var class_ = this.findClass(className);\n if (!class_) {\n return false;\n }\n var parentClass = class_;\n do {\n if (parentClass.name === ancestorClassName) {\n return true;\n }\n parentClass = this.classes[parentClass.parentName];\n } while (!!parentClass);\n return false;\n }\n public addAlterNativeClassName(name: string, alternativeName: string) {\n this.alternativeNames[alternativeName.toLowerCase()] = name.toLowerCase();\n }\n public generateSchema(className: string = undefined): any {\n if (!className) className = \"survey\";\n var classInfo = this.findClass(className);\n if (!classInfo) return null;\n var res = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"SurveyJS Library json schema\",\n type: \"object\",\n properties: {},\n definitions: {},\n };\n this.generateSchemaProperties(classInfo, res.properties, res.definitions);\n return res;\n }\n private generateSchemaProperties(\n classInfo: JsonMetadataClass,\n schemaProperties: any,\n schemaDef: any\n ): void {\n if (!classInfo) return;\n for (var i = 0; i < classInfo.properties.length; i++) {\n var prop = classInfo.properties[i];\n schemaProperties[prop.name] = this.generateSchemaProperty(\n prop,\n schemaDef\n );\n }\n }\n private generateSchemaProperty(\n prop: JsonObjectProperty,\n schemaDef: any\n ): any {\n var res: any = { type: prop.schemaType() };\n if (prop.hasChoices) {\n res.enum = prop.getChoices(null);\n }\n if (!!prop.className) {\n res.items = { $ref: \"#\" + prop.className };\n this.generateChemaClass(prop.className, schemaDef);\n }\n if (!!prop.baseClassName) {\n var usedClasses = this.getChildrenClasses(prop.baseClassName, true);\n if (prop.baseClassName == \"question\") {\n usedClasses.push(this.findClass(\"panel\"));\n }\n res.items = [];\n for (var i = 0; i < usedClasses.length; i++) {\n var className = usedClasses[i].name;\n res.items.push({ $ref: \"#\" + className });\n this.generateChemaClass(className, schemaDef);\n }\n }\n return res;\n }\n private generateChemaClass(className: string, schemaDef: any) {\n if (!!schemaDef[className]) return;\n var classInfo = this.findClass(className);\n if (!classInfo) return;\n var hasParent = !!classInfo.parentName && classInfo.parentName != \"base\";\n if (hasParent) {\n this.generateChemaClass(classInfo.parentName, schemaDef);\n }\n var res: any = { type: \"object\", $id: \"#\" + className };\n schemaDef[className] = res;\n var props = {};\n this.generateSchemaProperties(classInfo, props, schemaDef);\n if (hasParent) {\n res.allOff = [\n { $ref: \"#\" + classInfo.parentName },\n { properties: props },\n ];\n } else {\n res.properties = props;\n }\n }\n private fillProperties(\n name: string,\n list: Array,\n hash: HashTable\n ) {\n var metaDataClass = this.findClass(name);\n if (!metaDataClass) return;\n if (metaDataClass.parentName) {\n this.fillProperties(metaDataClass.parentName, list, hash);\n }\n for (var i = 0; i < metaDataClass.properties.length; i++) {\n var prop = metaDataClass.properties[i];\n this.addPropertyCore(prop, list, hash);\n hash[prop.name] = prop;\n }\n }\n private addPropertyCore(\n property: JsonObjectProperty,\n list: Array,\n hash: HashTable\n ) {\n if (!hash[property.name]) {\n list.push(property);\n return;\n }\n var index = -1;\n for (var i = 0; i < list.length; i++) {\n if (list[i].name == property.name) {\n index = i;\n break;\n }\n }\n property.mergeWith(list[index]);\n list[index] = property;\n }\n}\nexport class JsonError {\n public description: string = \"\";\n public at: Number = -1;\n constructor(public type: string, public message: string) {}\n public getFullDescription(): string {\n return this.message + (this.description ? \"\\n\" + this.description : \"\");\n }\n}\nexport class JsonUnknownPropertyError extends JsonError {\n constructor(public propertyName: string, public className: string) {\n super(\n \"unknownproperty\",\n \"The property '\" +\n propertyName +\n \"' in class '\" +\n className +\n \"' is unknown.\"\n );\n var properties = JsonObject.metaData.getProperties(className);\n if (properties) {\n this.description = \"The list of available properties are: \";\n for (var i = 0; i < properties.length; i++) {\n if (i > 0) this.description += \", \";\n this.description += properties[i].name;\n }\n this.description += \".\";\n }\n }\n}\nexport class JsonMissingTypeErrorBase extends JsonError {\n constructor(\n public baseClassName: string,\n public type: string,\n public message: string\n ) {\n super(type, message);\n this.description = \"The following types are available: \";\n var types = JsonObject.metaData.getChildrenClasses(baseClassName, true);\n for (var i = 0; i < types.length; i++) {\n if (i > 0) this.description += \", \";\n this.description += \"'\" + types[i].name + \"'\";\n }\n this.description += \".\";\n }\n}\nexport class JsonMissingTypeError extends JsonMissingTypeErrorBase {\n constructor(public propertyName: string, public baseClassName: string) {\n super(\n baseClassName,\n \"missingtypeproperty\",\n \"The property type is missing in the object. Please take a look at property: '\" +\n propertyName +\n \"'.\"\n );\n }\n}\nexport class JsonIncorrectTypeError extends JsonMissingTypeErrorBase {\n constructor(public propertyName: string, public baseClassName: string) {\n super(\n baseClassName,\n \"incorrecttypeproperty\",\n \"The property type is incorrect in the object. Please take a look at property: '\" +\n propertyName +\n \"'.\"\n );\n }\n}\nexport class JsonRequiredPropertyError extends JsonError {\n constructor(public propertyName: string, public className: string) {\n super(\n \"requiredproperty\",\n \"The property '\" +\n propertyName +\n \"' is required in class '\" +\n className +\n \"'.\"\n );\n }\n}\n\nexport class JsonObject {\n private static typePropertyName = \"type\";\n private static positionPropertyName = \"pos\";\n private static metaDataValue = new JsonMetadata();\n public static get metaData() {\n return JsonObject.metaDataValue;\n }\n public errors = new Array();\n public lightSerializing: boolean = false;\n public toJsonObject(obj: any, storeDefaults = false): any {\n return this.toJsonObjectCore(obj, null, storeDefaults);\n }\n public toObject(jsonObj: any, obj: any) {\n this.toObjectCore(jsonObj, obj);\n var error = this.getRequiredError(obj, jsonObj);\n if (!!error) {\n this.addNewError(error, jsonObj);\n }\n }\n public toObjectCore(jsonObj: any, obj: any) {\n if (!jsonObj) return;\n var properties = null;\n var objType = undefined;\n var needAddErrors = true;\n if (obj.getType) {\n objType = obj.getType();\n properties = JsonObject.metaData.getProperties(objType);\n needAddErrors =\n !!objType && !JsonObject.metaData.isDescendantOf(objType, \"itemvalue\");\n }\n if (!properties) return;\n if (obj.startLoadingFromJson) {\n obj.startLoadingFromJson();\n }\n properties = this.addDynamicProperties(obj, jsonObj, properties);\n for (var key in jsonObj) {\n if (key === JsonObject.typePropertyName) continue;\n if (key === JsonObject.positionPropertyName) {\n obj[key] = jsonObj[key];\n continue;\n }\n var property = this.findProperty(properties, key);\n if (!property) {\n if (needAddErrors) {\n this.addNewError(\n new JsonUnknownPropertyError(key.toString(), objType),\n jsonObj\n );\n }\n continue;\n }\n this.valueToObj(jsonObj[key], obj, property);\n }\n if (obj.endLoadingFromJson) {\n obj.endLoadingFromJson();\n }\n }\n public toJsonObjectCore(\n obj: any,\n property: JsonObjectProperty,\n storeDefaults = false\n ): any {\n if (!obj || !obj.getType) return obj;\n if (typeof obj.getData === \"function\") return obj.getData();\n var result = {};\n if (property != null && !property.className) {\n (result)[JsonObject.typePropertyName] = property.getObjType(\n obj.getType()\n );\n }\n this.propertiesToJson(\n obj,\n JsonObject.metaData.getProperties(obj.getType()),\n result,\n storeDefaults\n );\n this.propertiesToJson(\n obj,\n this.getDynamicProperties(obj),\n result,\n storeDefaults\n );\n return result;\n }\n private getDynamicProperties(obj: any): Array {\n return Serializer.getDynamicPropertiesByObj(obj);\n }\n private addDynamicProperties(\n obj: any,\n jsonObj: any,\n properties: Array\n ): Array {\n if (!obj.getDynamicPropertyName) return properties;\n var dynamicPropName = obj.getDynamicPropertyName();\n if (!dynamicPropName) return properties;\n if (jsonObj[dynamicPropName]) {\n obj[dynamicPropName] = jsonObj[dynamicPropName];\n }\n var dynamicProperties = this.getDynamicProperties(obj);\n var res = [];\n for (var i = 0; i < properties.length; i++) {\n res.push(properties[i]);\n }\n for (var i = 0; i < dynamicProperties.length; i++) {\n res.push(dynamicProperties[i]);\n }\n return res;\n }\n private propertiesToJson(\n obj: any,\n properties: Array,\n json: any,\n storeDefaults = false\n ) {\n for (var i: number = 0; i < properties.length; i++) {\n this.valueToJson(obj, json, properties[i], storeDefaults);\n }\n }\n public valueToJson(\n obj: any,\n result: any,\n property: JsonObjectProperty,\n storeDefaults = false\n ) {\n if (\n property.isSerializable === false ||\n (property.isLightSerializable === false && this.lightSerializing)\n )\n return;\n var value = property.getValue(obj);\n if (!storeDefaults && property.isDefaultValue(value)) return;\n if (this.isValueArray(value)) {\n var arrValue = [];\n for (var i = 0; i < value.length; i++) {\n arrValue.push(this.toJsonObjectCore(value[i], property, storeDefaults));\n }\n value = arrValue.length > 0 ? arrValue : null;\n } else {\n value = this.toJsonObjectCore(value, property, storeDefaults);\n }\n var hasValue =\n typeof obj[\"getPropertyValue\"] === \"function\" &&\n obj[\"getPropertyValue\"](property.name, null) !== null;\n if ((storeDefaults && hasValue) || !property.isDefaultValue(value)) {\n result[property.name] = value;\n }\n }\n public valueToObj(value: any, obj: any, property: JsonObjectProperty) {\n if (value == null) return;\n this.removePos(property, value);\n if (property != null && property.hasToUseSetValue) {\n property.setValue(obj, value, this);\n return;\n }\n if (this.isValueArray(value)) {\n this.valueToArray(value, obj, property.name, property);\n return;\n }\n var newObj = this.createNewObj(value, property);\n if (newObj.newObj) {\n this.toObjectCore(value, newObj.newObj);\n value = newObj.newObj;\n }\n if (!newObj.error) {\n if (property != null) {\n property.setValue(obj, value, this);\n } else {\n obj[property.name] = value;\n }\n }\n }\n private removePos(property: JsonObjectProperty, value: any) {\n if (!property || !property.type || property.type.indexOf(\"value\") < 0)\n return;\n this.removePosFromObj(value);\n }\n private removePosFromObj(obj: any) {\n if (!obj) return;\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n this.removePosFromObj(obj[i]);\n }\n }\n if (!!obj[JsonObject.positionPropertyName]) {\n delete obj[JsonObject.positionPropertyName];\n }\n }\n private isValueArray(value: any): boolean {\n return value && Array.isArray(value);\n }\n private createNewObj(value: any, property: JsonObjectProperty): any {\n var result: any = { newObj: null, error: null };\n var className = value[JsonObject.typePropertyName];\n if (!className && property != null && property.className) {\n className = property.className;\n }\n className = property.getClassName(className);\n result.newObj = className\n ? JsonObject.metaData.createClass(className, value)\n : null;\n result.error = this.checkNewObjectOnErrors(\n result.newObj,\n value,\n property,\n className\n );\n return result;\n }\n private checkNewObjectOnErrors(\n newObj: any,\n value: any,\n property: JsonObjectProperty,\n className: string\n ): JsonError {\n var error = null;\n if (newObj) {\n error = this.getRequiredError(newObj, value);\n } else {\n if (property.baseClassName) {\n if (!className) {\n error = new JsonMissingTypeError(\n property.name,\n property.baseClassName\n );\n } else {\n error = new JsonIncorrectTypeError(\n property.name,\n property.baseClassName\n );\n }\n }\n }\n if (error) {\n this.addNewError(error, value);\n }\n return error;\n }\n private getRequiredError(obj: any, jsonValue: any): JsonError {\n if (!obj.getType || typeof obj.getData === \"function\") return null;\n var className = obj.getType();\n var requiredProperties = JsonObject.metaData.getRequiredProperties(\n className\n );\n if (!requiredProperties) return null;\n for (var i = 0; i < requiredProperties.length; i++) {\n if (!jsonValue[requiredProperties[i]]) {\n return new JsonRequiredPropertyError(requiredProperties[i], className);\n }\n }\n return null;\n }\n private addNewError(error: JsonError, jsonObj: any) {\n if (jsonObj && jsonObj[JsonObject.positionPropertyName]) {\n error.at = jsonObj[JsonObject.positionPropertyName].start;\n }\n this.errors.push(error);\n }\n private valueToArray(\n value: Array,\n obj: any,\n key: any,\n property: JsonObjectProperty\n ) {\n if (obj[key] && value.length > 0) obj[key].splice(0, obj[key].length);\n var valueRes = obj[key] ? obj[key] : [];\n this.addValuesIntoArray(value, valueRes, property);\n if (!obj[key]) obj[key] = valueRes;\n }\n private addValuesIntoArray(\n value: Array,\n result: Array,\n property: JsonObjectProperty\n ) {\n for (var i = 0; i < value.length; i++) {\n var newValue = this.createNewObj(value[i], property);\n if (newValue.newObj) {\n if (!!value[i].name) {\n newValue.newObj.name = value[i].name;\n }\n result.push(newValue.newObj);\n this.toObjectCore(value[i], newValue.newObj);\n } else {\n if (!newValue.error) {\n result.push(value[i]);\n }\n }\n }\n }\n private findProperty(\n properties: Array,\n key: any\n ): JsonObjectProperty {\n if (!properties) return null;\n for (var i = 0; i < properties.length; i++) {\n var prop = properties[i];\n if (prop.name == key || prop.alternativeName == key) return prop;\n }\n return null;\n }\n}\n\n/**\n * An alias for the metadata object. It contains object properties' runtime information and allows you to modify it.\n * @see JsonMetadata\n */\nexport var Serializer = JsonObject.metaData;\n","import { IActionBarItem } from \"./action-bar\";\r\nimport { Base } from \"./base\";\r\nimport { property } from \"./jsonobject\";\r\n\r\nexport class ListModel extends Base {\r\n @property({ defaultValue: false }) isExpanded: boolean;\r\n @property() selectedItem: IActionBarItem;\r\n\r\n constructor(\r\n items: Array,\r\n public onItemSelect: (item: IActionBarItem) => void,\r\n public allowSelection: boolean,\r\n selectedItem?: IActionBarItem\r\n ) {\r\n super();\r\n this.createNewArray(\"items\");\r\n this.items = items;\r\n this.selectedItem = selectedItem;\r\n }\r\n\r\n public get items(): Array {\r\n return this.getPropertyValue(\"items\");\r\n }\r\n public set items(value: Array) {\r\n this.items.splice(0, this.items.length, ...(value || []));\r\n }\r\n\r\n public selectItem = (itemValue: IActionBarItem) => {\r\n this.isExpanded = false;\r\n if (this.allowSelection) {\r\n this.selectedItem = itemValue;\r\n }\r\n if (!!this.onItemSelect) {\r\n this.onItemSelect(itemValue);\r\n }\r\n };\r\n\r\n public isItemDisabled = (itemValue: IActionBarItem) => {\r\n return itemValue.enabled !== undefined && !itemValue.enabled;\r\n };\r\n\r\n public isItemSelected = (itemValue: IActionBarItem) => {\r\n return this.allowSelection && this.selectedItem == itemValue;\r\n };\r\n\r\n public getItemClass = (itemValue: IActionBarItem) => {\r\n var className = \"sv-list__item\";\r\n if (this.isItemDisabled(itemValue)) {\r\n className += \" sv-list__item--disabled\";\r\n }\r\n if (this.isItemSelected(itemValue)) {\r\n className += \" sv-list__item--selected\";\r\n }\r\n return className;\r\n };\r\n}\r\n","import { Helpers } from \"./helpers\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { settings } from \"./settings\";\n\nexport interface ILocalizableOwner {\n getLocale(): string;\n getMarkdownHtml(text: string, name: string): string;\n getProcessedText(text: string): string;\n getRenderer(name: string): string;\n}\nexport interface ILocalizableString {\n getLocaleText(loc: string): string;\n setLocaleText(loc: string, newValue: string): any;\n getLocales(): Array;\n}\n/**\n * The class represents the string that supports multi-languages and markdown.\n * It uses in all objects where support for multi-languages and markdown is required.\n */\nexport class LocalizableString implements ILocalizableString {\n public static SerializeAsObject: boolean = false;\n public static get defaultLocale(): string {\n return settings.defaultLocaleName;\n }\n public static set defaultLocale(val: string) {\n settings.defaultLocaleName = val;\n }\n public static defaultRenderer = \"sv-string-viewer\";\n public static editableRenderer = \"sv-string-editor\";\n private values = {};\n private htmlValues = {};\n private renderedText: string;\n private calculatedTextValue: string;\n public onGetTextCallback: (str: string) => string;\n public onStrChanged: () => void;\n public sharedData: LocalizableString;\n constructor(\n public owner: ILocalizableOwner,\n public useMarkdown: boolean = false,\n public name?: string\n ) {\n this.onCreating();\n }\n public get locale() {\n return this.owner && this.owner.getLocale ? this.owner.getLocale() : \"\";\n }\n public strChanged() {\n if (this.renderedText === undefined) return;\n this.calculatedTextValue = this.calText();\n if (this.renderedText !== this.calculatedTextValue) {\n this.renderedText = undefined;\n this.calculatedTextValue = undefined;\n this.onChanged();\n }\n }\n public get text(): string {\n return this.pureText;\n }\n public get calculatedText(): string {\n this.renderedText =\n this.calculatedTextValue !== undefined\n ? this.calculatedTextValue\n : this.calText();\n this.calculatedTextValue = undefined;\n return this.renderedText;\n }\n private calText(): string {\n var res = this.pureText;\n if (\n res &&\n this.owner &&\n this.owner.getProcessedText &&\n res.indexOf(\"{\") > -1\n ) {\n res = this.owner.getProcessedText(res);\n }\n if (this.onGetTextCallback) res = this.onGetTextCallback(res);\n return res;\n }\n public get pureText() {\n var loc = this.locale;\n if (!loc) loc = settings.defaultLocaleName;\n var res = this.getValue(loc);\n if (!res && loc == settings.defaultLocaleName) {\n res = this.getValue(surveyLocalization.defaultLocale);\n }\n if (!res && loc !== settings.defaultLocaleName) {\n res = this.getValue(settings.defaultLocaleName);\n }\n if (!res) res = \"\";\n return res;\n }\n public get hasHtml(): boolean {\n return this.hasHtmlValue();\n }\n public get html() {\n if (!this.hasHtml) return \"\";\n return this.getHtmlValue();\n }\n public get isEmpty(): boolean {\n return this.getValuesKeys().length == 0;\n }\n public get textOrHtml() {\n return this.hasHtml ? this.getHtmlValue() : this.calculatedText;\n }\n public get renderedHtml() {\n return this.textOrHtml;\n }\n public set text(value: string) {\n this.setLocaleText(this.locale, value);\n }\n public getLocaleText(loc: string): string {\n if (!loc) loc = settings.defaultLocaleName;\n var res = this.getValue(loc);\n return res ? res : \"\";\n }\n public setLocaleText(loc: string, value: string) {\n if (value == this.getLocaleText(loc)) return;\n if (\n value &&\n loc &&\n loc != settings.defaultLocaleName &&\n !this.getValue(loc) &&\n value == this.getLocaleText(settings.defaultLocaleName)\n )\n return;\n if (!loc) loc = settings.defaultLocaleName;\n delete (this).htmlValues[loc];\n if (!value) {\n if (this.getValue(loc)) this.deleteValue(loc);\n } else {\n if (typeof value === \"string\") {\n if (\n loc != settings.defaultLocaleName &&\n value == this.getLocaleText(settings.defaultLocaleName)\n ) {\n this.setLocaleText(loc, null);\n } else {\n this.setValue(loc, value);\n if (loc == settings.defaultLocaleName) {\n this.deleteValuesEqualsToDefault(value);\n }\n }\n }\n }\n this.strChanged();\n }\n public hasNonDefaultText(): boolean {\n var keys = this.getValuesKeys();\n if (keys.length == 0) return false;\n return keys.length > 1 || keys[0] != settings.defaultLocaleName;\n }\n public getLocales(): Array {\n var keys = this.getValuesKeys();\n if (keys.length == 0) return [];\n return keys;\n }\n public getJson(): any {\n if (!!this.sharedData) return this.sharedData.getJson();\n var keys = this.getValuesKeys();\n if (keys.length == 0) return null;\n if (\n keys.length == 1 &&\n keys[0] == settings.defaultLocaleName &&\n !settings.serializeLocalizableStringAsObject\n )\n return (this).values[keys[0]];\n return this.values;\n }\n public setJson(value: any) {\n if (!!this.sharedData) {\n this.sharedData.setJson(value);\n return;\n }\n this.values = {};\n this.htmlValues = {};\n if (!value) return;\n if (typeof value === \"string\") {\n this.setLocaleText(null, value);\n } else {\n for (var key in value) {\n this.setLocaleText(key, value[key]);\n }\n }\n this.strChanged();\n }\n public get renderAs(): string {\n if (!this.owner) {\n return LocalizableString.defaultRenderer;\n }\n if (typeof this.owner.getRenderer !== \"function\") {\n return LocalizableString.defaultRenderer;\n }\n return (\n this.owner.getRenderer(this.name) || LocalizableString.defaultRenderer\n );\n }\n public equals(obj: any): boolean {\n if (!!this.sharedData) return this.sharedData.equals(obj);\n if (!obj || !obj.values) return false;\n return Helpers.isTwoValueEquals(this.values, obj.values);\n }\n public onChanged() {\n if (this.onStrChanged) this.onStrChanged();\n }\n protected onCreating() {}\n private hasHtmlValue(): boolean {\n if (!this.owner || !this.useMarkdown) return false;\n var renderedText = this.calculatedText;\n if (!renderedText) return false;\n var loc = this.locale;\n if (!loc) loc = settings.defaultLocaleName;\n (this).htmlValues[loc] = this.owner.getMarkdownHtml(\n renderedText,\n this.name\n );\n return (this).htmlValues[loc] ? true : false;\n }\n private getHtmlValue(): string {\n var loc = this.locale;\n if (!loc) loc = settings.defaultLocaleName;\n return (this).htmlValues[loc];\n }\n private deleteValuesEqualsToDefault(defaultValue: string) {\n var keys = this.getValuesKeys();\n for (var i = 0; i < keys.length; i++) {\n if (keys[i] == settings.defaultLocaleName) continue;\n if (this.getValue(keys[i]) == defaultValue) {\n this.deleteValue(keys[i]);\n }\n }\n }\n private getValue(loc: string): string {\n if (!!this.sharedData) return this.sharedData.getValue(loc);\n return (this).values[loc];\n }\n private setValue(loc: string, value: string) {\n if (!!this.sharedData) this.sharedData.setValue(loc, value);\n else (this).values[loc] = value;\n }\n private deleteValue(loc: string) {\n if (!!this.sharedData) this.sharedData.deleteValue(loc);\n else delete (this).values[loc];\n }\n private getValuesKeys(): string[] {\n if (!!this.sharedData) return this.sharedData.getValuesKeys();\n return Object.keys(this.values);\n }\n}\n/**\n * The class represents the list of strings that supports multi-languages.\n */\nexport class LocalizableStrings implements ILocalizableString {\n private values: any = {};\n constructor(public owner: ILocalizableOwner) {}\n public get locale() {\n return this.owner && this.owner.getLocale ? this.owner.getLocale() : \"\";\n }\n public get value(): Array {\n return this.getValue(\"\");\n }\n public set value(val: Array) {\n this.setValue(\"\", val);\n }\n public get text(): string {\n return Array.isArray(this.value) ? this.value.join(\"\\n\") : \"\";\n }\n public set text(val: string) {\n this.value = !!val ? val.split(\"\\n\") : [];\n }\n public getLocaleText(loc: string): string {\n var res = this.getValueCore(loc, !loc || loc === this.locale);\n if (!res || !Array.isArray(res) || res.length == 0) return \"\";\n return res.join(\"\\n\");\n }\n public setLocaleText(loc: string, newValue: string): any {\n var val = !!newValue ? newValue.split(\"\\n\") : null;\n this.setValue(loc, val);\n }\n public getValue(loc: string): Array {\n return this.getValueCore(loc);\n }\n private getValueCore(loc: string, useDefault: boolean = true): Array {\n loc = this.getLocale(loc);\n if (this.values[loc]) return this.values[loc];\n if (useDefault) {\n var defLoc = settings.defaultLocaleName;\n if (loc !== defLoc) return this.values[defLoc];\n }\n return [];\n }\n public setValue(loc: string, val: Array) {\n loc = this.getLocale(loc);\n if (!val || val.length == 0) {\n delete this.values[loc];\n } else {\n this.values[loc] = val;\n }\n }\n public get isEmpty(): boolean {\n return this.getValuesKeys().length == 0;\n }\n private getLocale(loc: string): string {\n if (!!loc) return loc;\n loc = this.locale;\n return !!loc ? loc : settings.defaultLocaleName;\n }\n public getLocales(): Array {\n var keys = this.getValuesKeys();\n if (keys.length == 0) return [];\n return keys;\n }\n public getJson(): any {\n var keys = this.getValuesKeys();\n if (keys.length == 0) return null;\n if (\n keys.length == 1 &&\n keys[0] == settings.defaultLocaleName &&\n !settings.serializeLocalizableStringAsObject\n )\n return (this).values[keys[0]];\n return this.values;\n }\n public setJson(value: any) {\n this.values = {};\n if (!value) return;\n if (Array.isArray(value)) {\n this.setValue(null, value);\n } else {\n for (var key in value) {\n this.setValue(key, value[key]);\n }\n }\n }\n private getValuesKeys(): string[] {\n return Object.keys(this.values);\n }\n}\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var arabicSurveyStrings = {\n pagePrevText: \"السابق\",\n pageNextText: \"التالي\",\n completeText: \"إرسال البيانات\",\n previewText: \"معاينة\",\n editText: \"تعديل\",\n startSurveyText: \"بداية\",\n otherItemText: \"نص آخر\",\n noneItemText: \"لا شيء\",\n selectAllItemText: \"اختر الكل\",\n progressText: \"{1} صفحة {0} من\",\n panelDynamicProgressText: \"سجل {0} من {1}\",\n questionsProgressText: \"تمت الإجابة على أسئلة {0} / {1}\",\n emptySurvey: \"لا توجد صفحة مرئية أو سؤال في النموذج\",\n completingSurvey: \"شكرا لكم لاستكمال النموذج!\",\n completingSurveyBefore:\n \"تظهر سجلاتنا أنك قد أكملت هذا الاستطلاع بالفعل.\",\n loadingSurvey: \"...يتم تحميل النموذج\",\n optionsCaption: \"...اختر\",\n value: \"القيمة\",\n requiredError: \".يرجى الإجابة على السؤال\",\n requiredErrorInPanel: \"الرجاء الإجابة على سؤال واحد على الأقل.\",\n requiredInAllRowsError: \"يرجى الإجابة على الأسئلة في جميع الصفوف\",\n numericError: \"يجب أن تكون القيمة رقمية.\",\n textMinLength: \"الرجاء إدخال ما لا يقل عن {0} حروف\",\n textMaxLength: \"الرجاء إدخال أقل من {0} حروف\",\n textMinMaxLength: \"يرجى إدخال أكثر من {0} وأقل من {1} حروف\",\n minRowCountError: \"يرجى ملء ما لا يقل عن {0} الصفوف\",\n minSelectError: \"يرجى تحديد ما لا يقل عن {0} المتغيرات\",\n maxSelectError: \"يرجى تحديد ما لا يزيد عن {0} المتغيرات\",\n numericMinMax:\n \"و'{0}' يجب أن تكون مساوية أو أكثر من {1} وتساوي أو أقل من {2}ا\",\n numericMin: \"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا\",\n numericMax: \"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا\",\n invalidEmail: \"الرجاء إدخال بريد الكتروني صحيح\",\n invalidExpression: \"يجب أن يعرض التعبير: {0} 'صواب'.\",\n urlRequestError: \"طلب إرجاع خطأ '{0}'. {1}ا\",\n urlGetChoicesError: \"عاد طلب البيانات فارغ أو 'المسار' غير صحيح \",\n exceedMaxSize: \"ينبغي ألا يتجاوز حجم الملف {0}ا\",\n otherRequiredError: \"الرجاء إدخال قيمة أخرى\",\n uploadingFile: \"تحميل الملف الخاص بك. يرجى الانتظار عدة ثوان والمحاولة لاحقًا\",\n loadingFile: \"جار التحميل...\",\n chooseFile: \"اختر الملفات...\",\n noFileChosen: \"لم تقم باختيار ملف\",\n confirmDelete: \"هل تريد حذف السجل؟\",\n keyDuplicationError: \"يجب أن تكون هذه القيمة فريدة.\",\n addColumn: \"أضف العمود\",\n addRow: \"اضافة صف\",\n removeRow: \"إزالة صف\",\n addPanel: \"اضف جديد\",\n removePanel: \"إزالة\",\n choices_Item: \"بند\",\n matrix_column: \"عمود\",\n matrix_row: \"صف\",\n savingData: \"يتم حفظ النتائج على الخادم ...\",\n savingDataError: \"حدث خطأ ولم نتمكن من حفظ النتائج.\",\n savingDataSuccess: \"تم حفظ النتائج بنجاح!\",\n saveAgainButton: \"حاول مجددا\",\n timerMin: \"دقيقة\",\n timerSec: \"ثانية\",\n timerSpentAll: \"لقد أنفقت {0} على هذه الصفحة و {1} إجمالاً.\",\n timerSpentPage: \"لقد أنفقت {0} على هذه الصفحة.\",\n timerSpentSurvey: \"لقد أنفقت {0} إجمالاً.\",\n timerLimitAll:\n \"لقد أنفقت {0} من {1} في هذه الصفحة و {2} من إجمالي {3}.\",\n timerLimitPage: \"لقد أنفقت {0} من {1} في هذه الصفحة.\",\n timerLimitSurvey: \"لقد أنفقت {0} من إجمالي {1}.\",\n cleanCaption: \"نظيف\",\n clearCaption: \"واضح\",\n chooseFileCaption: \"اختر ملف\",\n removeFileCaption: \"قم بإزالة هذا الملف\",\n booleanCheckedLabel: \"نعم\",\n booleanUncheckedLabel: \"لا\",\n confirmRemoveFile: \"هل أنت متأكد أنك تريد إزالة هذا الملف: {0}؟\",\n confirmRemoveAllFiles: \"هل أنت متأكد أنك تريد إزالة كافة الملفات؟\",\n questionTitlePatternText: \"عنوان السؤال\",\n};\n\nsurveyLocalization.locales[\"ar\"] = arabicSurveyStrings;\nsurveyLocalization.localeNames[\"ar\"] = \"العربية\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var bulgarianStrings = {\n pagePrevText: \"Назад\",\n pageNextText: \"Напред\",\n completeText: \"Край\",\n previewText: \"Визуализация\",\n editText: \"редактиране\",\n startSurveyText: \"Начало\",\n otherItemText: \"Друго (опишете)\",\n noneItemText: \"Нито един\",\n selectAllItemText: \"Всички\",\n progressText: \"стр. {0}, общо стр. {1}\",\n panelDynamicProgressText: \"Запис {0} от {1}\",\n questionsProgressText: \"Отговорени на {0} / {1} въпроса\",\n emptySurvey: \"Анкетата не съдържа видими страници или въпроси.\",\n completingSurvey: \"Благодарим ви за участието в анкетата!\",\n completingSurveyBefore: \"Изглежда, че вие вече сте попълнили анкетата.\",\n loadingSurvey: \"Зареждане на анкетата...\",\n optionsCaption: \"Изберете...\",\n value: \"value\",\n requiredError: \"Моля, отговорете на следния въпрос.\",\n requiredErrorInPanel: \"Моля, отговорете поне на един от въпросите.\",\n requiredInAllRowsError: \"Моля, отговорете на въпросите на всички редове.\",\n numericError: \"Стойността следва да бъде число.\",\n textMinLength: \"Моля, използвайте поне {0} символа.\",\n textMaxLength: \"Моля, използвайте не повече от {0} символа.\",\n textMinMaxLength:\n \"Моля, използвайте повече от {0} и по-малко от {1} символа.\",\n minRowCountError: \"Моля, попълнете поне {0} реда.\",\n minSelectError: \"Моля, изберете поне {0} варианта.\",\n maxSelectError: \"Моля, изберете не повече от {0} варианта.\",\n numericMinMax:\n \"Стойността '{0}' следва да бъде равна или по-голяма от {1} и равна или по-малка от {2}\",\n numericMin: \"Стойността '{0}' следва да бъде равна или по-голяма от {1}\",\n numericMax: \"Стойността '{0}' следва да бъде равна или по-малка от {1}\",\n invalidEmail: \"Моля, въведете валиден адрес на електронна поща.\",\n invalidExpression: \"Изразът: {0} трябва да дава резултат 'true' (истина).\",\n urlRequestError: \"Заявката води до грешка '{0}'. {1}\",\n urlGetChoicesError:\n \"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена\",\n exceedMaxSize: \"Размерът на файла следва да не превишава {0}.\",\n otherRequiredError: \"Моля, въведете другата стойност.\",\n uploadingFile:\n \"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.\",\n loadingFile: \"Зареждане...\",\n chooseFile: \"Изберете файл(ове)...\",\n noFileChosen: \"Няма избран файл\",\n confirmDelete: \"Желаете ли да изтриете записа?\",\n keyDuplicationError: \"Стойността следва да бъде уникална.\",\n addColumn: \"Добавяне на колона\",\n addRow: \"Добавяне на ред\",\n removeRow: \"Премахване на ред\",\n addPanel: \"Добавяне на панел\",\n removePanel: \"Премахване на панел\",\n choices_Item: \"елемент\",\n matrix_column: \"Колона\",\n matrix_row: \"Ред\",\n savingData: \"Резултатите се запазват на сървъра...\",\n savingDataError:\n \"Поради възникнала грешка резултатите не можаха да бъдат запазени.\",\n savingDataSuccess: \"Резултатите бяха запазени успешно!\",\n saveAgainButton: \"Нов опит\",\n timerMin: \"мин\",\n timerSec: \"сек\",\n timerSpentAll: \"Вие използвахте {0} на тази страница и общо {1}.\",\n timerSpentPage: \"Вие използвахте {0} на тази страница.\",\n timerSpentSurvey: \"Вие използвахте общо {0}.\",\n timerLimitAll:\n \"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.\",\n timerLimitPage: \"Вие използвахте {0} от {1} на тази страница.\",\n timerLimitSurvey: \"Вие използвахте общо {0} от {1}.\",\n cleanCaption: \"Изчистване\",\n clearCaption: \"Начално състояние\",\n chooseFileCaption: \"Изберете файл\",\n removeFileCaption: \"Премахване на файла\",\n booleanCheckedLabel: \"Да\",\n booleanUncheckedLabel: \"Не\",\n confirmRemoveFile: \"Наистина ли искате да премахнете този файл: {0}?\",\n confirmRemoveAllFiles: \"Наистина ли искате да премахнете всички файлове?\",\n questionTitlePatternText: \"Заглавие на въпроса\",\n};\n\nsurveyLocalization.locales[\"bg\"] = bulgarianStrings;\nsurveyLocalization.localeNames[\"bg\"] = \"български\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var catalanSurveyStrings = {\n pagePrevText: \"Anterior\",\n pageNextText: \"Següent\",\n completeText: \"Complet\",\n otherItemText: \"Un altre (descrigui)\",\n progressText: \"Pàgina {0} de {1}\",\n emptySurvey: \"No hi ha cap pàgina visible o pregunta a l'enquesta.\",\n completingSurvey: \"Gràcies per completar l'enquesta!\",\n loadingSurvey: \"L'enquesta s'està carregant ...\",\n optionsCaption: \"Selecciona ...\",\n requiredError: \"Si us plau contesti la pregunta.\",\n requiredInAllRowsError: \"Si us plau contesti les preguntes de cada filera.\",\n numericError: \"L'estimació ha de ser numèrica.\",\n textMinLength: \"Si us plau entre almenys {0} símbols.\",\n textMaxLength: \"Si us plau entre menys de {0} símbols.\",\n textMinMaxLength: \"Si us plau entre més de {0} i menys de {1} símbols.\",\n minRowCountError: \"Si us plau ompli almenys {0} fileres.\",\n minSelectError: \"Si us plau seleccioni almenys {0} variants.\",\n maxSelectError: \"Si us plau seleccioni no més de {0} variants.\",\n numericMinMax: \"El '{0}' deu ser igual o més de {1} i igual o menys de {2}\",\n numericMin: \"El '{0}' ha de ser igual o més de {1}\",\n numericMax: \"El '{0}' ha de ser igual o menys de {1}\",\n invalidEmail: \"Si us plau afegiu un correu electrònic vàlid.\",\n urlRequestError: \"La sol·licitud va tornar error '{0}'. {1}\",\n urlGetChoicesError:\n \"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta\",\n exceedMaxSize: \"La mida de l'arxiu no pot excedir {0}.\",\n otherRequiredError: \"Si us plau afegiu l'altra estimació.\",\n uploadingFile:\n \"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.\",\n addRow: \"Afegiu una filera\",\n removeRow: \"Eliminar una filera\",\n choices_firstItem: \"primer article\",\n choices_secondItem: \"segon article\",\n choices_thirdItem: \"tercer article\",\n matrix_column: \"Columna\",\n matrix_row: \"Filera\"\n};\n\nsurveyLocalization.locales[\"ca\"] = catalanSurveyStrings;\nsurveyLocalization.localeNames[\"ca\"] = \"català\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var croatianStrings = {\n pagePrevText: \"Prethodni\",\n pageNextText: \"Sljedeći\",\n completeText: \"Kompletan\",\n previewText: \"Pregled\",\n editText: \"Uređivanje\",\n startSurveyText: \"Početak\",\n otherItemText: \"Ostali (opis)\",\n noneItemText: \"Nitko\",\n selectAllItemText: \"Select All\",\n progressText: \"Stranica {0} od {1}\",\n panelDynamicProgressText: \"Zapisa {0} od {1}\",\n questionsProgressText: \"Odgovorio na {0}/{1} pitanja\",\n emptySurvey: \"U anketi nema vidljive stranice ili pitanja.\",\n completingSurvey: \"Hvala vam što ste završili anketu!\",\n completingSurveyBefore:\n \"Naši zapisi pokazuju da ste već završili ovu anketu.\",\n loadingSurvey: \"Anketa o učitavanje...\",\n optionsCaption: \"Odaberite...\",\n value: \"vrijednost\",\n requiredError: \"Molim vas odgovorite na pitanje.\",\n requiredErrorInPanel: \"Molim vas odgovorite na barem jedno pitanje.\",\n requiredInAllRowsError: \"Odgovorite na pitanja u svim redovima.\",\n numericError: \"Vrijednost bi trebala biti brojčana.\",\n textMinLength: \"Unesite najmanje {0} znak(ova).\",\n textMaxLength: \"Unesite manje od {0} znak(ova).\",\n textMinMaxLength: \"Unesite više od {0} i manje od {1} znakova.\",\n minRowCountError: \"Molimo ispunite najmanje {0} redaka.\",\n minSelectError: \"Odaberite barem {0} varijante.\",\n maxSelectError: \"Odaberite ne više od {0} varijanti.\",\n numericMinMax:\n \"'{0}'bi trebao biti jednak ili više od {1} i jednak ili manji od {2}.\",\n numericMin: \"'{0}' bi trebao biti jednak ili više od {1}.\",\n numericMax: \"'{0}' bi trebao biti jednak ili manji od {1}\",\n invalidEmail: \"Unesite valjanu e-mail adresu.\",\n invalidExpression: \"Izraz: {0} treba vratiti 'true'.\",\n urlRequestError: \"Zahtjev vratio pogrešku '{0}'. {1}\",\n urlGetChoicesError:\n \"Zahtjev je vratio prazne podatke ili je 'path' svojstvo netočna.\",\n exceedMaxSize: \"Veličina datoteke ne smije prelaziti {0}.\",\n otherRequiredError: \"Unesite drugu vrijednost.\",\n uploadingFile:\n \"Vaša datoteka se prenosi. Pričekajte nekoliko sekundi i pokušajte ponovno.\",\n loadingFile: \"Učitavanje...\",\n chooseFile: \"Odaberite datoteku...\",\n noFileChosen: \"Nije odabrana datoteka\",\n confirmDelete: \"Želite li izbrisati zapis?\",\n keyDuplicationError: \"Ta bi vrijednost trebala biti jedinstvena.\",\n addColumn: \"Dodavanje stupca\",\n addRow: \"Dodavanje redaka\",\n removeRow: \"Ukloniti\",\n addPanel: \"Dodavanje novih\",\n removePanel: \"Ukloniti\",\n choices_Item: \"stavku\",\n matrix_column: \"Stupca\",\n matrix_row: \"Redak\",\n savingData: \"Rezultati se spremaju na poslužitelju...\",\n savingDataError: \"Došlo je do pogreške i nismo mogli spremiti rezultate.\",\n savingDataSuccess: \"Rezultati su uspješno spremljeni!\",\n saveAgainButton: \"Pokušaj ponovo\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Vi ste proveli {0} na ovoj stranici i {1} ukupno.\",\n timerSpentPage: \"Potrošili ste {0} na ovu stranicu.\",\n timerSpentSurvey: \"You have spent {0} in total. {0}.\",\n timerLimitAll:\n \"Vi ste proveli {0} od {1} na ovoj stranici i {2} od {3} ukupno.\",\n timerLimitPage: \"Potrošio si {0} od {1} na ovoj stranici.\",\n timerLimitSurvey: \"Ukupno ste potrošili {0} od {1}.\",\n cleanCaption: \"Očistiti\",\n clearCaption: \"Očistiti\",\n chooseFileCaption: \"Odaberite datoteku\",\n removeFileCaption: \"Uklonite ovu datoteku\",\n booleanCheckedLabel: \"Da\",\n booleanUncheckedLabel: \"Ne\",\n confirmRemoveFile: \"Jeste li sigurni da želite ukloniti ovu datoteku: {0}?\",\n confirmRemoveAllFiles: \"Jeste li sigurni da želite ukloniti sve datoteke?\",\n questionTitlePatternText: \"Naslov pitanja\",\n modalCancelButtonText: \"Otkazati\",\n modalApplyButtonText: \"Primijeniti\",\n};\n\nsurveyLocalization.locales[\"hr\"] = croatianStrings;\nsurveyLocalization.localeNames[\"hr\"] = \"hrvatski\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var czechSurveyStrings = {\n pagePrevText: \"Předchozí\",\n pageNextText: \"Další\",\n completeText: \"Hotovo\",\n previewText: \"Náhled\",\n editText: \"Upravit\",\n startSurveyText: \"Start\",\n otherItemText: \"Jiná odpověď (napište)\",\n noneItemText: \"Žádný\",\n selectAllItemText: \"Vybrat vše\",\n progressText: \"Strana {0} z {1}\",\n panelDynamicProgressText: \"Záznam {0} z {1}\",\n questionsProgressText: \"Zodpovězené otázky: {0} / {1}\",\n emptySurvey: \"Průzkumu neobsahuje žádné otázky.\",\n completingSurvey: \"Děkujeme za vyplnění průzkumu!\",\n completingSurveyBefore:\n \"Naše záznamy ukazují, že jste tento průzkum již dokončili.\",\n loadingSurvey: \"Probíhá načítání průzkumu...\",\n optionsCaption: \"Vyber...\",\n value: \"hodnota\",\n requiredError: \"Odpovězte prosím na otázku.\",\n requiredErrorInPanel: \"Please answer at least one question.\",\n requiredInAllRowsError: \"Odpovězte prosím na všechny otázky.\",\n numericError: \"V tomto poli lze zadat pouze čísla.\",\n textMinLength: \"Zadejte prosím alespoň {0} znaků.\",\n textMaxLength: \"Zadejte prosím méně než {0} znaků.\",\n textMinMaxLength: \"Zadejte prosím více než {0} a méně než {1} znaků.\",\n minRowCountError: \"Vyplňte prosím alespoň {0} řádků.\",\n minSelectError: \"Vyberte prosím alespoň {0} varianty.\",\n maxSelectError: \"Nevybírejte prosím více než {0} variant.\",\n numericMinMax:\n \"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}\",\n numericMin: \"Odpověď '{0}' by mělo být větší nebo rovno {1}\",\n numericMax: \"Odpověď '{0}' by mělo být menší nebo rovno {1}\",\n invalidEmail: \"Zadejte prosím platnou e-mailovou adresu.\",\n invalidExpression: \"Výraz: {0} by měl vrátit hodnotu „true“.\",\n urlRequestError: \"Požadavek vrátil chybu '{0}'. {1}\",\n urlGetChoicesError: \"Požadavek nevrátil data nebo cesta je neplatná\",\n exceedMaxSize: \"Velikost souboru by neměla být větší než {0}.\",\n otherRequiredError: \"Zadejte prosím jinou hodnotu.\",\n uploadingFile: \"Váš soubor se nahrává. Zkuste to prosím za několik sekund.\",\n loadingFile: \"Načítání...\",\n chooseFile: \"Vyberte soubory ...\",\n noFileChosen: \"Není zvolený žádný soubor\",\n confirmDelete: \"Chcete smazat záznam?\",\n keyDuplicationError: \"Tato hodnota by měla být jedinečná.\",\n addColumn: \"Přidat sloupec\",\n addRow: \"Přidat řádek\",\n removeRow: \"Odstranit\",\n addPanel: \"Přidat nový\",\n removePanel: \"Odstranit\",\n choices_Item: \"položka\",\n matrix_column: \"Sloupec\",\n matrix_row: \"Řádek\",\n savingData: \"Výsledky se ukládají na server ...\",\n savingDataError: \"Došlo k chybě a výsledky jsme nemohli uložit.\",\n savingDataSuccess: \"Výsledky byly úspěšně uloženy!\",\n saveAgainButton: \"Zkus to znovu\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Na této stránce jste utratili celkem {0} a celkem {1}.\",\n timerSpentPage: \"Na této stránce jste utratili {0}.\",\n timerSpentSurvey: \"Celkem jste utratili {0}.\",\n timerLimitAll:\n \"Na této stránce jste utratili {0} z {1} a celkem {2} z {3}.\",\n timerLimitPage: \"Na této stránce jste strávili {0} z {1}.\",\n timerLimitSurvey: \"Celkově jste utratili {0} z {1}.\",\n cleanCaption: \"Čistý\",\n clearCaption: \"Průhledná\",\n chooseFileCaption: \"Vyberte soubor\",\n removeFileCaption: \"Odeberte tento soubor\",\n booleanCheckedLabel: \"Ano\",\n booleanUncheckedLabel: \"Ne\",\n confirmRemoveFile: \"Opravdu chcete odebrat tento soubor: {0}?\",\n confirmRemoveAllFiles: \"Opravdu chcete odstranit všechny soubory?\",\n questionTitlePatternText: \"Název otázky\",\n};\n\nsurveyLocalization.locales[\"cs\"] = czechSurveyStrings;\nsurveyLocalization.localeNames[\"cs\"] = \"čeština\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var danishSurveyStrings = {\n pagePrevText: \"Tilbage\",\n pageNextText: \"Videre\",\n completeText: \"Færdig\",\n previewText: \"Forpremiere\",\n editText: \"Redigér\",\n startSurveyText: \"Start\",\n otherItemText: \"Valgfrit svar...\",\n noneItemText: \"Ingen\",\n selectAllItemText: \"Vælg alle\",\n progressText: \"Side {0} af {1}\",\n panelDynamicProgressText: \"Optag {0} af {1}\",\n questionsProgressText: \"Besvarede {0} / {1} spørgsmål\",\n emptySurvey: \"Der er ingen synlige spørgsmål.\",\n completingSurvey: \"Mange tak for din besvarelse!\",\n completingSurveyBefore:\n \"Vores data viser at du allerede har gennemført dette spørgeskema.\",\n loadingSurvey: \"Spørgeskemaet hentes fra serveren...\",\n optionsCaption: \"Vælg...\",\n value: \"værdi\",\n requiredError: \"Besvar venligst spørgsmålet.\",\n requiredErrorInPanel: \"Besvar venligst mindst ét spørgsmål.\",\n requiredInAllRowsError: \"Besvar venligst spørgsmål i alle rækker.\",\n numericError: \"Angiv et tal.\",\n textMinLength: \"Angiv mindst {0} tegn.\",\n textMaxLength: \"Please enter less than {0} characters.\",\n textMinMaxLength: \"Angiv mere end {0} og mindre end {1} tegn.\",\n minRowCountError: \"Udfyld mindst {0} rækker.\",\n minSelectError: \"Vælg venligst mindst {0} svarmulighed(er).\",\n maxSelectError: \"Vælg venligst færre {0} svarmuligheder(er).\",\n numericMinMax:\n \"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}\",\n numericMin: \"'{0}' skal være lig med eller større end {1}\",\n numericMax: \"'{0}' skal være lig med eller mindre end {1}\",\n invalidEmail: \"Angiv venligst en gyldig e-mail adresse.\",\n invalidExpression: \"Udtrykket: {0} skal returnere 'true'.\",\n urlRequestError: \"Forespørgslen returnerede fejlen '{0}'. {1}\",\n urlGetChoicesError:\n \"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert\",\n exceedMaxSize: \"Filstørrelsen må ikke overstige {0}.\",\n otherRequiredError: \"Angiv en værdi for dit valgfrie svar.\",\n uploadingFile:\n \"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.\",\n loadingFile: \"Indlæser...\",\n chooseFile: \"Vælg fil(er)...\",\n noFileChosen: \"Ingen fil er valgt\",\n confirmDelete: \"Vil du fjerne den?\",\n keyDuplicationError: \"Denne værdi skal være unik.\",\n addColumn: \"Tilføj kolonne\",\n addRow: \"Tilføj række\",\n removeRow: \"Fjern\",\n addPanel: \"Tilføj ny\",\n removePanel: \"Fjern\",\n choices_Item: \"valg\",\n matrix_column: \"Kolonne\",\n matrix_row: \"Række\",\n savingData: \"Resultaterne bliver gemt på serveren...\",\n savingDataError: \"Der opstod en fejl og vi kunne ikke gemme resultatet.\",\n savingDataSuccess: \"Resultatet blev gemt!\",\n saveAgainButton: \"Prøv igen\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Du har brugt {0} på denne side og {1} i alt.\",\n timerSpentPage: \"Du har brugt {0} på denne side.\",\n timerSpentSurvey: \"Du har brugt {0} i alt.\",\n timerLimitAll:\n \"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.\",\n timerLimitPage: \"Du har brugt {0} af {1} på denne side.\",\n timerLimitSurvey: \"Du har brugt {0} af {1} i alt.\",\n cleanCaption: \"Rens\",\n clearCaption: \"Fjern\",\n chooseFileCaption: \"Vælg fil\",\n removeFileCaption: \"Fjern denne fil\",\n booleanCheckedLabel: \"Ja\",\n booleanUncheckedLabel: \"Ingen\",\n confirmRemoveFile: \"Er du sikker på, at du vil fjerne denne fil: {0}?\",\n confirmRemoveAllFiles: \"Er du sikker på, at du vil fjerne alle filer?\",\n questionTitlePatternText: \"Spørgsmåls titel\",\n};\n\nsurveyLocalization.locales[\"da\"] = danishSurveyStrings;\nsurveyLocalization.localeNames[\"da\"] = \"dansk\";\n","//Created on behalf https://github.com/Frank13\n//Modified on behalf Roeland Verbakel\nimport { surveyLocalization } from \"../surveyStrings\";\n\nexport var dutchSurveyStrings = {\n pagePrevText: \"Vorige\",\n pageNextText: \"Volgende\",\n completeText: \"Verzenden\",\n previewText: \"Voorbeeld\",\n editText: \"Bewerk\",\n startSurveyText: \"Begin met\",\n otherItemText: \"Anders, nl.\",\n noneItemText: \"Geen\",\n selectAllItemText: \"Selecteer Alles\",\n progressText: \"Pagina {0} van {1}\",\n panelDynamicProgressText: \"Record {0} of {1}\",\n questionsProgressText: \"Geantwoord {0}/{1} vragen\",\n emptySurvey: \"Er is geen zichtbare pagina of vraag in deze vragenlijst\",\n completingSurvey: \"Bedankt voor het invullen van de vragenlijst\",\n completingSurveyBefore:\n \"Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.\",\n loadingSurvey: \"De vragenlijst is aan het laden...\",\n optionsCaption: \"Kies...\",\n value: \"waarde\",\n requiredError: \"Dit is een vereiste vraag\",\n requiredErrorInPanel: \"Gelieve ten minste een vraag te beantwoorden.\",\n requiredInAllRowsError: \"Deze vraag vereist één antwoord per rij\",\n numericError: \"Het antwoord moet een getal zijn\",\n textMinLength: \"Vul minstens {0} karakters in\",\n textMaxLength: \"Gelieve minder dan {0} karakters in te vullen.\",\n textMinMaxLength: \"Gelieve meer dan {0} en minder dan {1} karakters in te vullen.\",\n minRowCountError: \"Gelieve ten minste {0} rijen in te vullen.\",\n minSelectError: \"Selecteer minimum {0} antwoorden\",\n maxSelectError: \"Selecteer niet meer dan {0} antwoorden\",\n numericMinMax:\n \"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}\",\n numericMin: \"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}\",\n numericMax: \"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}\",\n invalidEmail: \"Vul een geldig e-mailadres in\",\n invalidExpression: \"De uitdrukking: {0} moet 'waar' teruggeven.\",\n urlRequestError: \"De vraag keerde een fout terug '{0}'. {1}\",\n urlGetChoicesError:\n \"De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct\",\n exceedMaxSize: \"De grootte van het bestand mag niet groter zijn dan {0}\",\n otherRequiredError: \"Vul het veld 'Anders, nl.' in\",\n uploadingFile:\n \"Uw bestand wordt opgeladen. Gelieve enkele seconden te wachten en opnieuw te proberen.\",\n loadingFile: \"Opladen...\",\n chooseFile: \"Kies uw bestand(en)...\",\n noFileChosen: \"Geen bestand gekozen\",\n confirmDelete: \"Wil je deze gegevens verwijderen?\",\n keyDuplicationError: \"Deze waarde moet uniek zijn.\",\n addColumn: \"Voeg kolom toe\",\n addRow: \"Voeg rij toe\",\n removeRow: \"Verwijder\",\n addPanel: \"Nieuwe toevoegen\",\n removePanel: \"Verwijder\",\n choices_Item: \"onderwerp\",\n matrix_column: \"Kolom\",\n matrix_row: \"Rij\",\n savingData: \"De resultaten worden bewaard op de server...\",\n savingDataError: \"Er was een probleem en we konden de resultaten niet bewaren.\",\n savingDataSuccess: \"De resultaten werden succesvol bewaard!\",\n saveAgainButton: \"Probeer opnieuw\",\n timerMin: \"minimum\",\n timerSec: \"sec\",\n timerSpentAll: \"U heeft {0} gespendeerd op deze pagina en {1} in totaal.\",\n timerSpentPage: \"U heeft {0} op deze pagina gespendeerd.\",\n timerSpentSurvey: \"U heeft in totaal {0} gespendeerd.\",\n timerLimitAll:\n \"U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.\",\n timerLimitPage: \"U heeft {0} van {1} gespendeerd op deze pagina.\",\n timerLimitSurvey: \"U heeft {0} van {1} in het totaal.\",\n cleanCaption: \"Kuis op\",\n clearCaption: \"Kuis op\",\n chooseFileCaption: \"Gekozen bestand\",\n removeFileCaption: \"Verwijder deze file\",\n booleanCheckedLabel: \"Ja\",\n booleanUncheckedLabel: \"Neen\",\n confirmRemoveFile: \"Bent u zeker dat u deze file wilt verwijderen: {0}?\",\n confirmRemoveAllFiles: \"Bent u zeker dat u al deze files wilt verwijderen?\",\n questionTitlePatternText: \"Titel van de vraag\",\n};\n\nsurveyLocalization.locales[\"nl\"] = dutchSurveyStrings;\nsurveyLocalization.localeNames[\"nl\"] = \"nederlands\";\n","//Uncomment this line on creating a translation file\n//import { surveyLocalization } from \"../surveyStrings\";\n\nexport var englishStrings = {\n pagePrevText: \"Previous\",\n pageNextText: \"Next\",\n completeText: \"Complete\",\n previewText: \"Preview\",\n editText: \"Edit\",\n startSurveyText: \"Start\",\n otherItemText: \"Other (describe)\",\n noneItemText: \"None\",\n selectAllItemText: \"Select All\",\n progressText: \"Page {0} of {1}\",\n panelDynamicProgressText: \"Record {0} of {1}\",\n questionsProgressText: \"Answered {0}/{1} questions\",\n emptySurvey: \"There is no visible page or question in the survey.\",\n completingSurvey: \"Thank you for completing the survey!\",\n completingSurveyBefore:\n \"Our records show that you have already completed this survey.\",\n loadingSurvey: \"Loading Survey...\",\n optionsCaption: \"Choose...\",\n value: \"value\",\n requiredError: \"Please answer the question.\",\n requiredErrorInPanel: \"Please answer at least one question.\",\n requiredInAllRowsError: \"Please answer questions in all rows.\",\n numericError: \"The value should be numeric.\",\n minError: \"The value should not be less than {0}\",\n maxError: \"The value should not be greater than {0}\",\n textMinLength: \"Please enter at least {0} character(s).\",\n textMaxLength: \"Please enter no more than {0} character(s).\",\n textMinMaxLength:\n \"Please enter at least {0} and no more than {1} characters.\",\n minRowCountError: \"Please fill in at least {0} row(s).\",\n minSelectError: \"Please select at least {0} variant(s).\",\n maxSelectError: \"Please select no more than {0} variant(s).\",\n numericMinMax: \"The '{0}' should be at least {1} and at most {2}\",\n numericMin: \"The '{0}' should be at least {1}\",\n numericMax: \"The '{0}' should be at most {1}\",\n invalidEmail: \"Please enter a valid e-mail address.\",\n invalidExpression: \"The expression: {0} should return 'true'.\",\n urlRequestError: \"The request returned error '{0}'. {1}\",\n urlGetChoicesError:\n \"The request returned empty data or the 'path' property is incorrect\",\n exceedMaxSize: \"The file size should not exceed {0}.\",\n otherRequiredError: \"Please enter the other value.\",\n uploadingFile:\n \"Your file is uploading. Please wait several seconds and try again.\",\n loadingFile: \"Loading...\",\n chooseFile: \"Choose file(s)...\",\n noFileChosen: \"No file chosen\",\n confirmDelete: \"Do you want to delete the record?\",\n keyDuplicationError: \"This value should be unique.\",\n addColumn: \"Add column\",\n addRow: \"Add row\",\n removeRow: \"Remove\",\n emptyRowsText: \"There are no rows.\",\n addPanel: \"Add new\",\n removePanel: \"Remove\",\n choices_Item: \"item\",\n matrix_column: \"Column\",\n matrix_row: \"Row\",\n multipletext_itemname: \"text\",\n savingData: \"The results are being saved on the server...\",\n savingDataError: \"An error occurred and we could not save the results.\",\n savingDataSuccess: \"The results were saved successfully!\",\n saveAgainButton: \"Try again\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"You have spent {0} on this page and {1} in total.\",\n timerSpentPage: \"You have spent {0} on this page.\",\n timerSpentSurvey: \"You have spent {0} in total.\",\n timerLimitAll:\n \"You have spent {0} of {1} on this page and {2} of {3} in total.\",\n timerLimitPage: \"You have spent {0} of {1} on this page.\",\n timerLimitSurvey: \"You have spent {0} of {1} in total.\",\n cleanCaption: \"Clean\",\n clearCaption: \"Clear\",\n chooseFileCaption: \"Choose file\",\n removeFileCaption: \"Remove this file\",\n booleanCheckedLabel: \"Yes\",\n booleanUncheckedLabel: \"No\",\n confirmRemoveFile: \"Are you sure that you want to remove this file: {0}?\",\n confirmRemoveAllFiles: \"Are you sure that you want to remove all files?\",\n questionTitlePatternText: \"Question Title\",\n modalCancelButtonText: \"Cancel\",\n modalApplyButtonText: \"Apply\",\n};\n\n//Uncomment these two lines on creating a translation file. You should replace \"en\" and enStrings with your locale (\"fr\", \"de\" and so on) and your variable.\n//surveyLocalization.locales[\"en\"] = englishStrings;\n//surveyLocalization.localeNames[\"en\"] = \"English\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var estonianSurveyStrings = {\n pagePrevText: \"Tagasi\",\n pageNextText: \"Edasi\",\n completeText: \"Lõpeta\",\n previewText: \"Eelvaade\",\n editText: \"Muuda\",\n startSurveyText: \"Alusta\",\n otherItemText: \"Muu (täpsusta)\",\n noneItemText: \"Mitte midagi\",\n selectAllItemText: \"Vali kõik\",\n progressText: \"Lehekülg {0}/{1}\",\n panelDynamicProgressText: \"Kirje {0}/{1}\",\n questionsProgressText: \"Vastatud {0} küsimust {1}-st\",\n emptySurvey: \"Selles uuringus ei ole ühtki nähtavat lehekülge või küsimust.\",\n completingSurvey: \"Aitäh, et vastasid ankeedile!\",\n completingSurveyBefore:\n \"Meie andmetel oled sa sellele ankeedile juba vastanud.\",\n loadingSurvey: \"Laen ankeeti...\",\n optionsCaption: \"Vali...\",\n value: \"väärtus\",\n requiredError: \"Palun vasta küsimusele.\",\n requiredErrorInPanel: \"Palun vasta vähemalt ühele küsimusele.\",\n requiredInAllRowsError: \"Palun anna vastus igal real.\",\n numericError: \"See peaks olema numbriline väärtus.\",\n textMinLength: \"Palun sisesta vähemalt {0} tähemärki.\",\n textMaxLength: \"Palun ära sisesta rohkem kui {0} tähemärki.\",\n textMinMaxLength: \"Sisesta palun {0} - {1} tähemärki.\",\n minRowCountError: \"Sisesta plaun vähemalt {0} rida.\",\n minSelectError: \"Palun vali vähemalt {0} varianti.\",\n maxSelectError: \"Palun vali kõige rohkem {0} varianti.\",\n numericMinMax:\n \"'{0}' peaks olema võrdne või suurem kui {1} ja võrdne või väiksem kui {2}\",\n numericMin: \"'{0}' peaks olema võrdne või suurem kui {1}\",\n numericMax: \"'{0}' peaks olema võrnde või väiksem kui {1}\",\n invalidEmail: \"Sisesta palun korrektne e-posti aadress.\",\n invalidExpression: \"Avaldis: {0} peaks tagastama tõese.\",\n urlRequestError: \"Taotlus tagastas vea „{0}”. {1}\",\n urlGetChoicesError:\n \"Taotlus tagastas tühjad andmed või atribuut 'path' on vale\",\n exceedMaxSize: \"Faili suurus ei tohi ületada {0}.\",\n otherRequiredError: \"Sisesta palun muu vastus.\",\n uploadingFile:\n \"Sinu fail laeb üles. Palun oota mõned sekundid ning proovi seejärel uuesti.\",\n loadingFile: \"Laen...\",\n chooseFile: \"Vali fail(id)...\",\n noFileChosen: \"Faili pole valitud\",\n confirmDelete: \"Kas tahad kirje kustutada?\",\n keyDuplicationError: \"See väärtus peab olema unikaalne.\",\n addColumn: \"Lisa veerg\",\n addRow: \"Lisa rida\",\n removeRow: \"Eemalda\",\n addPanel: \"Lisa uus\",\n removePanel: \"Eemalda\",\n choices_Item: \"üksus\",\n matrix_column: \"Veerg\",\n matrix_row: \"Rida\",\n savingData: \"Salvestan andmed serveris...\",\n savingDataError: \"Tekkis viga ning me ei saanud vastuseid salvestada.\",\n savingDataSuccess: \"Vastuste salvestamine õnnestus!\",\n saveAgainButton: \"Proovi uuesti\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Oled veetnud {0} sellel lehel ning kokku {1}.\",\n timerSpentPage: \"Oled veetnud {0} sellel lehel.\",\n timerSpentSurvey: \"Oled veetnud {0} kokku.\",\n timerLimitAll:\n \"Oled kulutanud {0} võimalikust {1} sellel lehel ning {2} võimalikust {3} kokku.\",\n timerLimitPage: \"Oled kulutanud {0} võimalikust {1} sellel lehel.\",\n timerLimitSurvey: \"Oled kulutanud {0} võimalikust {1} koguajast.\",\n cleanCaption: \"Puhasta\",\n clearCaption: \"Puhasta\",\n chooseFileCaption: \"Vali fail\",\n removeFileCaption: \"Eemalda see fail\",\n booleanCheckedLabel: \"Jah\",\n booleanUncheckedLabel: \"Ei\",\n confirmRemoveFile: \"Oled sa kindel, et soovid selle faili eemaldada: {0}?\",\n confirmRemoveAllFiles: \"Oled sa kindel, et soovid eemaldada kõik failid?\",\n questionTitlePatternText: \"Küsimuse pealkiri\",\n};\n\nsurveyLocalization.locales[\"et\"] = estonianSurveyStrings;\nsurveyLocalization.localeNames[\"et\"] = \"eesti keel\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var finnishSurveyStrings = {\n pagePrevText: \"Edellinen\",\n pageNextText: \"Seuraava\",\n completeText: \"Valmis\",\n previewText: \"Esikatselu\",\n editText: \"Muokkaa\",\n startSurveyText: \"Aloita\",\n otherItemText: \"Muu (tarkenna)\",\n noneItemText: \"Ei mitään\",\n selectAllItemText: \"Valitse kaikki\",\n progressText: \"Sivu {0} / {1}\",\n panelDynamicProgressText: \"Osio {0} / {1}\",\n questionsProgressText: \"Olet vastannut {0} / {1} kysymykseen.\",\n emptySurvey:\n \"Tässä kyselyssä ei ole yhtään näkyvillä olevaa sivua tai kysymystä.\",\n completingSurvey: \"Kiitos kyselyyn vastaamisesta!\",\n completingSurveyBefore:\n \"Tietojemme mukaan olet jo suorittanut tämän kyselyn.\",\n loadingSurvey: \"Kyselyä ladataan palvelimelta...\",\n optionsCaption: \"Valitse...\",\n value: \"arvo\",\n requiredError: \"Vastaa kysymykseen, kiitos.\",\n requiredErrorInPanel: \"Vastaa ainakin yhteen kysymykseen.\",\n requiredInAllRowsError: \"Vastaa kysymyksiin kaikilla riveillä.\",\n numericError: \"Arvon tulee olla numeerinen.\",\n textMinLength: \"Syötä vähintään {0} merkkiä.\",\n textMaxLength: \"Älä syötä yli {0} merkkiä.\",\n textMinMaxLength: \"Syötä vähintään {0} ja enintään {1} merkkiä.\",\n minRowCountError: \"Täytä vähintään {0} riviä.\",\n minSelectError: \"Valitse vähintään {0} vaihtoehtoa.\",\n maxSelectError: \"Valitse enintään {0} vaihtoehtoa.\",\n numericMinMax:\n \"Luvun '{0}' tulee olla vähintään {1} ja korkeintaan {2}.\",\n numericMin: \"Luvun '{0}' tulee olla vähintään {1}.\",\n numericMax: \"Luvun '{0}' tulee olla korkeintaan {1}.\",\n invalidEmail: \"Syötä validi sähköpostiosoite.\",\n invalidExpression: \"Lausekkeen: {0} pitäisi palauttaa 'true'.\",\n urlRequestError: \"Pyyntö palautti virheen {0}. {1}\",\n urlGetChoicesError:\n \"Pyyntö palautti tyhjän tiedoston tai 'path'-asetus on väärä\",\n exceedMaxSize: \"Tiedoston koko ei saa olla suurempi kuin {0}.\",\n otherRequiredError: \"Tarkenna vastaustasi tekstikenttään.\",\n uploadingFile:\n \"Tiedostoa lähetetään. Odota muutama sekunti ja yritä uudelleen.\",\n loadingFile: \"Ladataan...\",\n chooseFile: \"Valitse tiedosto(t)...\",\n noFileChosen: \"Ei tiedostoa valittuna\",\n confirmDelete: \"Haluatko poistaa osion?\",\n keyDuplicationError: \"Tämä arvo on jo käytössä. Syötä toinen arvo.\",\n addColumn: \"Lisää sarake\",\n addRow: \"Lisää rivi\",\n removeRow: \"Poista\",\n emptyRowsText: \"Ei rivejä\",\n addPanel: \"Lisää uusi\",\n removePanel: \"Poista\",\n choices_Item: \"kohde\",\n matrix_column: \"Sarake\",\n matrix_row: \"Rivi\",\n savingData: \"Tietoja tallennetaan palvelimelle...\",\n savingDataError: \"Tapahtui virhe, emmekä voineet tallentaa kyselyn tietoja.\",\n savingDataSuccess: \"Tiedot tallennettiin onnistuneesti!\",\n saveAgainButton: \"Yritä uudelleen\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Olet käyttänyt {0} tällä sivulla ja yhteensä {1}.\",\n timerSpentPage: \"Olet käyttänyt {0} tällä sivulla.\",\n timerSpentSurvey: \"Olet käyttänyt yhteensä {0}.\",\n timerLimitAll:\n \"Olet käyttänyt tällä sivulla {0} / {1} ja yhteensä {2} / {3}.\",\n timerLimitPage: \"Olet käyttänyt {0} / {1} tällä sivulla.\",\n timerLimitSurvey: \"Olet käyttänyt yhteensä {0} / {1}.\",\n cleanCaption: \"Pyyhi\",\n clearCaption: \"Tyhjennä\",\n chooseFileCaption: \"Valitse tiedosto\",\n removeFileCaption: \"Poista tämä tiedosto\",\n booleanCheckedLabel: \"Kyllä\",\n booleanUncheckedLabel: \"Ei\",\n confirmRemoveFile: \"Haluatko varmasti poistaa tämän tiedoston: {0}?\",\n confirmRemoveAllFiles: \"Haluatko varmasti poistaa kaikki tiedostot?\",\n questionTitlePatternText: \"Kysymyksen otsikko\",\n modalCancelButtonText: \"Peruuta\",\n modalApplyButtonText: \"Käytä\",\n};\n\nsurveyLocalization.locales[\"fi\"] = finnishSurveyStrings;\nsurveyLocalization.localeNames[\"fi\"] = \"suomi\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var frenchSurveyStrings = {\n pagePrevText: \"Précédent\",\n pageNextText: \"Suivant\",\n completeText: \"Terminer\",\n previewText: \"Aperçu\",\n editText: \"Modifier\",\n startSurveyText: \"Commencer\",\n otherItemText: \"Autre (préciser)\",\n noneItemText: \"Aucun\",\n selectAllItemText: \"Tout sélectionner\",\n progressText: \"Page {0} sur {1}\",\n panelDynamicProgressText: \"Enregistrement {0} sur {1}\",\n questionsProgressText: \"{0}/{1} question(s) répondue(s)\",\n emptySurvey: \"Il n'y a ni page visible ni question visible dans ce questionnaire\",\n completingSurvey: \"Merci d'avoir répondu au questionnaire !\",\n completingSurveyBefore: \"Nos données indiquent que vous avez déjà rempli ce questionnaire.\",\n loadingSurvey: \"Le questionnaire est en cours de chargement...\",\n optionsCaption: \"Choisissez...\",\n value: \"valeur\",\n requiredError: \"La réponse à cette question est obligatoire.\",\n requiredErrorInPanel: \"Merci de répondre au moins à une question.\",\n requiredInAllRowsError: \"Toutes les lignes sont obligatoires\",\n numericError: \"La réponse doit être un nombre.\",\n textMinLength: \"Merci de saisir au moins {0} caractères.\",\n textMaxLength: \"Merci de saisir moins de {0} caractères.\",\n textMinMaxLength: \"Merci de saisir entre {0} et {1} caractères.\",\n minRowCountError: \"Merci de compléter au moins {0} lignes.\",\n minSelectError: \"Merci de sélectionner au minimum {0} réponses.\",\n maxSelectError: \"Merci de sélectionner au maximum {0} réponses.\",\n numericMinMax: \"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}\",\n numericMin: \"Votre réponse '{0}' doit être supérieure ou égale à {1}\",\n numericMax: \"Votre réponse '{0}' doit être inférieure ou égale à {1}\",\n invalidEmail: \"Merci d'entrer une adresse mail valide.\",\n invalidExpression: \"L'expression: {0} doit retourner 'true'.\",\n urlRequestError: \"La requête a renvoyé une erreur '{0}'. {1}\",\n urlGetChoicesError: \"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte\",\n exceedMaxSize: \"La taille du fichier ne doit pas excéder {0}.\",\n otherRequiredError: \"Merci de préciser le champ 'Autre'.\",\n uploadingFile: \"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.\",\n loadingFile: \"Chargement...\",\n chooseFile: \"Ajouter des fichiers...\",\n noFileChosen: \"Aucun fichier ajouté\",\n confirmDelete: \"Voulez-vous supprimer cet enregistrement ?\",\n keyDuplicationError: \"Cette valeur doit être unique.\",\n addColumn: \"Ajouter une colonne\",\n addRow: \"Ajouter une ligne\",\n removeRow: \"Supprimer\",\n addPanel: \"Ajouter\",\n removePanel: \"Supprimer\",\n choices_Item: \"item\",\n matrix_column: \"Colonne\",\n matrix_row: \"Ligne\",\n savingData: \"Les résultats sont en cours de sauvegarde sur le serveur...\",\n savingDataError: \"Une erreur est survenue et a empêché la sauvegarde des résultats.\",\n savingDataSuccess: \"Les résultats ont bien été enregistrés !\",\n saveAgainButton: \"Réessayer\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Vous avez passé {0} sur cette page et {1} au total.\",\n timerSpentPage: \"Vous avez passé {0} sur cette page.\",\n timerSpentSurvey: \"Vous avez passé {0} au total.\",\n timerLimitAll: \"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.\",\n timerLimitPage: \"Vous avez passé {0} sur {1} sur cette page.\",\n timerLimitSurvey: \"Vous avez passé {0} sur {1} au total.\",\n cleanCaption: \"Nettoyer\",\n clearCaption: \"Vider\",\n chooseFileCaption: \"Ajouter un fichier\",\n removeFileCaption: \"Enlever ce fichier\",\n booleanCheckedLabel: \"Oui\",\n booleanUncheckedLabel: \"Non\",\n confirmRemoveFile: \"Êtes-vous certains de vouloir supprimer ce fichier : {0}?\",\n confirmRemoveAllFiles: \"Êtes-vous certains de vouloir supprimer tous les fichiers?\",\n questionTitlePatternText: \"Titre de la question\",\n};\n\nsurveyLocalization.locales[\"fr\"] = frenchSurveyStrings;\nsurveyLocalization.localeNames[\"fr\"] = \"français\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var georgianSurveyStrings = {\n pagePrevText: \"უკან\",\n pageNextText: \"შემდეგ\",\n completeText: \"დასრულება\",\n progressText: \"გვერდი {0} / {1}\",\n emptySurvey: \"არცერთი კითხვა არ არის.\",\n completingSurvey: \"გმადლობთ კითხვარის შევსებისთვის!\",\n loadingSurvey: \"ჩატვირთვა სერვერიდან...\",\n otherItemText: \"სხვა (გთხოვთ მიუთითეთ)\",\n optionsCaption: \"არჩევა...\",\n requiredError: \"გთხოვთ უპასუხეთ კითხვას.\",\n numericError: \"პასუხი უნდა იყოს რიცხვი.\",\n textMinLength: \"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.\",\n minSelectError: \"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.\",\n maxSelectError: \"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.\",\n numericMinMax:\n \"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}\",\n numericMin: \"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}\",\n numericMax: \"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}\",\n invalidEmail: \"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.\",\n otherRequiredEror: \"გთხოვთ შეავსეთ ველი 'სხვა'\"\n};\n\nsurveyLocalization.locales[\"ka\"] = georgianSurveyStrings;\nsurveyLocalization.localeNames[\"ka\"] = \"ქართული\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var germanSurveyStrings = {\n pagePrevText: \"Zurück\",\n pageNextText: \"Weiter\",\n completeText: \"Abschließen\",\n previewText: \"Vorschau\",\n editText: \"Bearbeiten\",\n startSurveyText: \"Start\",\n otherItemText: \"Sonstiges (Bitte angeben)\",\n noneItemText: \"Nichts trifft zu\",\n selectAllItemText: \"Alles auswählen\",\n progressText: \"Seite {0} von {1}\",\n panelDynamicProgressText: \"Eintrag {0} von {1}\",\n questionsProgressText: \"{0}/{1} Fragen beantwortet\",\n emptySurvey: \"Es sind keine Fragen vorhanden.\",\n completingSurvey: \"Vielen Dank, dass Sie die Umfrage abgeschlossen haben!\",\n completingSurveyBefore:\n \"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.\",\n loadingSurvey: \"Umfrage wird geladen...\",\n optionsCaption: \"Bitte auswählen...\",\n value: \"Wert\",\n requiredError: \"Bitte beantworten Sie diese Frage.\",\n requiredErrorInPanel: \"Bitte beantworten Sie mindestens eine Frage.\",\n requiredInAllRowsError: \"Bitte beantworten Sie alle Fragen.\",\n numericError: \"Der Wert muss eine Zahl sein.\",\n textMinLength: \"Bitte geben Sie mindestens {0} Zeichen ein.\",\n textMaxLength: \"Bitte geben Sie nicht mehr als {0} Zeichen ein.\",\n textMinMaxLength: \"Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.\",\n minRowCountError: \"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.\",\n minSelectError: \"Bitte wählen Sie mindestens {0} Antwort(en) aus.\",\n maxSelectError: \"Bitte wählen Sie nicht mehr als {0} Antwort(en) aus.\",\n numericMinMax:\n \"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein\",\n numericMin: \"'{0}' muss größer oder gleich {1} sein\",\n numericMax: \"'{0}' muss kleiner oder gleich {1} sein\",\n invalidEmail: \"Bitte geben Sie eine gültige E-Mail-Adresse ein.\",\n invalidExpression: \"Der Ausdruck: {0} muss den Wert 'wahr' zurückgeben.\",\n urlRequestError: \"Ein Netzwerkdienst hat folgenden Fehler zurückgegeben '{0}'. {1}\",\n urlGetChoicesError:\n \"Eine Netzwerkdienst hat ungültige Daten zurückgegeben\",\n exceedMaxSize: \"Die Datei darf nicht größer als {0} sein.\",\n otherRequiredError: \"Bitte geben Sie einen Wert an.\",\n uploadingFile:\n \"Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.\",\n loadingFile: \"Wird hochgeladen...\",\n chooseFile: \"Datei(en) auswählen...\",\n noFileChosen: \"Keine Datei ausgewählt\",\n confirmDelete: \"Wollen Sie den Eintrag löschen?\",\n keyDuplicationError: \"Dieser Wert muss einmalig sein.\",\n addColumn: \"Spalte hinzufügen\",\n addRow: \"Zeile hinzufügen\",\n removeRow: \"Entfernen\",\n addPanel: \"Neu hinzufügen\",\n removePanel: \"Entfernen\",\n choices_Item: \"Element\",\n matrix_column: \"Spalte\",\n matrix_row: \"Zeile\",\n savingData: \"Die Ergebnisse werden auf dem Server gespeichert...\",\n savingDataError: \"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.\",\n savingDataSuccess: \"Die Ergebnisse wurden gespeichert!\",\n saveAgainButton: \"Erneut absenden\",\n timerMin: \"Min.\",\n timerSec: \"Sek.\",\n timerSpentAll: \"Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.\",\n timerSpentPage: \"Sie waren {0} auf dieser Seite.\",\n timerSpentSurvey: \"Sie haben insgesamt {0} gebraucht.\",\n timerLimitAll:\n \"Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.\",\n timerLimitPage: \"Sie waren {0} von {1} auf dieser Seite.\",\n timerLimitSurvey: \"Sie haben insgesamt {0} von {1} gebraucht.\",\n cleanCaption: \"Alles löschen\",\n clearCaption: \"Auswahl entfernen\",\n chooseFileCaption: \"Datei auswählen\",\n removeFileCaption: \"Datei löschen\",\n booleanCheckedLabel: \"Ja\",\n booleanUncheckedLabel: \"Nein\",\n confirmRemoveFile: \"Sind Sie sicher, dass Sie diese Datei löschen möchten: {0}?\",\n confirmRemoveAllFiles: \"Sind Sie sicher, dass Sie alle Dateien löschen möchten?\",\n questionTitlePatternText: \"Fragentitel\",\n};\n\nsurveyLocalization.locales[\"de\"] = germanSurveyStrings;\nsurveyLocalization.localeNames[\"de\"] = \"deutsch\";\n","//Created by https://github.com/agelospanagiotakis\nimport { surveyLocalization } from \"../surveyStrings\";\n\nexport var greekSurveyStrings = {\n pagePrevText: \"Προηγούμενο\",\n pageNextText: \"Επόμενο\",\n completeText: \"Ολοκλήρωση\",\n previewText: \"Προεπισκόπηση\",\n editText: \"Επεξεργασία\",\n startSurveyText: \"Αρχή\",\n otherItemText: \"Άλλο (παρακαλώ διευκρινίστε)\",\n noneItemText: \"Κανένας\",\n selectAllItemText: \"Επιλογή όλων\",\n progressText: \"Σελίδα {0} από {1}\",\n panelDynamicProgressText: \"Εγγραφή {0} από {1}\",\n questionsProgressText: \"Απαντήθηκαν {0} / {1} ερωτήσεις\",\n emptySurvey:\n \"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.\",\n completingSurvey:\n \"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!\",\n completingSurveyBefore:\n \"Τα αρχεία μας δείχνουν ότι έχετε ήδη ολοκληρώσει αυτήν την έρευνα.\",\n loadingSurvey: \"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...\",\n optionsCaption: \"Επιλέξτε...\",\n value: \"αξία\",\n requiredError: \"Παρακαλώ απαντήστε στην ερώτηση.\",\n requiredErrorInPanel: \"Απαντήστε σε τουλάχιστον μία ερώτηση.\",\n requiredInAllRowsError:\n \"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.\",\n numericError: \"Η τιμή πρέπει να είναι αριθμητική.\",\n textMinLength: \"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.\",\n textMaxLength: \"Εισαγάγετε λιγότερους από {0} χαρακτήρες.\",\n textMinMaxLength: \"Εισαγάγετε περισσότερους από {0} και λιγότερους από {1} χαρακτήρες.\",\n minRowCountError: \"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.\",\n minSelectError: \"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.\",\n maxSelectError: \"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.\",\n numericMinMax:\n \"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}\",\n numericMin: \"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}\",\n numericMax: \"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}\",\n invalidEmail: \"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.\",\n invalidExpression: \"Η έκφραση: {0} θα πρέπει να επιστρέψει 'true'.\",\n urlRequestError: \"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}\",\n urlGetChoicesError:\n \"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη\",\n exceedMaxSize: \"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.\",\n otherRequiredError: \"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.\",\n uploadingFile:\n \"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.\",\n loadingFile: \"Φόρτωση...\",\n chooseFile: \"Επιλογή αρχείων ...\",\n noFileChosen: \"Δεν έχει επιλεγεί αρχείο\",\n confirmDelete: \"Θέλετε να διαγράψετε την εγγραφή;\",\n keyDuplicationError: \"Αυτή η τιμή πρέπει να είναι μοναδική.\",\n addColumn: \"Προσθήκη στήλης\",\n addRow: \"Προσθήκη γραμμής\",\n removeRow: \"Αφαίρεση\",\n addPanel: \"Προσθεσε νεο\",\n removePanel: \"Αφαιρώ\",\n choices_Item: \"είδος\",\n matrix_column: \"Στήλη\",\n matrix_row: \"Σειρά\",\n savingData: \"Τα αποτελέσματα αποθηκεύονται στον διακομιστή ...\",\n savingDataError: \"Παρουσιάστηκε σφάλμα και δεν ήταν δυνατή η αποθήκευση των αποτελεσμάτων.\",\n savingDataSuccess: \"Τα αποτελέσματα αποθηκεύτηκαν με επιτυχία!\",\n saveAgainButton: \"Προσπάθησε ξανά\",\n timerMin: \"ελάχ\",\n timerSec: \"δευτ\",\n timerSpentAll: \"Έχετε δαπανήσει {0} σε αυτήν τη σελίδα και {1} συνολικά.\",\n timerSpentPage: \"Έχετε ξοδέψει {0} σε αυτήν τη σελίδα.\",\n timerSpentSurvey: \"Έχετε ξοδέψει συνολικά {0}.\",\n timerLimitAll:\n \"Έχετε δαπανήσει {0} από {1} σε αυτήν τη σελίδα και {2} από {3} συνολικά.\",\n timerLimitPage: \"Έχετε ξοδέψει {0} από {1} σε αυτήν τη σελίδα.\",\n timerLimitSurvey: \"Έχετε ξοδέψει {0} από {1} συνολικά.\",\n cleanCaption: \"ΚΑΘΑΡΗ\",\n clearCaption: \"Σαφή\",\n chooseFileCaption: \"Επιλέξτε το αρχείο\",\n removeFileCaption: \"Καταργήστε αυτό το αρχείο\",\n booleanCheckedLabel: \"Ναί\",\n booleanUncheckedLabel: \"Οχι\",\n confirmRemoveFile: \"Είστε βέβαιοι ότι θέλετε να καταργήσετε αυτό το αρχείο: {0};\",\n confirmRemoveAllFiles: \"Είστε βέβαιοι ότι θέλετε να καταργήσετε όλα τα αρχεία;\",\n questionTitlePatternText: \"Τίτλος ερώτησης\",\n};\n\nsurveyLocalization.locales[\"gr\"] = greekSurveyStrings;\nsurveyLocalization.localeNames[\"gr\"] = \"ελληνικά\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var hebrewSurveyStrings = {\n pagePrevText: \"אחורה\",\n pageNextText: \"קדימה\",\n completeText: \"סיום\",\n previewText: \"תצוגה מקדימה\",\n editText: \"לַעֲרוֹך\",\n startSurveyText: \"הַתחָלָה\",\n otherItemText: \"אחר (נא לתאר)\",\n noneItemText: \"אף אחד\",\n selectAllItemText: \"בחר הכל\",\n progressText: \"דף {1} מתוך {0}\",\n panelDynamicProgressText: \"הקלטה {0} מתוך {1}\",\n questionsProgressText: \"ענה על שאלות\",\n emptySurvey: \"אין שאלות\",\n completingSurvey: \"תודה על מילוי השאלון!\",\n completingSurveyBefore:\n \"הרשומות שלנו מראות שכבר סיימת את הסקר הזה.\",\n loadingSurvey: \"טעינה מהשרת...\",\n optionsCaption: \"בחר...\",\n value: \"ערך\",\n requiredError: \"אנא השב על השאלה\",\n requiredErrorInPanel: \"אנא ענה לפחות על שאלה אחת.\",\n requiredInAllRowsError: \"אנא ענה על שאלות בכל השורות.\",\n numericError: \"התשובה צריכה להיות מספר.\",\n textMinLength: \"הזן לפחות {0} תווים.\",\n textMaxLength: \"הזן פחות מ- {0} תווים.\",\n textMinMaxLength: \"הזן יותר מ- {0} ופחות מ- {1} תווים.\",\n minRowCountError: \"אנא מלא לפחות {0} שורות.\",\n minSelectError: \"בחר לפחות {0} אפשרויות.\",\n maxSelectError: \"בחר עד {0} אפשרויות.\",\n numericMinMax:\n \"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}\",\n numericMin: \"'{0}' חייב להיות שווה או גדול מ {1}\",\n numericMax: \"'{0}' חייב להיות שווה או קטן מ {1}\",\n invalidEmail: 'הזן כתובת דוא\"ל חוקית.',\n invalidExpression: \"הביטוי: {0} צריך להחזיר 'אמת'.\",\n urlRequestError: \"הבקשה החזירה את השגיאה '{0}'. {1}\",\n urlGetChoicesError:\n \"הבקשה החזירה נתונים ריקים או שהמאפיין 'נתיב' שגוי\",\n exceedMaxSize: \"גודל הקובץ לא יעלה על {0}.\",\n otherRequiredError: 'נא להזין נתונים בשדה \"אחר\"',\n uploadingFile:\n \"הקובץ שלך נטען. המתן מספר שניות ונסה שוב.\",\n loadingFile: \"טוען...\",\n chooseFile: \"לבחור קבצים...\",\n noFileChosen: \"לא נבחר קובץ\",\n confirmDelete: \"האם אתה רוצה למחוק את הרשומה?\",\n keyDuplicationError: \"ערך זה צריך להיות ייחודי.\",\n addColumn: \"הוסף עמודה\",\n addRow: \"להוסיף שורה\",\n removeRow: \"לְהַסִיר\",\n addPanel: \"הוסף חדש\",\n removePanel: \"לְהַסִיר\",\n choices_Item: \"פריט\",\n matrix_column: \"טור\",\n matrix_row: \"שׁוּרָה\",\n savingData: \"התוצאות נשמרות בשרת ...\",\n savingDataError: \"אירעה שגיאה ולא הצלחנו לשמור את התוצאות.\",\n savingDataSuccess: \"התוצאות נשמרו בהצלחה!\",\n saveAgainButton: \"נסה שוב\",\n timerMin: \"דקה\",\n timerSec: \"שניות\",\n timerSpentAll: \"הוצאת {0} בדף זה ובסך הכל {1}.\",\n timerSpentPage: \"הוצאת {0} בדף זה.\",\n timerSpentSurvey: \"הוצאת סכום כולל של {0}.\",\n timerLimitAll:\n \"הוצאת {0} מתוך {1} בדף זה ו- {2} מתוך {3} בסך הכל.\",\n timerLimitPage: \"הוצאת {0} מתוך {1} בדף זה.\",\n timerLimitSurvey: \"הוצאת סכום כולל של {0} מתוך {1}.\",\n cleanCaption: \"לְנַקוֹת\",\n clearCaption: \"ברור\",\n chooseFileCaption: \"בחר קובץ\",\n removeFileCaption: \"הסר קובץ זה\",\n booleanCheckedLabel: \"כן\",\n booleanUncheckedLabel: \"לא\",\n confirmRemoveFile: \"האם אתה בטוח שברצונך להסיר קובץ זה: {0}?\",\n confirmRemoveAllFiles: \"האם אתה בטוח שברצונך להסיר את כל הקבצים?\",\n questionTitlePatternText: \"כותרת שאלה\",\n};\n\nsurveyLocalization.locales[\"he\"] = hebrewSurveyStrings;\nsurveyLocalization.localeNames[\"he\"] = \"עברית\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var hindiStrings = {\n pagePrevText: \"पिछला\",\n pageNextText: \"अगला\",\n completeText: \"पूरा\",\n previewText: \"पूर्वसमीक्षा\",\n editText: \"संपादित\",\n startSurveyText: \"शुरू\",\n otherItemText: \"दूसरा (वर्णन करें)\",\n noneItemTex: \"कोई नहीं\",\n selectAllItemText: \"सभी का चयन करें\",\n progressText: \"पृष्ठ 1 में से 0\",\n panelDynamicProgressText: \" दस्तावेज {1} के {0}\",\n questionsProgressText: \"{1} सवालों में से {0} के जवाब दिए\",\n emptySurvey: \"सर्वेक्षण में कोई दृश्यमान पृष्ठ या प्रश्न नहीं है\",\n completingSurvey: \"सर्वेक्षण को पूरा करने के लिए धन्यवाद\",\n completingSurveyBefore: \" हमारे रिकॉर्ड बताते हैं कि आप पहले ही इस सर्वेक्षण को पूरा कर चुके हैं\",\n loadingSurvey: \"सर्वेक्षण खुल रहा है.…\",\n optionsCaption: \"चुनें\",\n value: \"मूल्य\",\n requiredError: \"कृपया प्रश्न का उत्तर दें\",\n requiredErrorInPanel: \"कृपया कम से कम एक प्रश्न का उत्तर दें\",\n requiredInAllRowsError: \"कृपया सभी पंक्तियों में सवालों के जवाब दें\",\n numericError: \"मूल्य संख्यात्मक होना चाहिए\",\n textMinLength: \"कृपया कम से कम {0} वर्ण दर्ज करें\",\n textMaxLength: \"कृपया {0} से कम वर्ण दर्ज करें\",\n textMinMaxLength: \"कृपया {0} से अधिक और {1} से कम पात्रों में प्रवेश करें\",\n minRowCountError: \"कृपया कम से कम {0} पंक्तियों को भरें\",\n minSelectError: \"कृपया कम से कम {0} विकल्प का चयन करें\",\n maxSelectError: \"कृपया {0} विकल्पों से अधिक नहीं चुनें\",\n numericMinMax: \"'{0}' {1} से बराबर या अधिक और {2} से बराबर या कम होना चाहिए\",\n numericMin: \"'{0}' {1} से बराबर या अधिक होना चाहिए\",\n numericMax: \"'{0}' {1} से बराबर या कम होना चाहिए\",\n invalidEmail: \"कृपया एक वैध ईमेल पता दर्ज करें\",\n invalidExpression: \"अभिव्यक्ति: {0} को ' सच ' लौटना चाहिए\",\n urlRequestError: \"अनुरोध लौटाया त्रुटि '{0}' . {1}\",\n urlGetChoicesError: \"अनुरोध ने खाली डेटा वापस कर दिया है \",\n exceedMaxSize: \"फ़ाइल का आकार {0} से अधिक नहीं होना चाहिए या फिर 'पाथ' प्रॉपर्टी गलत है\",\n otherRequiredError: \"कृपया दूसरा मूल्य दर्ज करें\",\n uploadingFile: \"आपकी फाइल अपलोड हो रही है। कृपया कई सेकंड इंतजार करें और फिर से प्रयास करें।\",\n loadingFile: \"लोडिंग\",\n chooseFile: \"फ़ाइल चुनें\",\n noFileChosen: \"कोई फाइल नहीं चुनी गई\",\n confirmDelete: \"क्या आप रिकॉर्ड हटाना चाहते हैं\",\n keyDuplicationError: \"यह मान अनोखा होना चाहिए\",\n addColumn: \"कॉलम जोड़ें\",\n addRow: \"पंक्ति जोड़ें\",\n removeRow: \"हटाए\",\n addPanel: \"नया जोड़ें\",\n removePanel: \"हटाए\",\n choices_Item: \"मद\",\n matrix_column: \"कॉलम\",\n matrix_row: \"पंक्ति\",\n savingData: \"परिणाम सर्वर पर सेव हो रहे हैं\",\n savingDataError: \"एक त्रुटि हुई और हम परिणामों को नहीं सेव कर सके\",\n savingDataSuccess: \"परिणाम सफलतापूर्वक सेव हो गए\",\n saveAgainButton: \"फिर कोशिश करो\",\n timerMin: \"मिनट\",\n timerSec: \"सेकंड\",\n timerSpentAll: \"आपने इस पृष्ठ पर {0} खर्च किए हैं और कुल {1}\",\n timerSpentPage: \"आपने इस पृष्ठ पर {0} खर्च किया है\",\n timerSpentSurvey: \"आपने कुल {0} खर्च किया है\",\n timerLimitAll: \"आपने इस पृष्ठ पर {1} की {0} और कुल {3} की {2} खर्च की है।\",\n timerLimitPage: \"आपने इस पृष्ठ पर {1} का {0} खर्च किया है\",\n timerLimitSurvey: \"आपने कुल {1} की {0} खर्च की है\",\n cleanCaption: \"साफ\",\n clearCaption: \"स्पष्ट\",\n chooseFileCaption: \"फ़ाइल चुनें\",\n removeFileCaption: \"इस फाइल को निकालें\",\n booleanCheckedLabel: \"हाँ\",\n booleanUncheckedLabel: \"नहीं\",\n confirmRemoveFile: \"क्या आप सुनिश्चित हैं कि आप इस फ़ाइल को हटाना चाहते हैं: {0}\",\n confirmRemoveAllFiles: \"क्या आप सुनिश्चित हैं कि आप सभी फ़ाइलों को हटाना चाहते हैं\",\n questionTitlePatternText: \"प्रश्न का शीर्षक\",\n};\n\nsurveyLocalization.locales[\"hi\"] = hindiStrings;\nsurveyLocalization.localeNames[\"hi\"] = \"hindi\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var hungarianSurveyStrings = {\n pagePrevText: \"Vissza\",\n pageNextText: \"Tovább\",\n completeText: \"Kész\",\n previewText: \"Előnézet\",\n editText: \"Szerkesztés\",\n startSurveyText: \"Rajt\",\n otherItemText: \"Egyéb (adja meg)\",\n noneItemText: \"Egyik sem\",\n selectAllItemText: \"Mindet kiválaszt\",\n progressText: \"{0}./{1} oldal\",\n panelDynamicProgressText: \"{0} / {1} rekord\",\n questionsProgressText: \"Válaszolt kérdések: {0} / {1}\",\n emptySurvey: \"There is no visible page or question in the survey.\",\n completingSurvey: \"Köszönjük, hogy kitöltötte felmérésünket!\",\n completingSurveyBefore: \"Már kitöltötte a felmérést.\",\n loadingSurvey: \"Felmérés betöltése...\",\n optionsCaption: \"Válasszon...\",\n value: \"érték\",\n requiredError: \"Kérjük, válaszolja meg ezt a kérdést!\",\n requiredErrorInPanel: \"Kérjük, válaszoljon legalább egy kérdésre.\",\n requiredInAllRowsError: \"Kérjük adjon választ minden sorban!\",\n numericError: \"Az érték szám kell, hogy legyen!\",\n textMinLength: \"Adjon meg legalább {0} karaktert!\",\n textMaxLength: \"Legfeljebb {0} karaktert adjon meg!\",\n textMinMaxLength: \"Adjon meg legalább {0}, de legfeljebb {1} karaktert!\",\n minRowCountError: \"Töltsön ki minimum {0} sort!\",\n minSelectError: \"Válasszon ki legalább {0} lehetőséget!\",\n maxSelectError: \"Ne válasszon többet, mint {0} lehetőség!\",\n numericMinMax:\n \"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!\",\n numericMin: \"'{0}' legyen legalább {1}!\",\n numericMax: \"The '{0}' ne legyen nagyobb, mint {1}!\",\n invalidEmail: \"Adjon meg egy valós email címet!\",\n invalidExpression: \"A következő kifejezés: {0} vissza kell adnia az „igaz” értéket.\",\n urlRequestError: \"A lekérdezés hibával tért vissza: '{0}'. {1}\",\n urlGetChoicesError:\n \"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.\",\n exceedMaxSize: \"A méret nem lehet nagyobb, mint {0}.\",\n otherRequiredError: \"Adja meg az egyéb értéket!\",\n uploadingFile:\n \"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.\",\n loadingFile: \"Betöltés...\",\n chooseFile: \"Fájlok kiválasztása ...\",\n noFileChosen: \"Nincs kiválasztva fájl\",\n confirmDelete: \"Törli ezt a rekordot?\",\n keyDuplicationError: \"Az értéknek egyedinek kell lennie.\",\n addColumn: \"Oszlop hozzáadása\",\n addRow: \"Sor hozzáadása\",\n removeRow: \"Eltávolítás\",\n addPanel: \"Új hozzáadása\",\n removePanel: \"Eltávolítás\",\n choices_Item: \"elem\",\n matrix_column: \"Oszlop\",\n matrix_row: \"Sor\",\n savingData: \"Eredmény mentése a szerverre...\",\n savingDataError: \"Egy hiba folytán nem tudtuk elmenteni az eredményt.\",\n savingDataSuccess: \"Eredmény sikeresen mentve!\",\n saveAgainButton: \"Próbálja újra\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Ön {0} összeget költött ezen az oldalon, és összesen {1}.\",\n timerSpentPage: \"{0} összeget költött ezen az oldalon.\",\n timerSpentSurvey: \"Összesen {0} költött.\",\n timerLimitAll:\n \"Ön {0} / {1} összeget költött ezen az oldalon, és összesen {2} / {3}.\",\n timerLimitPage: \"Ön {0} / {1} összeget költött ezen az oldalon.\",\n timerLimitSurvey: \"Összesen {0} / {1} összeget költött el.\",\n cleanCaption: \"Tiszta\",\n clearCaption: \"Egyértelmű\",\n chooseFileCaption: \"Válassz fájlt\",\n removeFileCaption: \"Távolítsa el ezt a fájlt\",\n booleanCheckedLabel: \"Igen\",\n booleanUncheckedLabel: \"Nem\",\n confirmRemoveFile: \"Biztosan eltávolítja ezt a fájlt: {0}?\",\n confirmRemoveAllFiles: \"Biztosan el akarja távolítani az összes fájlt?\",\n questionTitlePatternText: \"Kérdés címe\",\n};\n\nsurveyLocalization.locales[\"hu\"] = hungarianSurveyStrings;\nsurveyLocalization.localeNames[\"hu\"] = \"magyar\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var icelandicSurveyStrings = {\n pagePrevText: \"Tilbaka\",\n pageNextText: \"Áfram\",\n completeText: \"Lokið\",\n previewText: \"Forskoða\",\n editText: \"Breyta\",\n startSurveyText: \"Byrjaðu\",\n otherItemText: \"Hinn (skýring)\",\n noneItemText: \"Enginn\",\n selectAllItemText: \"Velja allt\",\n progressText: \"Síða {0} of {1}\",\n panelDynamicProgressText: \"Taka upp {0} af {1}\",\n questionsProgressText: \"Svarað {0} / {1} spurningum\",\n emptySurvey: \"Það er enginn síða eða spurningar í þessari könnun.\",\n completingSurvey: \"Takk fyrir að fyllja út þessa könnun!\",\n completingSurveyBefore:\n \"Skrár okkar sýna að þú hefur þegar lokið þessari könnun.\",\n loadingSurvey: \"Könnunin er að hlaða...\",\n optionsCaption: \"Veldu...\",\n value: \"gildi\",\n requiredError: \"Vinsamlegast svarið spurningunni.\",\n requiredErrorInPanel: \"Vinsamlegast svaraðu að minnsta kosti einni spurningu.\",\n requiredInAllRowsError: \"Vinsamlegast svarið spurningum í öllum röðum.\",\n numericError: \"Þetta gildi verður að vera tala.\",\n textMinLength: \"Það ætti að vera minnst {0} tákn.\",\n textMaxLength: \"Það ætti að vera mest {0} tákn.\",\n textMinMaxLength: \"Það ætti að vera fleiri en {0} og færri en {1} tákn.\",\n minRowCountError: \"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.\",\n minSelectError: \"Vinsamlegast veljið að minnsta kosti {0} möguleika.\",\n maxSelectError: \"Vinsamlegast veljið ekki fleiri en {0} möguleika.\",\n numericMinMax:\n \"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}\",\n numericMin: \"{0}' ætti að vera meira en eða jafnt og {1}\",\n numericMax: \"'{0}' ætti að vera minna en eða jafnt og {1}\",\n invalidEmail: \"Vinsamlegast sláið inn gilt netfang.\",\n invalidExpression: \"Tjáningin: {0} ætti að skila 'satt'.\",\n urlRequestError: \"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}\",\n urlGetChoicesError: \"Beiðninng skilaði engum gögnum eða slóðinn var röng\",\n exceedMaxSize: \"Skráinn skal ekki vera stærri en {0}.\",\n otherRequiredError: \"Vinamlegast fyllið út hitt gildið.\",\n uploadingFile:\n \"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.\",\n loadingFile: \"Hleður ...\",\n chooseFile: \"Veldu skrár ...\",\n noFileChosen: \"Engin skrá valin\",\n confirmDelete: \"Viltu eyða skránni?\",\n keyDuplicationError: \"Þetta gildi ætti að vera einstakt.\",\n addColumn: \"Bæta við dálki\",\n addRow: \"Bæta við röð\",\n removeRow: \"Fjarlægja\",\n addPanel: \"Bæta við nýju\",\n removePanel: \"Fjarlægðu\",\n choices_Item: \"hlutur\",\n matrix_column: \"Dálkur\",\n matrix_row: \"Röð\",\n\n savingData: \"Niðurstöðurnar eru að spara á netþjóninum ... \",\n savingDataError: \"Villa kom upp og við gátum ekki vistað niðurstöðurnar.\",\n savingDataSuccess: \"Árangurinn var vistaður með góðum árangri!\",\n saveAgainButton: \"Reyndu aftur\",\n timerMin: \"mín\",\n timerSec: \"sek\",\n timerSpentAll: \"Þú hefur eytt {0} á þessari síðu og {1} samtals.\",\n timerSpentPage: \"Þú hefur eytt {0} á þessari síðu.\",\n timerSpentSurvey: \"Þú hefur eytt {0} samtals.\",\n timerLimitAll:\n \"Þú hefur eytt {0} af {1} á þessari síðu og {2} af {3} samtals.\",\n timerLimitPage: \"Þú hefur eytt {0} af {1} á þessari síðu.\",\n timerLimitSurvey: \"Þú hefur eytt {0} af {1} samtals.\",\n cleanCaption: \"Hreint\",\n clearCaption: \"Hreinsa\",\n chooseFileCaption: \"Veldu skrá\",\n removeFileCaption: \"Fjarlægðu þessa skrá\",\n booleanCheckedLabel: \"Já\",\n booleanUncheckedLabel: \"Nei\",\n confirmRemoveFile: \"Ertu viss um að þú viljir fjarlægja þessa skrá: {0}?\",\n confirmRemoveAllFiles: \"Ertu viss um að þú viljir fjarlægja allar skrár?\",\n questionTitlePatternText: \"Spurningartitill\",\n};\n\nsurveyLocalization.locales[\"is\"] = icelandicSurveyStrings;\nsurveyLocalization.localeNames[\"is\"] = \"íslenska\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var indonesianStrings = {\n pagePrevText: \"Sebelumnya\",\n pageNextText: \"Selanjutnya\",\n completeText: \"Selesai\",\n previewText: \"Pratinjau\",\n editText: \"Sunting\",\n startSurveyText: \"Mulai\",\n otherItemText: \"Lainnya (jelaskan)\",\n noneItemText: \"Tidak Ada\",\n selectAllItemText: \"Pilih Semua\",\n progressText: \"Halaman {0} dari {1}\",\n panelDynamicProgressText: \"Rekam {0} dari {1}\",\n questionsProgressText: \"Menjawab pertanyaan {0} / {1}\",\n emptySurvey: \"Tidak ada halaman atau pertanyaan dalam survei.\",\n completingSurvey: \"Terima kasih telah menyelesaikan survei!\",\n completingSurveyBefore:\n \"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.\",\n loadingSurvey: \"Memuat survei...\",\n optionsCaption: \"Pilih...\",\n value: \"nilai\",\n requiredError: \"Silahkan jawab pertanyaan berikut.\",\n requiredErrorInPanel: \"Silahkan jawab setidaknya satu petanyaan.\",\n requiredInAllRowsError: \"Silahkan jawab pertanyaan pada semua baris.\",\n numericError: \"Nilai harus berupa angka.\",\n textMinLength: \"Silahkan masukkan setidaknya {0} karakter.\",\n textMaxLength: \"Silahkan masukkan kurang {0} karakter.\",\n textMinMaxLength:\n \"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.\",\n minRowCountError: \"Silahkan isi setidaknya {0} baris.\",\n minSelectError: \"Silahkan pilih setidaknya {0} varian.\",\n maxSelectError: \"Silahkan pilih tidak lebih dari {0} varian.\",\n numericMinMax:\n \"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}\",\n numericMin: \"'{0}' harus sama dengan atau lebih dari {1}\",\n numericMax: \"'{0}' harus sama dengan atau kurang dari {1}\",\n invalidEmail: \"Silahkan masukkan e-mail yang benar.\",\n invalidExpression: \"Ekspresi: {0} harus mengembalikan 'benar'.\",\n urlRequestError: \"Permintaan mengembalikan kesalahan '{0}'. {1}\",\n urlGetChoicesError:\n \"Permintaan mengembalikan data kosong atau properti 'path' salah.\",\n exceedMaxSize: \"Ukuran berkas tidak boleh melebihi {0}.\",\n otherRequiredError: \"Silahkan masukkan nilai lainnnya.\",\n uploadingFile:\n \"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.\",\n loadingFile: \"Memuat...\",\n chooseFile: \"Pilih berkas...\",\n noFileChosen: \"Tidak ada file yang dipilih\",\n confirmDelete: \"Apakah Anda ingin menghapus catatan?\",\n keyDuplicationError: \"Nilai harus unik.\",\n addColumn: \"Tambah kolom\",\n addRow: \"Tambah baris\",\n removeRow: \"Hapus\",\n addPanel: \"Tambah baru\",\n removePanel: \"Hapus\",\n choices_Item: \"item\",\n matrix_column: \"Kolom\",\n matrix_row: \"Baris\",\n savingData: \"Hasil sedang disimpan pada server...\",\n savingDataError: \"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.\",\n savingDataSuccess: \"Hasil telah sukses disimpan!\",\n saveAgainButton: \"Coba lagi\",\n timerMin: \"menit\",\n timerSec: \"detik\",\n timerSpentAll:\n \"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.\",\n timerSpentPage: \"YAnda telah menghabiskan {0} pada halaman ini.\",\n timerSpentSurvey: \"Anda telah menghabiskan {0} secara keseluruhan.\",\n timerLimitAll:\n \"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.\",\n timerLimitPage: \"Anda telah menghabiskan {0} dari {1} pada halaman ini.\",\n timerLimitSurvey: \"Anda telah menghabiskan {0} dari {1} secara keseluruhan.\",\n cleanCaption: \"Bersihkan\",\n clearCaption: \"Bersihkan\",\n chooseFileCaption: \"Pilih File\",\n removeFileCaption: \"Hapus berkas ini\",\n booleanCheckedLabel: \"Iya\",\n booleanUncheckedLabel: \"Tidak\",\n confirmRemoveFile: \"Anda yakin ingin menghapus file ini: {0}?\",\n confirmRemoveAllFiles: \"Anda yakin ingin menghapus semua file?\",\n questionTitlePatternText: \"Judul pertanyaan\",\n};\n\nsurveyLocalization.locales[\"id\"] = indonesianStrings;\nsurveyLocalization.localeNames[\"id\"] = \"bahasa Indonesia\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var italianSurveyStrings = {\n pagePrevText: \"Precedente\",\n pageNextText: \"Successivo\",\n completeText: \"Salva\",\n previewText: \"Anteprima\",\n editText: \"Modifica\",\n startSurveyText: \"Inizio\",\n otherItemText: \"Altro (descrivi)\",\n noneItemText: \"Nessuno\",\n selectAllItemText: \"Seleziona tutti\",\n progressText: \"Pagina {0} di {1}\",\n panelDynamicProgressText: \"Record di {0} di {1}\",\n questionsProgressText: \"Risposte a {0}/{1} domande\",\n emptySurvey: \"Non ci sono pagine o domande visibili nel questionario.\",\n completingSurvey: \"Grazie per aver completato il questionario!\",\n completingSurveyBefore:\n \"I nostri records mostrano che hai già completato questo questionario.\",\n loadingSurvey: \"Caricamento del questionario in corso...\",\n optionsCaption: \"Scegli...\",\n value: \"valore\",\n requiredError: \"Campo obbligatorio\",\n requiredErrorInPanel: \"Per Favore, rispondi ad almeno una domanda.\",\n requiredInAllRowsError: \"Completare tutte le righe\",\n numericError: \"Il valore deve essere numerico\",\n textMinLength: \"Inserire almeno {0} caratteri\",\n textMaxLength: \"Lunghezza massima consentita {0} caratteri\",\n textMinMaxLength:\n \"Inserire una stringa con minimo {0} e massimo {1} caratteri\",\n minRowCountError: \"Completare almeno {0} righe.\",\n minSelectError: \"Selezionare almeno {0} varianti.\",\n maxSelectError: \"Selezionare massimo {0} varianti.\",\n numericMinMax:\n \"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}\",\n numericMin: \"'{0}' deve essere uguale o superiore a {1}\",\n numericMax: \"'{0}' deve essere uguale o inferiore a {1}\",\n invalidEmail: \"Inserire indirizzo mail valido\",\n invalidExpression: \"L'espressione: {0} dovrebbe tornare 'vero'.\",\n urlRequestError: \"La richiesta ha risposto con un errore '{0}'. {1}\",\n urlGetChoicesError:\n \"La richiesta ha risposto null oppure il percorso non è corretto\",\n exceedMaxSize: \"Il file non può eccedere {0}\",\n otherRequiredError: \"Inserire il valore 'altro'\",\n uploadingFile:\n \"File in caricamento. Attendi alcuni secondi e riprova\",\n loadingFile: \"Caricamento...\",\n chooseFile: \"Selezionare file(s)...\",\n noFileChosen: \"Nessun file selezionato\",\n confirmDelete: \"Sei sicuro di voler elminare il record?\",\n keyDuplicationError: \"Questo valore deve essere univoco.\",\n addColumn: \"Aggiungi colonna\",\n addRow: \"Aggiungi riga\",\n removeRow: \"Rimuovi riga\",\n addPanel: \"Aggiungi riga\",\n removePanel: \"Elimina\",\n choices_Item: \"Elemento\",\n matrix_column: \"Colonna\",\n matrix_row: \"Riga\",\n savingData: \"Salvataggio dati sul server...\",\n savingDataError: \"Si è verificato un errore e non è stato possibile salvare i risultati.\",\n savingDataSuccess: \"I risultati sono stati salvati con successo!\",\n saveAgainButton: \"Riprova\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Hai impiegato {0} su questa pagina e {1} in totale.\",\n timerSpentPage: \"Hai impiegato {0} su questa pagina.\",\n timerSpentSurvey: \"Hai impiegato {0} in totale.\",\n timerLimitAll:\n \"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.\",\n timerLimitPage: \"Hai impiegato {0} di {1} su questa pagina.\",\n timerLimitSurvey: \"Hai impiegato {0} di {1} in totale.\",\n cleanCaption: \"Pulisci\",\n clearCaption: \"Cancella\",\n chooseFileCaption: \"Scegliere il file\",\n removeFileCaption: \"Rimuovere questo file\",\n booleanCheckedLabel: \"Sì\",\n booleanUncheckedLabel: \"No\",\n confirmRemoveFile: \"Sei sicuro di voler elminare questo file: {0}?\",\n confirmRemoveAllFiles: \"Sei sicuro di voler elminare tutti i files?\",\n questionTitlePatternText: \"Titolo della domanda\",\n};\n\nsurveyLocalization.locales[\"it\"] = italianSurveyStrings;\nsurveyLocalization.localeNames[\"it\"] = \"italiano\";\n","import { surveyLocalization } from \"../surveyStrings\";\r\n\r\nexport var japaneseSurveyStrings = {\r\n pagePrevText: \"前へ\",\r\n pageNextText: \"次へ\",\r\n completeText: \"完了\",\r\n previewText: \"プレビュー\",\r\n editText: \"編集\",\r\n startSurveyText: \"スタート\",\r\n otherItemText: \"その他(説明)\",\r\n noneItemText: \"なし\",\r\n selectAllItemText: \"すべて選択\",\r\n progressText: \"{0}/{1}頁\",\r\n panelDynamicProgressText: \"{1}の{0}を記録する\",\r\n questionsProgressText: \"{0}/{1}の質問に回答しました。\",\r\n emptySurvey: \"この調査に表示できるページや質問はありません\",\r\n completingSurvey: \"調査を完了してくれてありがとうございました\",\r\n completingSurveyBefore:\r\n \"当社の記録によると、この調査はすでに完了しています。\",\r\n loadingSurvey: \"調査をダウンロード中\",\r\n optionsCaption: \"選択\",\r\n value: \"値打ち\",\r\n requiredError: \"質問にお答え下さい\",\r\n requiredErrorInPanel: \"最低でも1つの質問に答えてください。\",\r\n requiredInAllRowsError: \"質問には全列で回答してください。\",\r\n numericError: \"数字でご記入下さい\",\r\n textMinLength: \"{0} 文字以上で入力して下さい\",\r\n textMaxLength: \"{0}文字以下で入力してください。\",\r\n textMinMaxLength: \"{0}以上{1}未満の文字を入力してください。\",\r\n minRowCountError: \"{0}行以上で入力して下さい\",\r\n minSelectError: \"{0}種類以上を選択して下さい\",\r\n maxSelectError: \"{0}以上のバリアントを選択しないでください。\",\r\n numericMinMax:\r\n \"{0}は{1}以上であり、{2}以下であることが望ましい。\",\r\n numericMin: \"'{0}' は同等か{1}より大きくなければなりません\",\r\n numericMax: \"'{0}' は同等か{1}より小さくなければなりません\",\r\n invalidEmail: \"有効なメールアドレスをご記入下さい\",\r\n invalidExpression: \"式は {0}は'true'を返すべきです。\",\r\n urlRequestError: \"リクエストはエラー '{0}' を返しました。{1}\",\r\n urlGetChoicesError:\r\n \"リクエストが空のデータを返したか、'path' プロパティが正しくありません。\",\r\n exceedMaxSize: \"ファイルのサイズは{0}を超えてはいけません\",\r\n otherRequiredError: \"その他の値を入力してください。\",\r\n uploadingFile:\r\n \"ファイルをアップロード中です。しばらくしてから再度お試し下さい\",\r\n loadingFile: \"読み込み中\",\r\n chooseFile: \"ファイルを選択\",\r\n noFileChosen: \"選択されたファイルはありません\",\r\n confirmDelete: \"レコードを削除しますか?\",\r\n keyDuplicationError: \"この値は一意でなければなりません。\",\r\n addColumn: \"列の追加\",\r\n addRow: \"追加行\",\r\n removeRow: \"除去\",\r\n addPanel: \"新規追加\",\r\n removePanel: \"除去\",\r\n choices_Item: \"品目\",\r\n matrix_column: \"コラム\",\r\n matrix_row: \"行\",\r\n savingData: \"結果はサーバーに保存されています...。\",\r\n savingDataError: \"エラーが発生し、結果を保存できませんでした。\",\r\n savingDataSuccess: \"結果は無事に保存されました\",\r\n saveAgainButton: \"もう一度試してみてください。\",\r\n timerMin: \"僅少\",\r\n timerSec: \"セック\",\r\n timerSpentAll: \"あなたはこのページに{0}を費やし、合計で{1}を費やしました。\",\r\n timerSpentPage: \"あなたはこのページに{0}を費やしました。\",\r\n timerSpentSurvey: \"合計で{0}を使ったことになります。\",\r\n timerLimitAll:\r\n \"このページに{1}のうち{0}を費やし、{3}のうち{2}を合計で費やしました。\",\r\n timerLimitPage: \"このページで{1}の{0}を使ったことがあります。\",\r\n timerLimitSurvey: \"合計で{1}の{0}を使ったことがあります。\",\r\n cleanCaption: \"削除\",\r\n clearCaption: \"空白\",\r\n chooseFileCaption: \"ファイルを選択\",\r\n removeFileCaption: \"このファイルを削除\",\r\n booleanCheckedLabel: \"噫\",\r\n booleanUncheckedLabel: \"否\",\r\n confirmRemoveFile: \"このファイルを削除してもよろしいですか?{0}?\",\r\n confirmRemoveAllFiles: \"すべてのファイルを削除してもよろしいですか?\",\r\n questionTitlePatternText: \"質問名\",\r\n};\r\n\r\nsurveyLocalization.locales[\"ja\"] = japaneseSurveyStrings;\r\nsurveyLocalization.localeNames[\"ja\"] = \"日本語\";\r\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var koreanStrings = {\n pagePrevText: \"이전\",\n pageNextText: \"다음\",\n completeText: \"완료\",\n previewText: \"시사\",\n editText: \"편집하다\",\n startSurveyText: \"시작\",\n otherItemText: \"기타(설명)\",\n noneItemText: \"없음\",\n selectAllItemText: \"모두 선택\",\n progressText: \"페이지 {1} 중 {0}\",\n panelDynamicProgressText: \"{0} / {1} 기록\",\n questionsProgressText: \"{0} / {1} 개의 질문에 답변 함\",\n emptySurvey: \"설문지에 보여지는 페이지나 질문이 없습니다\",\n completingSurvey: \"설문 조사를 완료해 주셔서 감사합니다!\",\n completingSurveyBefore: \"기록에 따르면 이미 설문 조사를 마치셨습니다.\",\n loadingSurvey: \"설문조사가 로드중입니다...\",\n optionsCaption: \"선택하십시오...\",\n value: \"값\",\n requiredError: \"질문에 답하시오.\",\n requiredErrorInPanel: \"하나 이상의 질문에 답하십시오.\",\n requiredInAllRowsError: \"모든 행에 있는 질문에 답하십시오.\",\n numericError: \"값은 숫자여야 합니다.\",\n textMinLength: \"답변의 길이는 최소 {0}자여야 입니다.\",\n textMaxLength: \"답변의 길이는 {0}자를 초과 할 수 없습니다.\",\n textMinMaxLength: \"답변의 길이는 {0} - {1}자 사이여야 합니다.\",\n minRowCountError: \"최소 {0}개의 행을 채우십시오\",\n minSelectError: \"최소 {0}개의 변수를 선택하십시오.\",\n maxSelectError: \"최대 {0}개의 변수를 선택하십시오.\",\n numericMinMax: \"'{0}'은 {1}보다 크거나 같고 {2}보다 작거나 같아야합니다.\",\n numericMin: \"'{0}'은 {1}보다 크거나 같아야합니다.\",\n numericMax: \"'{0}'은 {1}보다 작거나 같아야합니다.\",\n invalidEmail: \"올바른 이메일 주소를 입력하십시오.\",\n invalidExpression: \"표현식: {0}은 '참'이어야 합니다.\",\n urlRequestError: \"'{0}'으로 잘못된 요청입니다. {1}\",\n urlGetChoicesError: \"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.\",\n exceedMaxSize: \"파일 크기가 {0}을 초과 할 수 없습니다.\",\n otherRequiredError: \"다른 질문을 작성하십시오.\",\n uploadingFile: \"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.\",\n loadingFile: \"로드 중...\",\n chooseFile: \"파일 선택...\",\n noFileChosen: \"선택된 파일이 없습니다\",\n confirmDelete: \"기록을 삭제하시겠습니까?\",\n keyDuplicationError: \" 이 값은 고유해야합니다.\",\n addColumn: \"열 추가\",\n addRow: \"행 추가\",\n removeRow: \"제거\",\n addPanel: \"새롭게 추가\",\n removePanel: \"제거\",\n choices_Item: \"항목\",\n matrix_column: \"열\",\n matrix_row: \"행\",\n savingData: \"결과가 서버에 저장 중입니다...\",\n savingDataError: \"오류가 발생하여 결과를 저장할 수 없습니다.\",\n savingDataSuccess: \"결과가 성공적으로 저장되었습니다!\",\n saveAgainButton: \"다시 시도하십시오\",\n timerMin: \"분\",\n timerSec: \"초\",\n timerSpentAll: \"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.\",\n timerSpentPage: \"현재 페이지에서 {0]이 걸렸습니다\",\n timerSpentSurvey: \"총 {0}이 걸렸습니다.\",\n timerLimitAll: \"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.\",\n timerLimitPage: \"현재 페이지에서 {0}/{1}이 걸렸습니다.\",\n timerLimitSurvey: \"총 {0}/{1}이 걸렸습니다.\",\n cleanCaption: \"닦기\",\n clearCaption: \"지우기\",\n chooseFileCaption: \"파일을 선택\",\n removeFileCaption: \"이 파일 제거\",\n booleanCheckedLabel: \"예\",\n booleanUncheckedLabel: \"아니\",\n confirmRemoveFile: \"{0} 파일을 제거 하시겠습니까?\",\n confirmRemoveAllFiles: \"모든 파일을 제거 하시겠습니까?\",\n questionTitlePatternText: \"질문 제목\",\n};\n\nsurveyLocalization.locales[\"ko\"] = koreanStrings;\nsurveyLocalization.localeNames[\"ko\"] = \"한국어\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var latvianSurveyStrings = {\n pagePrevText: \"Atpakaļ\",\n pageNextText: \"Tālāk\",\n completeText: \"Pabeigt\",\n previewText: \"Priekšskatījums\",\n editText: \"Rediģēt\",\n startSurveyText: \"Sākt\",\n otherItemText: \"Cits (lūdzu, aprakstiet!)\",\n noneItemText: \"Nav\",\n selectAllItemText: \"Izvēlēties visus\",\n progressText: \"Lappuse {0} no {1}\",\n panelDynamicProgressText: \"Ierakstīt {0} no {1}\",\n questionsProgressText: \"Atbildēja uz jautājumiem {0} / {1}\",\n emptySurvey: \"Nav neviena jautājuma.\",\n completingSurvey: \"Pateicamies Jums par anketas aizpildīšanu!\",\n completingSurveyBefore:\n \"Mūsu ieraksti liecina, ka jūs jau esat aizpildījis šo aptauju.\",\n loadingSurvey: \"Ielāde no servera...\",\n optionsCaption: \"Izvēlēties...\",\n value: \"value\",\n requiredError: \"Lūdzu, atbildiet uz jautājumu!\",\n requiredErrorInPanel: \"Lūdzu, atbildiet uz vismaz vienu jautājumu.\",\n requiredInAllRowsError: \"Lūdzu, atbildiet uz jautājumiem visās rindās.\",\n numericError: \"Atbildei ir jābūt skaitlim.\",\n textMinLength: \"Lūdzu, ievadiet vismaz {0} simbolus.\",\n textMaxLength: \"Lūdzu, ievadiet mazāk nekā {0} rakstzīmes.\",\n textMinMaxLength: \"Lūdzu, ievadiet vairāk nekā {0} rakstzīmes un mazāk nekā {1} rakstzīmes.\",\n minRowCountError: \"Lūdzu, aizpildiet vismaz {0} rindas.\",\n minSelectError: \"Lūdzu, izvēlieties vismaz {0} variantu.\",\n maxSelectError: \"Lūdzu, izvēlieties ne vairak par {0} variantiem.\",\n numericMinMax:\n \"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}\",\n numericMin: \"'{0}' jābūt vienādam vai lielākam {1}\",\n numericMax: \"'{0}' jābūt vienādam vai lielākam {1}\",\n invalidEmail: \"Lūdzu, ievadiet patiesu e-pasta adresi!\",\n invalidExpression: \"Izteicienam: {0} jāatgriež “true”.\",\n urlRequestError: \"Pieprasījumā tika atgriezta kļūda “{0}”. {1}\",\n urlGetChoicesError:\n \"Pieprasījums atgrieza tukšus datus vai rekvizīts “path” ir nepareizs\",\n exceedMaxSize: \"Faila lielums nedrīkst pārsniegt {0}.\",\n otherRequiredError: \"Lūdzu, ievadiet datus laukā 'Cits'\",\n uploadingFile:\n \"Jūsu fails tiek augšupielādēts. Lūdzu, uzgaidiet vairākas sekundes un mēģiniet vēlreiz.\",\n loadingFile: \"Notiek ielāde ...\",\n chooseFile: \"Izvēlieties failus ...\",\n noFileChosen: \"Nav izvēlēts neviens fails\",\n confirmDelete: \"Vai vēlaties izdzēst ierakstu?\",\n keyDuplicationError: \"Šai vērtībai jābūt unikālai.\",\n addColumn: \"Pievienot kolonnu\",\n addRow: \"Pievienot rindu\",\n removeRow: \"Noņemt\",\n addPanel: \"Pievieno jaunu\",\n removePanel: \"Noņemt\",\n choices_Item: \"lieta\",\n matrix_column: \"Sleja\",\n matrix_row: \"Rinda\",\n savingData: \"Rezultāti tiek saglabāti serverī ...\",\n savingDataError: \"Radās kļūda, un mēs nevarējām saglabāt rezultātus.\",\n savingDataSuccess: \"Rezultāti tika veiksmīgi saglabāti!\",\n saveAgainButton: \"Mēģini vēlreiz\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Šajā lapā esat iztērējis {0} un kopā {1}.\",\n timerSpentPage: \"Šajā lapā esat iztērējis {0}.\",\n timerSpentSurvey: \"Kopā esat iztērējis {0}.\",\n timerLimitAll:\n \"Šajā lapā esat iztērējis {0} no {1} un kopā {2} no {3}.\",\n timerLimitPage: \"Šajā lapā esat iztērējis {0} no {1}.\",\n timerLimitSurvey: \"Kopā esat iztērējis {0} no {1}.\",\n cleanCaption: \"Tīrs\",\n clearCaption: \"Skaidrs\",\n chooseFileCaption: \"Izvēlēties failu\",\n removeFileCaption: \"Noņemiet šo failu\",\n booleanCheckedLabel: \"Jā\",\n booleanUncheckedLabel: \"Nē\",\n confirmRemoveFile: \"Vai tiešām vēlaties noņemt šo failu: {0}?\",\n confirmRemoveAllFiles: \"Vai tiešām vēlaties noņemt visus failus?\",\n questionTitlePatternText: \"Jautājuma nosaukums\",\n};\n\nsurveyLocalization.locales[\"lv\"] = latvianSurveyStrings;\nsurveyLocalization.localeNames[\"lv\"] = \"latviešu\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var lithuaniaSurveyStrings = {\n pagePrevText: \"Atgal\",\n pageNextText: \"Toliau\",\n completeText: \"Baigti\",\n previewText: \"Peržiūra\",\n editText: \"Redaguoti\",\n startSurveyText: \"Pradėti\",\n otherItemText: \"Kita (įvesti)\",\n noneItemText: \"Nėra\",\n selectAllItemText: \"Pasirinkti visus\",\n progressText: \"Puslapis {0} iš {1}\",\n panelDynamicProgressText: \"Įrašyti {0} iš {1}\",\n questionsProgressText: \"Atsakė į {0} / {1} klausimus\",\n emptySurvey: \"Apklausoje nėra matomo puslapio ar klausimo.\",\n completingSurvey: \"Dėkojame už dalyvavimą apklausoje!\",\n completingSurveyBefore: \"Mūsų įrašai rodo, kad jau atlikote šią apklausą.\",\n loadingSurvey: \"Prašome palaukti...\",\n optionsCaption: \"Pasirinkti...\",\n value: \"reikšmė\",\n requiredError: \"Būtina atsakyti į šį klausimą.\",\n requiredErrorInPanel: \"Būtina atsakyti bent į vieną klausimą.\",\n requiredInAllRowsError: \"Prašome atsakyti į klausimus visose eilutėse.\",\n numericError: \"Turi būti skaičiai.\",\n textMinLength: \"Prašome suvesti bent {0} simbolius.\",\n textMaxLength: \"Prašome suvesti mažiau nei {0} simbolių.\",\n textMinMaxLength:\n \"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.\",\n minRowCountError: \"Prašome suvesti ne mažiau nei {0} eilučių.\",\n minSelectError: \"Prašome pasirinkti bent {0} variantų.\",\n maxSelectError: \"Pasirinkite ne daugiau kaip {0} variantus.\",\n numericMinMax:\n \"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}\",\n numericMin: \"'{0}' turėtų būti lygus arba didesnis nei {1}\",\n numericMax: \"'{0}' turėtų būti lygus ar mažesnis už {1}\",\n invalidEmail: \"Prašome įvesti galiojantį elektroninio pašto adresą.\",\n invalidExpression: \"Reikšmė: {0} turi grąžinti 'true'.\",\n urlRequestError: \"Užklausa grąžino klaidą'{0}'. {1}\",\n urlGetChoicesError:\n \"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga\",\n exceedMaxSize: \"Failo dydis neturi viršyti {0}.\",\n otherRequiredError: \"Įveskite kitą reikšmę.\",\n uploadingFile:\n \"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.\",\n loadingFile: \"Prašome palaukti...\",\n chooseFile: \"Pasirinkti failą(us)...\",\n noFileChosen: \"Nepasirinktas joks failas\",\n confirmDelete: \"Ar norite ištrinti įrašą?\",\n keyDuplicationError: \"Ši reikšmė turėtų būti unikali.\",\n addColumn: \"Pridėti stulpelį\",\n addRow: \"Pridėti eilutę\",\n removeRow: \"Ištrinti\",\n addPanel: \"Pridėti naują\",\n removePanel: \"Ištrinti\",\n choices_Item: \"elementas\",\n matrix_column: \"Stulpelis\",\n matrix_row: \"Eilutė\",\n savingData: \"Rezultatai saugomi serveryje...\",\n savingDataError: \"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.\",\n savingDataSuccess: \"Rezultatai buvo išsaugoti sėkmingai!\",\n saveAgainButton: \"Bandyti dar kartą\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Praleidote {0} šiame puslapyje ir {1} iš viso.\",\n timerSpentPage: \"Praleidote {0} šiame puslapyje.\",\n timerSpentSurvey: \"Praleidote {0} iš viso.\",\n timerLimitAll: \"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.\",\n timerLimitPage: \"Praleidote {0} iš {1} šiame puslapyje.\",\n timerLimitSurvey: \"Praleidote {0} iš {1} iš viso.\",\n cleanCaption: \"Išvalyti\",\n clearCaption: \"Valyti\",\n chooseFileCaption: \"Pasirinkti failą\",\n removeFileCaption: \"Ištrinti šį failą\",\n booleanCheckedLabel: \"Taip\",\n booleanUncheckedLabel: \"Ne\",\n confirmRemoveFile: \"Ar tikrai norite pašalinti šį failą: {0}?\",\n confirmRemoveAllFiles: \"Ar tikrai norite pašalinti visus failus?\",\n questionTitlePatternText: \"Klausimo pavadinimas\",\n};\n\nsurveyLocalization.locales[\"lt\"] = lithuaniaSurveyStrings;\nsurveyLocalization.localeNames[\"lt\"] = \"lietuvių\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var macedonianSurveyStrings = {\n pagePrevText: \"Претходна\",\n pageNextText: \"Следно\",\n completeText: \"Заврши\",\n previewText: \"Преглед\",\n editText: \"Уредување\",\n startSurveyText: \"Започнете\",\n otherItemText: \"Друго (опиши)\",\n noneItemText: \"Ништо\",\n selectAllItemText: \"Селектирај се\",\n progressText: \"Страница {0} од {1}\",\n panelDynamicProgressText: \"Сними {0} од {1}\",\n questionsProgressText: \"Одговорени на {0} / {1} прашања\",\n emptySurvey: \"Нема видлива страница или прашање во истражувањето.\",\n completingSurvey: \"Ви благодариме што го завршивте истражувањето!\",\n completingSurveyBefore:\n \"Нашите записи покажуваат дека веќе сте го завршиле ова истражување.\",\n loadingSurvey: \"Анкетата се вчитува ...\",\n optionsCaption: \"Изберете ...\",\n value: \"вредност\",\n requiredError: \"Ве молам, одговорете на прашањето.\",\n requiredErrorInPanel: \"Ве молам, одговорете барем на едно прашање.\",\n requiredInAllRowsError: \"Ве молиме, одговорете на прашања во сите редови.\",\n numericError: \"Вредноста треба да биде нумеричка.\",\n minError: \"Вредноста не треба да биде помала од {0}\",\n maxError: \"Вредноста не треба да биде поголема од {0}\",\n textMinLength: \"Внесете најмалку {0} знак/ци.\",\n textMaxLength: \"Внесете не повеќе од {0} знак/ци.\",\n textMinMaxLength: \"Внесете најмалку {0} и не повеќе од {1} знаци.\",\n minRowCountError: \"Пополнете најмалку {0} ред(ови).\",\n minSelectError: \"Ве молиме изберете најмалку {0} варијанта(и).\",\n maxSelectError: \"Изберете не повеќе од {0} варијанта(и).\",\n numericMinMax:\n \"'{0}' треба да биде најмалку {1} и најмногу {2}\",\n numericMin: \"'{0}' треба да биде најмалку {1}\",\n numericMax: \"'{0}' треба да биде најмногу {1}\",\n invalidEmail: \"Ве молиме внесете валидна е-маил адреса.\",\n invalidExpression: \"Изразот: {0} треба да се врати 'true'.\",\n urlRequestError: \"Барањето врати грешка '{0}'. {1} \",\n urlGetChoicesError:\n \"Барањето врати празни податоци или својството 'path' е неточно\",\n exceedMaxSize: \"Големината на датотеката не треба да надминува {0}.\",\n otherRequiredError: \"Внесете ја другата вредност.\",\n uploadingFile:\n \"Вашата датотека се поставува. Ве молиме почекајте неколку секунди и обидете се повторно.\",\n loadingFile: \"Се вчитува ...\",\n chooseFile: \"Изберете датотека (и) ...\",\n noFileChosen: \"Не се избрани датотеки\",\n confirmDelete: \"Дали сакате да го избришете записот?\",\n keyDuplicationError: \"Оваа вредност треба да биде единствена.\",\n addColumn: \"Додај колона\",\n addRow: \"Додади ред\",\n removeRow: \"Отстрани\",\n emptyRowsText: \"Нема редови.\",\n addPanel: \"Додади ново\",\n removePanel: \"Отстрани\",\n choices_Item: \"ставка\",\n matrix_column: \"Колона\",\n matrix_row: \"Ред\",\n savingData: \"Резултатите се зачувуваат на серверот ...\",\n savingDataError: \"Настана грешка и не можевме да ги зачуваме резултатите.\",\n savingDataSuccess: \"Резултатите беа успешно зачувани!\",\n saveAgainButton: \"Обиди се повторно\",\n timerMin: \"мин\",\n timerSec: \"сек\",\n timerSpentAll: \"Поминавте {0} на оваа страница и вкупно {1}.\",\n timerSpentPage: \"Поминавте {0} на оваа страница.\",\n timerSpentSurvey: \"Вие потрошивте вкупно {0}.\",\n timerLimitAll:\n \"Поминавте {0} од {1} на оваа страница и {2} од {3} вкупно.\",\n timerLimitPage: \"Поминавте {0} од {1} на оваа страница.\",\n timerLimitSurvey: \"Вие потрошивте вкупно {0} од {1}.\",\n cleanCaption: \"Чисти\",\n clearCaption: \"Да расчисти\",\n chooseFileCaption: \"Изберете датотека\",\n removeFileCaption: \"Отстранете ја оваа датотека\",\n booleanCheckedLabel: \"Да\",\n booleanUncheckedLabel: \"Не\",\n confirmRemoveFile: \"Дали сте сигурни дека сакате да ја отстраните оваа датотека: {0}?\",\n confirmRemoveAllFiles: \"Дали сте сигурни дека сакате да ги отстраните сите датотеки?\",\n questionTitlePatternText: \"Наслов на прашањето\",\n modalCancelButtonText: \"Откажи\",\n modalApplyButtonText: \"Аплицирај\",\n};\n\nsurveyLocalization.locales[\"mk\"] = macedonianSurveyStrings;\nsurveyLocalization.localeNames[\"mk\"] = \"Македонски\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var norwegianSurveyStrings = {\n pagePrevText: \"Forrige\",\n pageNextText: \"Neste\",\n completeText: \"Fullfør\",\n previewText: \"Forhåndsvisning\",\n editText: \"Redigere\",\n startSurveyText: \"Start\",\n otherItemText: \"Annet (beskriv)\",\n noneItemText: \"Ingen\",\n selectAllItemText: \"Velg alle\",\n progressText: \"Side {0} av {1}\",\n panelDynamicProgressText: \"Ta opp {0} av {1}\",\n questionsProgressText: \"Besvarte {0} / {1} spørsmål\",\n emptySurvey: \"Det er ingen synlig side eller spørsmål i undersøkelsen.\",\n completingSurvey: \"Takk for at du fullførte undersøkelsen!\",\n completingSurveyBefore:\n \"Våre data viser at du allerede har gjennomført denne undersøkelsen.\",\n loadingSurvey: \"Undersøkelsen laster...\",\n optionsCaption: \"Velg...\",\n value: \"verdi\",\n requiredError: \"Vennligst svar på spørsmålet.\",\n requiredErrorInPanel: \"Vennligst svar på minst ett spørsmål.\",\n requiredInAllRowsError: \"Vennligst svar på spørsmål i alle rader.\",\n numericError: \"Verdien skal være numerisk.\",\n textMinLength: \"Vennligst skriv inn minst {0} tegn.\",\n textMaxLength: \"Vennligst skriv inn mindre enn {0} tegn.\",\n textMinMaxLength: \"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.\",\n minRowCountError: \"Vennligst fyll inn minst {0} rader.\",\n minSelectError: \"Vennligst velg minst {0} varianter.\",\n maxSelectError: \"Vennligst ikke velg mer enn {0} varianter.\",\n numericMinMax:\n \"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}\",\n numericMin: \"'{0}' bør være lik eller mer enn {1}\",\n numericMax: \"'{0}' bør være lik eller mindre enn {1}\",\n invalidEmail: \"Vennligst skriv inn en gyldig e-post adresse.\",\n invalidExpression: \"Uttrykket: {0} skal returnere 'sant'.\",\n urlRequestError: \"Forespørselen returnerte feilen '{0}'. {1}\",\n urlGetChoicesError:\n \"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil\",\n exceedMaxSize: \"Filstørrelsen bør ikke overstige {0}.\",\n otherRequiredError: \"Vennligst skriv inn den andre verdien.\",\n uploadingFile:\n \"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.\",\n loadingFile: \"Laster inn ...\",\n chooseFile: \"Velg fil (er) ...\",\n noFileChosen: \"Ingen fil valgt\",\n confirmDelete: \"Ønsker du å slette posten?\",\n keyDuplicationError: \"Denne verdien skal være unik.\",\n addColumn: \"Legg til kolonne\",\n addRow: \"Legg til rad\",\n removeRow: \"Fjern\",\n addPanel: \"Legg til ny\",\n removePanel: \"Fjerne\",\n choices_Item: \"element\",\n matrix_column: \"Kolonne\",\n matrix_row: \"Rad\",\n savingData: \"Resultatene lagres på serveren ...\",\n savingDataError: \"Det oppsto en feil, og vi kunne ikke lagre resultatene.\",\n savingDataSuccess: \"Resultatene ble lagret!\",\n saveAgainButton: \"Prøv igjen\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Du har tilbrakt {0} på denne siden og {1} totalt.\",\n timerSpentPage: \"Du har tilbrakt {0} på denne siden.\",\n timerSpentSurvey: \"Du har tilbrakt {0} totalt.\",\n timerLimitAll:\n \"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.\",\n timerLimitPage: \"Du har tilbrakt {0} av {1} på denne siden.\",\n timerLimitSurvey: \"Du har tilbrakt {0} av {1} totalt.\",\n cleanCaption: \"Rens\",\n clearCaption: \"Klar\",\n chooseFileCaption: \"Velg Fil\",\n removeFileCaption: \"Fjern denne filen\",\n booleanCheckedLabel: \"Ja\",\n booleanUncheckedLabel: \"Nei\",\n confirmRemoveFile: \"Er du sikker på at du vil fjerne denne filen: {0}?\",\n confirmRemoveAllFiles: \"Er du sikker på at du vil fjerne alle filene?\",\n questionTitlePatternText: \"Spørsmålstittel\",\n};\n\nsurveyLocalization.locales[\"no\"] = norwegianSurveyStrings;\nsurveyLocalization.localeNames[\"no\"] = \"norsk\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var persianSurveyStrings = {\n pagePrevText: \"قبلی\",\n pageNextText: \"بعدی\",\n completeText: \"تکمیل\",\n previewText: \"پیش نمایش\",\n editText: \"ویرایش\",\n startSurveyText: \"شروع\",\n otherItemText: \"دیگر(توضیح)\",\n noneItemText: \"هیچ\",\n selectAllItemText: \"انتخاب همه\",\n progressText: \"صفحه {0} از {1}\",\n panelDynamicProgressText: \"مورد {0} از {1}\",\n questionsProgressText: \"تعداد پاسخ {0}/{1} سوال\",\n emptySurvey: \"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.\",\n completingSurvey: \"از شما بابت تکمیل این پرسشنامه متشکریم\",\n completingSurveyBefore:\n \"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.\",\n loadingSurvey: \"درحال ایجاد پرسشنامه\",\n optionsCaption: \"انتخاب کنید...\",\n value: \"مقدار\",\n requiredError: \"لطفا به سوال پاسخ دهید\",\n requiredErrorInPanel: \"لطفا حداقل به یک سوال پاسخ دهید.\",\n requiredInAllRowsError: \"لطفا سوالات تمام سطرها را پاسخ دهید.\",\n numericError: \"مقدار باید عددی باشد\",\n textMinLength: \"لطفا حداقل {0} حرف وارد کنید\",\n textMaxLength: \"لطفا کمتر از {0} حرف وارد کنید.\",\n textMinMaxLength: \"لطفا بیشتر از {0} حرف و کمتر از {1} حرف وارد کنید.\",\n minRowCountError: \"لطفا حداقل {0} سطر وارد کنید.\",\n minSelectError: \"حداقل {0} انتخاب کنید.\",\n maxSelectError: \"لطفا بیشتر از {0} انتخاب کنید.\",\n numericMinMax:\n \"'{0}' باید بین {1} و {2} باشد\",\n numericMin: \"'{0}' بزرگتر مساوی {1} باشد\",\n numericMax: \"'{0}' باید کوچکتر یا مساوی {1} باشد\",\n invalidEmail: \"لطفا ایمیل صحیح درج کنید\",\n invalidExpression: \"عبارت: {0} پاسخ باید 'true' باشد.\",\n urlRequestError: \"درخواست با خطا روبرو شد: '{0}'. {1}\",\n urlGetChoicesError:\n \"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده\",\n exceedMaxSize: \"بیشترین حجم مجاز فایل: {0}\",\n otherRequiredError: \"مقدار 'دیگر' را وارد کنید\",\n uploadingFile:\n \"فایل در حال آیلود است. لطفا صبر کنید.\",\n loadingFile: \"بارگیری...\",\n chooseFile: \"انتخاب فایل(ها)...\",\n noFileChosen: \"هیچ فایلی انتخاب نشده\",\n confirmDelete: \"آیا مایل به حذف این ردیف هستید؟\",\n keyDuplicationError: \"این مقدار باید غیر تکراری باشد\",\n addColumn: \"ستون جدید\",\n addRow: \"سطر جدید\",\n removeRow: \"حذف\",\n addPanel: \"جدید\",\n removePanel: \"حذف\",\n choices_Item: \"آیتم\",\n matrix_column: \"ستون\",\n matrix_row: \"سطر\",\n savingData: \"نتایج در حال ذخیره سازی در سرور است\",\n savingDataError: \"خطایی در ذخیره سازی نتایج رخ داده است\",\n savingDataSuccess: \"نتایج با موفقیت ذخیره شد\",\n saveAgainButton: \"مجدد تلاش کنید\",\n timerMin: \"دقیقه\",\n timerSec: \"ثانیه\",\n timerSpentAll: \"شما مدت {0} در این صفحه و مدت {1} را در مجموع سپری کرده اید.\",\n timerSpentPage: \"شما مدت {0} را در این صفحه سپری کرده اید.\",\n timerSpentSurvey: \"شما مدت {0} را در مجموع سپری کرده اید.\",\n timerLimitAll:\n \"شما مدت {0} از {1} در این صفحه و مدت {2} از {3} را در مجموع سپری کرده اید.\",\n timerLimitPage: \"شما مدت {0} از {1} را در این صفحه سپری کرده اید.\",\n timerLimitSurvey: \"شما مدت {0} از {1} را در مجموع سپری کرده اید.\",\n cleanCaption: \"پاکسازی\",\n clearCaption: \"خالی کردن\",\n chooseFileCaption: \"انتخاب فایل\",\n removeFileCaption: \"حذف این فایل\",\n booleanCheckedLabel: \"بله\",\n booleanUncheckedLabel: \"خیر\",\n confirmRemoveFile: \"آیا میخواهید این فایل را پاک کنید: {0}?\",\n confirmRemoveAllFiles: \"آیا میخواهید تمام فایل ها را پاک کنید?\",\n questionTitlePatternText: \"عنوان سوال\",\n};\n\nsurveyLocalization.locales[\"fa\"] = persianSurveyStrings;\nsurveyLocalization.localeNames[\"fa\"] = \"فارْسِى\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var polishSurveyStrings = {\n pagePrevText: \"Wstecz\",\n pageNextText: \"Dalej\",\n completeText: \"Gotowe\",\n previewText: \"Premiera\",\n editText: \"Edycja\",\n startSurveyText: \"Start\",\n otherItemText: \"Inna odpowiedź (wpisz)\",\n noneItemText: \"Brak\",\n selectAllItemText: \"Wybierz wszystkie\",\n progressText: \"Strona {0} z {1}\",\n panelDynamicProgressText: \"Zapis {0} z {1}\",\n questionsProgressText: \"Odpowiedzi na {0}/{1} pytania\",\n emptySurvey: \"Nie ma widocznych pytań.\",\n completingSurvey: \"Dziękujemy za wypełnienie ankiety!\",\n completingSurveyBefore:\n \"Z naszych zapisów wynika, że wypełniłeś już tę ankietę.\",\n loadingSurvey: \"Trwa wczytywanie ankiety...\",\n optionsCaption: \"Wybierz...\",\n value: \"Wartość\",\n requiredError: \"Proszę odpowiedzieć na to pytanie.\",\n requiredErrorInPanel: \"Proszę odpowiedzieć na co najmniej jedno pytanie.\",\n requiredInAllRowsError: \"Proszę odpowiedzieć na wszystkie pytania.\",\n numericError: \"W tym polu można wpisać tylko liczby.\",\n textMinLength: \"Proszę wpisać co najmniej {0} znaków.\",\n textMaxLength: \"Proszę wpisać mniej niż {0} znaków.\",\n textMinMaxLength: \"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.\",\n minRowCountError: \"Proszę uzupełnić przynajmniej {0} wierszy.\",\n minSelectError: \"Proszę wybrać co najmniej {0} pozycji.\",\n maxSelectError: \"Proszę wybrać nie więcej niż {0} pozycji.\",\n numericMinMax:\n \"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}\",\n numericMin: \"Odpowiedź '{0}' powinna być większa lub równa {1}\",\n numericMax: \"Odpowiedź '{0}' powinna być mniejsza lub równa {1}\",\n invalidEmail: \"Proszę podać prawidłowy adres email.\",\n invalidExpression: \"Wyrażenie: {0} powinno wracać 'prawdziwe'.\",\n urlRequestError: \"Żądanie zwróciło błąd '{0}'. {1}\",\n urlGetChoicesError:\n \"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa\",\n exceedMaxSize: \"Rozmiar przesłanego pliku nie może przekraczać {0}.\",\n otherRequiredError: \"Proszę podać inną odpowiedź.\",\n uploadingFile:\n \"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.\",\n loadingFile: \"Ładowanie...\",\n chooseFile: \"Wybierz plik(i)...\",\n noFileChosen: \"Nie wybrano żadnego pliku\",\n confirmDelete: \"Chcesz skasować nagranie?\",\n keyDuplicationError: \"Ta wartość powinna być wyjątkowa.\",\n addColumn: \"Dodaj kolumnę\",\n addRow: \"Dodaj wiersz\",\n removeRow: \"Usuń\",\n addPanel: \"Dodaj panel\",\n removePanel: \"Usuń\",\n choices_Item: \"element\",\n matrix_column: \"Kolumna\",\n matrix_row: \"Wiersz\",\n savingData: \"Zapisuję wyniki ankiety na serwerze...\",\n savingDataError: \"Wystąpił błąd i wyniki nie mogły zostać zapisane.\",\n savingDataSuccess: \"Wyniki zostały poprawnie zapisane!\",\n saveAgainButton: \"Spróbuj ponownie\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Spędziłeś {0} na tej stronie a w sumie {1}.\",\n timerSpentPage: \"Spędziłeś {0} na tej stronie.\",\n timerSpentSurvey: \"Spędziłeś w sumie {0}.\",\n timerLimitAll: \"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.\",\n timerLimitPage: \"Spędziłeś {0} z {1} na tej stronie\",\n timerLimitSurvey: \"Spędziłeś {0} z {1}.\",\n cleanCaption: \"Wyczyść\",\n clearCaption: \"Jasne\",\n chooseFileCaption: \"Wybierz plik\",\n removeFileCaption: \"Usuń ten plik\",\n booleanCheckedLabel: \"Tak\",\n booleanUncheckedLabel: \"Nie\",\n confirmRemoveFile: \"Jesteś pewien, że chcesz usunąć ten plik: {0}?\",\n confirmRemoveAllFiles: \"Jesteś pewien, że chcesz usunąć wszystkie pliki?\",\n questionTitlePatternText: \"Tytuł pytania\",\n};\n\nsurveyLocalization.locales[\"pl\"] = polishSurveyStrings;\nsurveyLocalization.localeNames[\"pl\"] = \"polski\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var portugueseBrSurveyStrings = {\n pagePrevText: \"Anterior\",\n pageNextText: \"Próximo\",\n completeText: \"Finalizar\",\n previewText: \"Pré-visualização\",\n editText: \"Editar\",\n startSurveyText: \"Começar\",\n otherItemText: \"Outros (descrever)\",\n noneItemText: \"Nenhum\",\n selectAllItemText: \"Selecionar Todos\",\n progressText: \"Página {0} de {1}\",\n panelDynamicProgressText: \"Registro {0} de {1}\",\n questionsProgressText: \"Respostas {0}/{1} perguntas\",\n emptySurvey: \"Não há página visível ou pergunta na pesquisa.\",\n completingSurvey: \"Obrigado por finalizar a pesquisa!\",\n completingSurveyBefore:\n \"Nossos registros mostram que você já finalizou a pesquisa.\",\n loadingSurvey: \"A pesquisa está carregando...\",\n optionsCaption: \"Selecione...\",\n value: \"valor\",\n requiredError: \"Por favor, responda a pergunta.\",\n requiredErrorInPanel: \"Por favor, responda pelo menos uma pergunta.\",\n requiredInAllRowsError:\n \"Por favor, responda as perguntas em todas as linhas.\",\n numericError: \"O valor deve ser numérico.\",\n textMinLength: \"Por favor, insira pelo menos {0} caracteres.\",\n textMaxLength: \"Por favor, insira menos de {0} caracteres.\",\n textMinMaxLength: \"Por favor, insira mais de {0} e menos de {1} caracteres.\",\n minRowCountError: \"Preencha pelo menos {0} linhas.\",\n minSelectError: \"Selecione pelo menos {0} opções.\",\n maxSelectError: \"Por favor, selecione não mais do que {0} opções.\",\n numericMinMax:\n \"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}\",\n numericMin: \"O '{0}' deve ser igual ou superior a {1}\",\n numericMax: \"O '{0}' deve ser igual ou inferior a {1}\",\n invalidEmail: \"Por favor, informe um e-mail válido.\",\n invalidExpression: \"A expressão: {0} deve retornar 'verdadeiro'.\",\n urlRequestError: \"A requisição retornou o erro '{0}'. {1}\",\n urlGetChoicesError:\n \"A requisição não retornou dados ou o 'caminho' da requisição não está correto\",\n exceedMaxSize: \"O tamanho do arquivo não deve exceder {0}.\",\n otherRequiredError: \"Por favor, informe o outro valor.\",\n uploadingFile:\n \"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.\",\n loadingFile: \"Carregando...\",\n chooseFile: \"Selecione o(s) arquivo(s)...\",\n noFileChosen: \"Nenhum arquivo escolhido\",\n confirmDelete: \"Tem certeza que deseja deletar?\",\n keyDuplicationError: \"Esse valor deve ser único.\",\n addColumn: \"Adicionar coluna\",\n addRow: \"Adicionar linha\",\n removeRow: \"Remover linha\",\n addPanel: \"Adicionar novo\",\n removePanel: \"Remover\",\n choices_Item: \"item\",\n matrix_column: \"Coluna\",\n matrix_row: \"Linha\",\n savingData: \"Os resultados esto sendo salvos no servidor...\",\n savingDataError: \"Ocorreu um erro e não foi possível salvar os resultados.\",\n savingDataSuccess: \"Os resultados foram salvos com sucesso!\",\n saveAgainButton: \"Tente novamente\",\n timerMin: \"min\",\n timerSec: \"seg\",\n timerSpentAll: \"Você gastou {0} nesta página e {1} no total.\",\n timerSpentPage: \"Você gastou {0} nesta página.\",\n timerSpentSurvey: \"Você gastou {0} no total.\",\n timerLimitAll: \"Você gastou {0} de {1} nesta página e {2} de {3} no total.\",\n timerLimitPage: \"Você gastou {0} de {1} nesta página.\",\n timerLimitSurvey: \"Você gastou {0} de {1} no total.\",\n cleanCaption: \"Limpar\",\n clearCaption: \"Limpar\",\n chooseFileCaption: \"Escolher arquivo\",\n removeFileCaption: \"Remover este arquivo\",\n booleanCheckedLabel: \"Sim\",\n booleanUncheckedLabel: \"Não\",\n confirmRemoveFile: \"Tem certeza que deseja remover este arquivo: {0}?\",\n confirmRemoveAllFiles: \"Tem certeza que deseja remover todos os arquivos?\",\n questionTitlePatternText: \"Título da questão\",\n};\n\nsurveyLocalization.locales[\"pt-br\"] = portugueseBrSurveyStrings;\nsurveyLocalization.localeNames[\"pt-br\"] = \"português brasileiro\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var portugueseSurveyStrings = {\n pagePrevText: \"Anterior\",\n pageNextText: \"Próximo\",\n completeText: \"Finalizar\",\n previewText: \"Pré-visualização\",\n editText: \"Editar\",\n startSurveyText: \"Começar\",\n otherItemText: \"Outros (descrever)\",\n noneItemText: \"Nenhum\",\n selectAllItemText: \"Selecionar Todos\",\n progressText: \"Página {0} de {1}\",\n panelDynamicProgressText: \"Registro {0} de {1}\",\n questionsProgressText: \"Respostas {0}/{1} perguntas\",\n emptySurvey: \"Não há página visível ou pergunta na pesquisa.\",\n completingSurvey: \"Obrigado por finalizar a pesquisa!\",\n completingSurveyBefore:\n \"Nossos registros mostram que você já finalizou a pesquisa.\",\n loadingSurvey: \"A pesquisa está carregando...\",\n optionsCaption: \"Selecione...\",\n value: \"valor\",\n requiredError: \"Por favor, responda a pergunta.\",\n requiredErrorInPanel: \"Por favor, responda pelo menos uma pergunta.\",\n requiredInAllRowsError:\n \"Por favor, responda as perguntas em todas as linhas.\",\n numericError: \"O valor deve ser numérico.\",\n textMinLength: \"Por favor, insira pelo menos {0} caracteres.\",\n textMaxLength: \"Por favor, insira menos de {0} caracteres.\",\n textMinMaxLength: \"Por favor, insira mais de {0} e menos de {1} caracteres.\",\n minRowCountError: \"Preencha pelo menos {0} linhas.\",\n minSelectError: \"Selecione pelo menos {0} opções.\",\n maxSelectError: \"Por favor, selecione não mais do que {0} opções.\",\n numericMinMax:\n \"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}\",\n numericMin: \"O '{0}' deve ser igual ou superior a {1}\",\n numericMax: \"O '{0}' deve ser igual ou inferior a {1}\",\n invalidEmail: \"Por favor, informe um e-mail válido.\",\n invalidExpression: \"A expressão: {0} deve retornar 'verdadeiro'.\",\n urlRequestError: \"A requisição retornou o erro '{0}'. {1}\",\n urlGetChoicesError:\n \"A requisição não retornou dados ou o 'caminho' da requisição não está correto\",\n exceedMaxSize: \"O tamanho do arquivo não deve exceder {0}.\",\n otherRequiredError: \"Por favor, informe o outro valor.\",\n uploadingFile:\n \"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.\",\n loadingFile: \"Carregando...\",\n chooseFile: \"Selecione o(s) arquivo(s)...\",\n noFileChosen: \"Nenhum ficheiro escolhido\",\n confirmDelete: \"Tem certeza que deseja deletar?\",\n keyDuplicationError: \"Esse valor deve ser único.\",\n addColumn: \"Adicionar coluna\",\n addRow: \"Adicionar linha\",\n removeRow: \"Remover linha\",\n addPanel: \"Adicionar novo\",\n removePanel: \"Remover\",\n choices_Item: \"item\",\n matrix_column: \"Coluna\",\n matrix_row: \"Linha\",\n savingData: \"Os resultados esto sendo salvos no servidor...\",\n savingDataError: \"Ocorreu um erro e não foi possível salvar os resultados.\",\n savingDataSuccess: \"Os resultados foram salvos com sucesso!\",\n saveAgainButton: \"Tente novamente\",\n timerMin: \"min\",\n timerSec: \"seg\",\n timerSpentAll: \"Você gastou {0} nesta página e {1} no total.\",\n timerSpentPage: \"Você gastou {0} nesta página.\",\n timerSpentSurvey: \"Você gastou {0} no total.\",\n timerLimitAll: \"Você gastou {0} de {1} nesta página e {2} de {3} no total.\",\n timerLimitPage: \"Você gastou {0} de {1} nesta página.\",\n timerLimitSurvey: \"Você gastou {0} de {1} no total.\",\n cleanCaption: \"Limpar\",\n clearCaption: \"Limpar\",\n chooseFileCaption: \"Escolher ficheiro\",\n removeFileCaption: \"Remover este arquivo\",\n booleanCheckedLabel: \"Sim\",\n booleanUncheckedLabel: \"Não\",\n confirmRemoveFile: \"Tem certeza que deseja remover este arquivo: {0}?\",\n confirmRemoveAllFiles: \"Tem certeza que deseja remover todos os arquivos?\",\n questionTitlePatternText: \"Título da questão\",\n};\n\nsurveyLocalization.locales[\"pt\"] = portugueseSurveyStrings;\nsurveyLocalization.localeNames[\"pt\"] = \"português\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var romanianSurveyStrings: any = {\n pagePrevText: \"Precedent\",\n pageNextText: \"Următor\",\n completeText: \"Finalizare\",\n previewText: \"previzualizare\",\n editText: \"Editați\",\n startSurveyText: \"start\",\n otherItemText: \"Altul(precizaţi)\",\n noneItemText: \"Nici unul\",\n selectAllItemText: \"Selectează tot\",\n progressText: \"Pagina {0} din {1}\",\n panelDynamicProgressText: \"Înregistrare {0} din {1}\",\n questionsProgressText: \"Răspunsuri la {0} / {1} întrebări\",\n emptySurvey: \"Nu sunt întrebări pentru acest chestionar\",\n completingSurvey: \"Vă mulţumim pentru timpul acordat!\",\n completingSurveyBefore:\n \"Din înregistrările noastre reiese că ați completat deja acest chestionar.\",\n loadingSurvey: \"Chestionarul se încarcă...\",\n optionsCaption: \"Alegeţi...\",\n value: \"valoare\",\n requiredError: \"Răspunsul la această întrebare este obligatoriu.\",\n requiredErrorInPanel: \"Vă rugăm să răspundeți la cel puțin o întrebare.\",\n requiredInAllRowsError: \"Toate răspunsurile sunt obligatorii\",\n numericError: \"Răspunsul trebuie să fie numeric.\",\n textMinLength: \"Trebuie să introduceți minim {0} caractere.\",\n textMaxLength: \"Trebuie să introduceți maxim {0} caractere.\",\n textMinMaxLength:\n \"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.\",\n minRowCountError: \"Trebuie să completați minim {0} rânduri.\",\n minSelectError: \"Trebuie să selectați minim {0} opţiuni.\",\n maxSelectError: \"Trebuie să selectați maxim {0} opţiuni.\",\n numericMinMax:\n \"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}\",\n numericMin: \"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}\",\n numericMax: \"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}\",\n invalidEmail: \"Trebuie să introduceţi o adresa de email validă.\",\n invalidExpression: \"Expresia: {0} ar trebui să returneze „adevărat”.\",\n urlRequestError: \"Request-ul a returnat eroarea '{0}'. {1}\",\n urlGetChoicesError:\n \"Request-ul nu a returnat date sau proprietatea 'path' este incorectă\",\n exceedMaxSize: \"Dimensiunea fişierului nu trebuie să depăşească {0}.\",\n otherRequiredError: \"Trebuie să completați câmpul 'Altul'.\",\n uploadingFile:\n \"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.\",\n loadingFile: \"Se încarcă...\",\n chooseFile: \"Alege fisierele...\",\n noFileChosen: \"Niciun fișier ales\",\n confirmDelete: \"Sunteți sigur că doriți să ștergeți înregistrarea?\",\n keyDuplicationError: \"Valoarea trebuie să fie unică.\",\n addColumn: \"Adăugați coloană\",\n addRow: \"Adăugare rând\",\n removeRow: \"Ștergere\",\n addPanel: \"Adăugare\",\n removePanel: \"Ștergere\",\n choices_Item: \"opțiune\",\n matrix_column: \"Coloană\",\n matrix_row: \"Rând\",\n savingData: \"Rezultatele sunt în curs de salvare...\",\n savingDataError: \"A intervenit o eroare, rezultatele nu au putut fi salvate.\",\n savingDataSuccess: \"Rezultatele au fost salvate cu succes!\",\n saveAgainButton: \"Încercați din nou\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Ați petrecut {0} pe această pagină și {1} în total.\",\n timerSpentPage: \"Ați petrecut {0} pe această pagină.\",\n timerSpentSurvey: \"Ați petrecut {0} în total.\",\n timerLimitAll:\n \"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.\",\n timerLimitPage: \"Ați petrecut {0} din {1} pe această pagină.\",\n timerLimitSurvey: \"Ați petrecut {0} din {1} în total.\",\n cleanCaption: \"Curat\",\n clearCaption: \"clar\",\n chooseFileCaption: \"Alege fișierul\",\n removeFileCaption: \"Eliminați acest fișier\",\n booleanCheckedLabel: \"da\",\n booleanUncheckedLabel: \"Nu\",\n confirmRemoveFile: \"Sigur doriți să eliminați acest fișier: {0}?\",\n confirmRemoveAllFiles: \"Sigur doriți să eliminați toate fișierele?\",\n questionTitlePatternText: \"Titlul intrebarii\",\n};\n\nsurveyLocalization.locales[\"ro\"] = romanianSurveyStrings;\nsurveyLocalization.localeNames[\"ro\"] = \"română\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var russianSurveyStrings = {\n pagePrevText: \"Назад\",\n pageNextText: \"Далее\",\n completeText: \"Готово\",\n previewText: \"Предварительный просмотр\",\n editText: \"Редактирование\",\n startSurveyText: \"Начать\",\n otherItemText: \"Другое (пожалуйста, опишите)\",\n noneItemText: \"Нет\",\n selectAllItemText: \"Выбрать всё\",\n progressText: \"Страница {0} из {1}\",\n panelDynamicProgressText: \"Запись {0} из {1}\",\n questionsProgressText: \"Ответы на {0}/{1}вопросы\",\n emptySurvey: \"Нет ни одного вопроса.\",\n completingSurvey: \"Благодарим Вас за заполнение анкеты!\",\n completingSurveyBefore:\n \"Вы уже проходили этот опрос.\",\n loadingSurvey: \"Загрузка с сервера...\",\n optionsCaption: \"Выбрать...\",\n value: \"значение\",\n requiredError: \"Пожалуйста, ответьте на вопрос.\",\n requiredErrorInPanel: \"Пожалуйста, ответьте по крайней мере на один вопрос.\",\n requiredInAllRowsError: \"Пожалуйста, ответьте на вопросы в каждой строке.\",\n numericError: \"Ответ должен быть числом.\",\n textMinLength: \"Пожалуйста введите больше {0} символов.\",\n textMaxLength: \"Пожалуйста введите меньше {0} символов.\",\n textMinMaxLength: \"Пожалуйста введите больше {0} и меньше {1} символов.\",\n minRowCountError: \"Пожалуйста, заполните не меньше {0} строк.\",\n minSelectError: \"Пожалуйста, выберите хотя бы {0} вариантов.\",\n maxSelectError: \"Пожалуйста, выберите не более {0} вариантов.\",\n numericMinMax:\n \"'{0}' должно быть не меньше чем {1}, и не больше чем {2}\",\n numericMin: \"'{0}' должно быть не меньше чем {1}\",\n numericMax: \"'{0}' должно быть не больше чем {1}\",\n invalidEmail: \"Пожалуйста, введите действительный адрес электронной почты.\",\n invalidExpression: \"Выражение {0} должно возвращать 'true'.\",\n urlRequestError: \"Запрос вернул ошибку '{0}'. {1}\",\n urlGetChoicesError:\n \"Ответ на запрос пришел пустой или свойство 'path' указано неверно\",\n exceedMaxSize: \"Размер файла не должен превышать {0}.\",\n otherRequiredError: \"Пожалуйста, введите данные в поле 'Другое'\",\n uploadingFile:\n \"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.\",\n loadingFile: \"Загрузка...\",\n chooseFile: \"Выберите файл(ы)...\",\n noFileChosen: \"Файл не выбран\",\n confirmDelete: \"Вы точно хотите удалить запись?\",\n keyDuplicationError: \"Это значение должно быть уникальным.\",\n addColumn: \"Добавить колонку\",\n addRow: \"Добавить строку\",\n removeRow: \"Удалить\",\n addPanel: \"Добавить новую\",\n removePanel: \"Удалить\",\n choices_Item: \"Вариант\",\n matrix_column: \"Колонка\",\n matrix_row: \"Строка\",\n savingData: \"Результаты сохраняются на сервер...\",\n savingDataError: \"Произошла ошибка, результат не был сохранён.\",\n savingDataSuccess: \"Результат успешно сохранён!\",\n saveAgainButton: \"Попробовать снова\",\n timerMin: \"мин\",\n timerSec: \"сек\",\n timerSpentAll: \"Вы потратили {0} на этой странице и {1} всего.\",\n timerSpentPage: \"Вы потратили {0} на этой странице.\",\n timerSpentSurvey: \"Вы потратили {0} в течение теста.\",\n timerLimitAll:\n \"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.\",\n timerLimitPage: \"Вы потратили {0} из {1} на этой странице.\",\n timerLimitSurvey: \"Вы потратили {0} из {1} для всего теста.\",\n cleanCaption: \"Очистить\",\n clearCaption: \"Очистить\",\n chooseFileCaption: \"Выберите файл\",\n removeFileCaption: \"Удалить файл\",\n booleanCheckedLabel: \"Да\",\n booleanUncheckedLabel: \"Нет\",\n confirmRemoveFile: \"Вы уверены, что хотите удалить этот файл: {0}?\",\n confirmRemoveAllFiles: \"Вы уверены, что хотите удалить все файлы?\",\n questionTitlePatternText: \"Название вопроса\",\n};\n\nsurveyLocalization.locales[\"ru\"] = russianSurveyStrings;\nsurveyLocalization.localeNames[\"ru\"] = \"русский\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var simplifiedChineseSurveyStrings = {\n pagePrevText: \"上一页\",\n pageNextText: \"下一页\",\n completeText: \"提交问卷\",\n previewText: \"预览\",\n editText: \"编辑\",\n startSurveyText: \"开始问卷\",\n otherItemText: \"填写其他答案\",\n noneItemText: \"无\",\n selectAllItemText: \"选择全部\",\n progressText: \"第 {0} 页, 共 {1} 页\",\n panelDynamicProgressText: \"{0} of {1}\",\n questionsProgressText: \"第 {0}/{1} 题\",\n emptySurvey: \"问卷中没有问题或页面\",\n completingSurvey: \"感谢您的参与!\",\n completingSurveyBefore: \"你已完成问卷.\",\n loadingSurvey: \"问卷正在加载中...\",\n optionsCaption: \"请选择...\",\n value: \"值\",\n requiredError: \"请填写此问题\",\n requiredErrorInPanel: \"至少回答一题.\",\n requiredInAllRowsError: \"请填写所有行中问题\",\n numericError: \"答案必须是个数字\",\n textMinLength: \"答案长度至少 {0} 个字符\",\n textMaxLength: \"答案长度不能超过 {0} 个字符\",\n textMinMaxLength: \"答案长度必须在 {0} - {1} 个字符之间\",\n minRowCountError: \"最少需要填写 {0} 行答案\",\n minSelectError: \"最少需要选择 {0} 项答案\",\n maxSelectError: \"最多只能选择 {0} 项答案\",\n numericMinMax: \"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}\",\n numericMin: \"答案 '{0}' 必须大于等于 {1}\",\n numericMax: \"答案 '{0}' 必须小于等于 {1}\",\n invalidEmail: \"请输入有效的 Email 地址\",\n invalidExpression: \"公式: {0} 无效.\",\n urlRequestError: \"载入选项时发生错误 '{0}': {1}\",\n urlGetChoicesError: \"未能载入有效的选项或请求参数路径有误\",\n exceedMaxSize: \"文件大小不能超过 {0}\",\n otherRequiredError: \"请完成其他问题\",\n uploadingFile: \"文件上传中... 请耐心等待几秒后重试\",\n loadingFile: \"加载...\",\n chooseFile: \"选择文件...\",\n noFileChosen: \"未选择文件\",\n confirmDelete: \"删除记录?\",\n keyDuplicationError: \"主键不能重复\",\n addColumn: \"添加列\",\n addRow: \"添加行\",\n removeRow: \"删除答案\",\n addPanel: \"新添\",\n removePanel: \"删除\",\n choices_Item: \"选项\",\n matrix_column: \"列\",\n matrix_row: \"行\",\n savingData: \"正在将结果保存到服务器...\",\n savingDataError: \"在保存结果过程中发生了错误,结果未能保存\",\n savingDataSuccess: \"结果保存成功!\",\n saveAgainButton: \"请重试\",\n timerMin: \"分\",\n timerSec: \"秒\",\n timerSpentAll: \"本页用时 {0} 总计用时{1} .\",\n timerSpentPage: \"本页用时{0} .\",\n timerSpentSurvey: \"总计用时 {0} .\",\n timerLimitAll:\n \"本页用时 {0} 共 {1}, 总计用时 {2} 共 {3} .\",\n timerLimitPage: \"本页用时 {0} 共 {1} .\",\n timerLimitSurvey: \"总计用时 {0} 共 {1}.\",\n cleanCaption: \"清理\",\n clearCaption: \"清除\",\n chooseFileCaption: \"选择文件\",\n removeFileCaption: \"移除文件\",\n booleanCheckedLabel: \"是\",\n booleanUncheckedLabel: \"否\",\n confirmRemoveFile: \"删除文件: {0}?\",\n confirmRemoveAllFiles: \"删除所有文件?\",\n questionTitlePatternText: \"标题\",\n};\n\nsurveyLocalization.locales[\"zh-cn\"] = simplifiedChineseSurveyStrings;\nsurveyLocalization.localeNames[\"zh-cn\"] = \"简体中文\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var spanishSurveyStrings = {\n pagePrevText: \"Anterior\",\n pageNextText: \"Siguiente\",\n completeText: \"Completar\",\n previewText: \"Vista previa\",\n editText: \"Edita\",\n startSurveyText: \"Comienza\",\n otherItemText: \"Otro (describa)\",\n noneItemText: \"Ninguno\",\n selectAllItemText: \"Seleccionar todo\",\n progressText: \"Página {0} de {1}\",\n panelDynamicProgressText: \"Registro {0} de {1}\",\n questionsProgressText: \"Respondió a {0}/{1} preguntas\",\n emptySurvey: \"No hay página visible o pregunta en la encuesta.\",\n completingSurvey: \"Gracias por completar la encuesta!\",\n completingSurveyBefore:\n \"Nuestros registros muestran que ya ha completado esta encuesta.\",\n loadingSurvey: \"La encuesta está cargando...\",\n optionsCaption: \"Seleccione...\",\n value: \"valor\",\n requiredError: \"Por favor conteste la pregunta.\",\n requiredErrorInPanel: \"Por favor, responda al menos una pregunta.\",\n requiredInAllRowsError: \"Por favor conteste las preguntas en cada hilera.\",\n numericError: \"La estimación debe ser numérica.\",\n textMinLength: \"Por favor entre por lo menos {0} símbolos.\",\n textMaxLength: \"Por favor entre menos de {0} símbolos.\",\n textMinMaxLength: \"Por favor entre más de {0} y menos de {1} símbolos.\",\n minRowCountError: \"Por favor llene por lo menos {0} hileras.\",\n minSelectError: \"Por favor seleccione por lo menos {0} variantes.\",\n maxSelectError: \"Por favor seleccione no más de {0} variantes.\",\n numericMinMax:\n \"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}\",\n numericMin: \"El '{0}' debe ser igual o más de {1}\",\n numericMax: \"El '{0}' debe ser igual o menos de {1}\",\n invalidEmail: \"Por favor agregue un correo electrónico válido.\",\n invalidExpression: \"La expresión: {0} debería devolver 'verdadero'.\",\n urlRequestError: \"La solicitud regresó error '{0}'. {1}\",\n urlGetChoicesError:\n \"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta\",\n exceedMaxSize: \"El tamaño del archivo no debe de exceder {0}.\",\n otherRequiredError: \"Por favor agregue la otra estimación.\",\n uploadingFile:\n \"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.\",\n loadingFile: \"Cargando...\",\n chooseFile: \"Elija archivo(s)...\",\n noFileChosen: \"No se ha elegido ningún archivo\",\n confirmDelete: \"¿Quieres borrar el registro?\",\n keyDuplicationError: \"Este valor debe ser único.\",\n addColumn: \"Añadir columna\",\n addRow: \"Agregue una hilera\",\n removeRow: \"Eliminar una hilera\",\n addPanel: \"Añadir nuevo\",\n removePanel: \"Retire\",\n choices_Item: \"artículo\",\n matrix_column: \"Columna\",\n matrix_row: \"Hilera\",\n savingData: \"Los resultados se están guardando en el servidor...\",\n savingDataError: \"Los resultados se están guardando en el servidor...\",\n savingDataSuccess: \"¡Los resultados se guardaron con éxito!\",\n saveAgainButton: \"Inténtalo de nuevo.\",\n timerMin: \"min\",\n timerSec: \"sec\",\n timerSpentAll: \"Has gastado {0} en esta página y {1} en total.\",\n timerSpentPage: \"Usted ha pasado {0} en esta página.\",\n timerSpentSurvey: \"Has gastado en total.\",\n timerLimitAll:\n \"Has gastado {0} de {1} en esta página y {2} de {3} en total.\",\n timerLimitPage: \"Has gastado {0} de {1} en esta página.\",\n timerLimitSurvey: \"Usted ha gastado {0} de {1} en total.\",\n cleanCaption: \"Limpia\",\n clearCaption: \"Despejen\",\n chooseFileCaption: \"Elija el archivo\",\n removeFileCaption: \"Elimina este archivo\",\n booleanCheckedLabel: \"Sí\",\n booleanUncheckedLabel: \"No\",\n confirmRemoveFile: \"¿Estás seguro de que quieres eliminar este archivo: {0}?\",\n confirmRemoveAllFiles: \"¿Estás seguro de que quieres eliminar todos los archivos?\",\n questionTitlePatternText: \"Título de la pregunta\",\n};\n\nsurveyLocalization.locales[\"es\"] = spanishSurveyStrings;\nsurveyLocalization.localeNames[\"es\"] = \"español\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var swahiliStrings = {\n pagePrevText: \"Iliyotangulia\",\n pageNextText: \"Ifuatayo\",\n completeText: \"Kamili\",\n previewText: \"Hakiki\",\n editText: \"Hariri\",\n startSurveyText: \"Anza\",\n otherItemText: \"Nyingine (eleza)\",\n noneItemText: \"Hakuna\",\n selectAllItemText: \"Chagua Zote\",\n progressText: \"Ukurasa {0} wa {1}\",\n panelDynamicProgressText: \"Rekodi {0} ya {1}\",\n questionsProgressText: \"Yaliyojibiwa {0}/{1} maswali\",\n emptySurvey: \"Hakuna ukurasa unaoonekana au swali katika utafiti.\",\n completingSurvey: \"Asanti kwa kukamilisha utafiti!\",\n completingSurveyBefore:\n \"Recodi zetu zinatuonyesha tayari umekamilisha utafiti.\",\n loadingSurvey: \"Tunaandaa utafiti...\",\n optionsCaption: \"Chagua...\",\n value: \"thamani\",\n requiredError: \"Tafadhali jibu hili swali.\",\n requiredErrorInPanel: \"Tafadhali jibu swali angalau moja.\",\n requiredInAllRowsError: \"Tafadhali jibu maswali katika safu zote.\",\n numericError: \"Thamani inapaswa kuwa ya nambari.\",\n textMinLength: \"Tafadhali ingiza angalau{0} husika.\",\n textMaxLength: \"Tafadhali ingiza isiozidi {0} husika.\",\n textMinMaxLength:\n \"Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.\",\n minRowCountError: \"Tafadhali jaza isiopungua {0} safu.\",\n minSelectError: \"Tafadhali chagua angalau {0} lahaja.\",\n maxSelectError: \"Tafadhali changua isiozidi {0} lahaja.\",\n numericMinMax:\n \" '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}\",\n numericMin: \" '{0}'inapaswa kuwa sawa au zaidi ya {1}\",\n numericMax: \" '{0}'inapaswa kuwa sawa au chini ya {1}\",\n invalidEmail: \"Tafadhali ingiza anwani halali ya barua-pepe.\",\n invalidExpression: \"Usemi:{0} inapaswa kurudi 'kweli'.\",\n urlRequestError: \"Ombi lina kosa '{0}'. {1}\",\n urlGetChoicesError:\n \"Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi\",\n exceedMaxSize: \"Saizi ya faili haipaswi kuzidi {0}.\",\n otherRequiredError: \"Tafadhali ingiza thamani nyingine.\",\n uploadingFile:\n \"Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.\",\n loadingFile: \"Inapakia...\",\n chooseFile: \"Chagua faili...\",\n noFileChosen: \"Hujachagua faili\",\n confirmDelete: \"Je! Unataka kufuta rekodi?\",\n keyDuplicationError: \"Thamani hii inapaswa kuwa ya kipekee.\",\n addColumn: \"Ongeza Kolamu\",\n addRow: \"Ongeza safu\",\n removeRow: \"Toa\",\n addPanel: \"Ongeza mpya\",\n removePanel: \"Toa\",\n choices_Item: \"kitu\",\n matrix_column: \"Kolamu\",\n matrix_row: \"Safu\",\n savingData: \"Matokeo yamehifadhiwa kwa seva...\",\n savingDataError: \"Kosa limetokea na hatukuweza kuhifadhi matokeo.\",\n savingDataSuccess: \"Matokeo yamehifadhiwa!\",\n saveAgainButton: \"Jaribu tena\",\n timerMin: \"dakika\",\n timerSec: \"sekunde\",\n timerSpentAll: \"Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.\",\n timerSpentPage: \"Umetumia {0} kwenye ukurasa huu.\",\n timerSpentSurvey: \"Umetumia {0} kwa jumla.\",\n timerLimitAll: \"Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.\",\n timerLimitPage: \"Umetumia {0} ya {1} kwenye ukurasa huu.\",\n timerLimitSurvey: \"Umetumia {0} ya {1} kwa jumla.\",\n cleanCaption: \"Safisha\",\n clearCaption: \"Ondoa\",\n chooseFileCaption: \"Chagua faili\",\n removeFileCaption: \"Ondoa faili\",\n booleanCheckedLabel: \"Ndio\",\n booleanUncheckedLabel: \"Hapana\",\n confirmRemoveFile: \"Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?\",\n confirmRemoveAllFiles: \"Je! Una uhakika kuwa unataka kuondoa faili zote?\",\n questionTitlePatternText: \"Kichwa cha Swali\",\n};\n\nsurveyLocalization.locales[\"sw\"] = swahiliStrings;\nsurveyLocalization.localeNames[\"sw\"] = \"swahili\";\n","//Create by Mattias Asplund\nimport { surveyLocalization } from \"../surveyStrings\";\n\nexport var swedishSurveyStrings = {\n pagePrevText: \"Föregående\",\n pageNextText: \"Nästa\",\n completeText: \"Färdig\",\n previewText: \"Förhandsvisning\",\n editText: \"Redigera\",\n startSurveyText: \"Start\",\n otherItemText: \"Annat (beskriv)\",\n noneItemText: \"Ingen\",\n selectAllItemText: \"Välj alla\",\n progressText: \"Sida {0} av {1}\",\n panelDynamicProgressText: \"Spela in {0} av {1}\",\n questionsProgressText: \"Besvarade {0} / {1} frågor\",\n emptySurvey: \"Det finns ingen synlig sida eller fråga i enkäten.\",\n completingSurvey: \"Tack för att du genomfört enkäten!!\",\n completingSurveyBefore:\n \"Våra register visar att du redan har slutfört denna undersökning.\",\n loadingSurvey: \"Enkäten laddas...\",\n optionsCaption: \"Välj...\",\n value: \"värde\",\n requiredError: \"Var vänlig besvara frågan.\",\n requiredErrorInPanel: \"Vänligen svara på minst en fråga.\",\n requiredInAllRowsError: \"Var vänlig besvara frågorna på alla rader.\",\n numericError: \"Värdet ska vara numeriskt.\",\n textMinLength: \"Var vänlig ange minst {0} tecken.\",\n textMaxLength: \"Ange färre än {0} tecken.\",\n textMinMaxLength: \"Ange mer än {0} och färre än {1} tecken.\",\n minRowCountError: \"Var vänlig fyll i minst {0} rader.\",\n minSelectError: \"Var vänlig välj åtminstone {0} varianter.\",\n maxSelectError: \"Var vänlig välj inte fler än {0} varianter.\",\n numericMinMax:\n \"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}\",\n numericMin: \"'{0}' ska vara lika med eller mer än {1}\",\n numericMax: \"'{0}' ska vara lika med eller mindre än {1}\",\n invalidEmail: \"Var vänlig ange en korrekt e-postadress.\",\n invalidExpression: \"Uttrycket: {0} ska returnera 'true'.\",\n urlRequestError: \"Förfrågan returnerade felet '{0}'. {1}\",\n urlGetChoicesError:\n \"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt\",\n exceedMaxSize: \"Filstorleken får ej överstiga {0}.\",\n otherRequiredError: \"Var vänlig ange det andra värdet.\",\n uploadingFile:\n \"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.\",\n loadingFile: \"Läser in...\",\n chooseFile: \"Välj fil (er) ...\",\n noFileChosen: \"Ingen fil vald\",\n confirmDelete: \"Vill du radera posten?\",\n keyDuplicationError: \"Detta värde ska vara unikt.\",\n addColumn: \"Lägg till kolumn\",\n addRow: \"Lägg till rad\",\n removeRow: \"Ta bort\",\n addPanel: \"Lägg till ny\",\n removePanel: \"Ta bort\",\n choices_Item: \"Artikel\",\n matrix_column: \"Kolumn\",\n matrix_row: \"Rad\",\n savingData: \"Resultaten sparas på servern ...\",\n savingDataError: \"Ett fel inträffade och vi kunde inte spara resultaten.\",\n savingDataSuccess: \"Resultaten sparades framgångsrikt!\",\n saveAgainButton: \"Försök igen\",\n timerMin: \"min\",\n timerSec: \"sek\",\n timerSpentAll: \"Du har spenderat {0} på den här sidan och {1} totalt.\",\n timerSpentPage: \"Du har spenderat {0} på den här sidan.\",\n timerSpentSurvey: \"Du har spenderat {0} totalt.\",\n timerLimitAll:\n \"Du har spenderat {0} av {1} på den här sidan och {2} av {3} totalt.\",\n timerLimitPage: \"Du har spenderat {0} av {1} på den här sidan.\",\n timerLimitSurvey: \"Du har spenderat {0} av {1} totalt.\",\n cleanCaption: \"Rena\",\n clearCaption: \"Klar\",\n chooseFileCaption: \"Välj FIL\",\n removeFileCaption: \"Ta bort den här filen\",\n booleanCheckedLabel: \"Ja\",\n booleanUncheckedLabel: \"Nej\",\n confirmRemoveFile: \"Är du säker på att du vill ta bort den här filen: {0}?\",\n confirmRemoveAllFiles: \"Är du säker på att du vill ta bort alla filer?\",\n questionTitlePatternText: \"Frågetitel\",\n};\n\nsurveyLocalization.locales[\"sv\"] = swedishSurveyStrings;\nsurveyLocalization.localeNames[\"sv\"] = \"svenska\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var tajikSurveyStrings = {\n pagePrevText: \"Бозгашт\",\n pageNextText: \"Оянда\",\n completeText: \"Иҷро шуд\",\n startSurveyText: \"Оғоз\",\n otherItemText: \"Дигар (лутфан тавсиф кунед)\",\n noneItemText: \"Не\",\n selectAllItemText: \"Ҳамаро интихоб кардан\",\n progressText: \"Саҳифаи {0} аз {1}\",\n emptySurvey: \"Ягон савол вуҷуд надорад.\",\n completingSurvey: \"Ташаккур барои пур кардани саволнома!\",\n completingSurveyBefore:\n \"Шумо аллакай ин пурсишро анҷом додаед.\",\n loadingSurvey: \"Боргирӣ аз сервер...\",\n optionsCaption: \"Интихоб кардан...\",\n value: \"қиммат\",\n requiredError: \"Илтимос, ба савол ҷавоб диҳед.\",\n requiredErrorInPanel: \"Илтимос, ақалан ба як савол ҷавоб диҳед.\",\n requiredInAllRowsError: \"Илтимос, ба ҳамаи саволҳо дар ҳамаи сатрҳо ҷавоб диҳед.\",\n numericError: \"Ҷавоб бояд рақам бошад.\",\n textMinLength: \"Илтимос, аз {0} зиёдтар рамз ворид кунед.\",\n textMaxLength: \"Илтимос, аз {0} камтар рамз ворид кунед.\",\n textMinMaxLength: \"Илтимос, аз {0} зиёдтар ва аз {1} камтар рамз ворид кунед.\",\n minRowCountError: \"Илтимос, на камтар аз {0} сатр пур кунед.\",\n minSelectError: \"Илтимос, ақалан {0} вариант интихоб кунед.\",\n maxSelectError: \"Илтимос, на зиёдтар аз {0} вариант интихоб кунед.\",\n numericMinMax:\n \"'{0}' бояд на кам аз {1} ва на бисёр аз {2} бошад\",\n numericMin: \"'{0}' бояд на кам аз {1} бошад\",\n numericMax: \"'{0}' бояд на зиёд аз {1} бошад\",\n invalidEmail: \"Илтимос, почтаи электронии воқеиро ворид кунед.\",\n invalidExpression: \"Ифодаи {0} бояд 'true' баргардонад.\",\n urlRequestError: \"Дархост хатогӣ бозгардонд '{0}'. {1}\",\n urlGetChoicesError:\n \"Ҷавоб ба дархост холӣ омад ё хосияти 'path' нодуруст муайян карда шудааст\",\n exceedMaxSize: \"Андозаи файл бояд на калон аз {0} бошад.\",\n otherRequiredError: \"Илтимос, ба майдони 'Дигар' додаҳоро ворид кунед\",\n uploadingFile:\n \"Файли шумо бор шуда истодааст. Якчанд сония интизор шавед ва бори дигар кӯшиш кунед.\",\n loadingFile: \"Боркунӣ...\",\n chooseFile: \"Файл(ҳо)-ро интихоб кунед...\",\n confirmDelete: \"Шумо мутмаин ҳастед, ки мехоҳед воридро тоза кунед?\",\n keyDuplicationError: \"Ин арзиш бояд беназир бошад.\",\n addColumn: \"Иловаи сутун\",\n addRow: \"Иловаи сатр\",\n removeRow: \"Нест кардан\",\n addPanel: \"Илова кардан\",\n removePanel: \"Нест кардан\",\n choices_Item: \"Вариант\",\n matrix_column: \"Сутун\",\n matrix_row: \"Сатр\",\n savingData: \"Натиҷа ба сервер сабт шуда истодаанд...\",\n savingDataError: \"Хатогӣ ба амал омад, натиҷа сабт нашуд.\",\n savingDataSuccess: \"Натиҷа бомуваффакият сабт шуд!\",\n saveAgainButton: \"Бори дигар кӯшиш карданд\",\n timerMin: \"дақ\",\n timerSec: \"сон\",\n timerSpentAll: \"Шумо {0} дар ин саҳифа ва {1} дар умум сарф кардед.\",\n timerSpentPage: \"Шумо {0} дар ин саҳифа сарф кардед.\",\n timerSpentSurvey: \"Шумо {0} дар ин тест сарф намудед.\",\n timerLimitAll:\n \"Шумо {0} аз {1} дар ин саҳифа ва {2} аз {3} дар умум сарф кардед дар дохили ин тест.\",\n timerLimitPage: \"Шумо {0} аз {1} дар ин саҳифа сарф кардед.\",\n timerLimitSurvey: \"Шумо {0} аз {1} дар ҳамаи тест сарф кардед.\",\n cleanCaption: \"Тоза кардан\",\n clearCaption: \"Тоза кардан\",\n removeFileCaption: \"Файлро нест кардан\"\n};\n\nsurveyLocalization.locales[\"tg\"] = tajikSurveyStrings;\nsurveyLocalization.localeNames[\"tg\"] = \"тоҷикӣ\";\n","//Created by Padet Taweekunkan\nimport { surveyLocalization } from \"../surveyStrings\";\n\nexport var thaiStrings = {\n pagePrevText: \"ก่อนหน้า\",\n pageNextText: \"ถัดไป\",\n completeText: \"สำเร็จ\",\n previewText: \"ดูตัวอย่าง\",\n editText: \"แก้ไข\",\n startSurveyText: \"เริ่ม\",\n otherItemText: \"อื่นๆ (โปรดระบุ)\",\n noneItemText: \"ไม่มี\",\n selectAllItemText: \"เลือกทั้งหมด\",\n progressText: \"หน้าที่ {0} จาก {1}\",\n panelDynamicProgressText: \"รายการที่ {0} จาก {1}\",\n questionsProgressText: \"คำตอบที่ {0}/{1} จำนวนคำถาม\",\n emptySurvey: \"ไม่มีหน้าเพจที่มองเห็น หรือ คำถามใน survey นี้\",\n completingSurvey: \"ขอบคุณที่ทำ survey จนเสร็จ\",\n completingSurveyBefore:\n \"รายการของเราแสดงว่าคุณได้ทำ survey เสร็จเรียบร้อยแล้ว\",\n loadingSurvey: \"กำลังโหลด Survey...\",\n optionsCaption: \"เลือก...\",\n value: \"ข้อมูล\",\n requiredError: \"กรุณาตอบคำถาม\",\n requiredErrorInPanel: \"กรุณาตอบขั้นต่ำหนึ่งคำถาม\",\n requiredInAllRowsError: \"กรุณาตอบคำถามในทุกๆแถว\",\n numericError: \"ข้อมูลที่ใส่ต้องเป็นตัวเลข\",\n textMinLength: \"กรุณาใส่ขั้นต่ำจำนวน {0} ตัวอักษร\",\n textMaxLength: \"กรุณาใส่ไม่เกินจำนวน {0} ตัวอักษร\",\n textMinMaxLength: \"กรุณาใส่ขั้นต่ำจำนวน {0} และไม่เกินจำนวน {1} ตัวอักษร\",\n minRowCountError: \"กรุณาใส่ขั้นต่ำจำนวน {0} แถว\",\n minSelectError: \"กรุณาเลือกอย่างน้อย {0} รายการ\",\n maxSelectError: \"กรุณาเลือกไม่เกิน {0} รายการ\",\n numericMinMax: \"'{0}' ต้องมากกว่าหรือเท่ากับ {1} และน้อยกว่าหรือเท่ากับ {2}\",\n numericMin: \"'{0}' ต้องมากกว่าหรือเท่ากับ {1}\",\n numericMax: \"'{0}' น้อยกว่าหรือเท่ากับ {1}\",\n invalidEmail: \"กรุณาใส่อีเมล์แอดเดรสที่ถูกต้อง\",\n invalidExpression: \"The expression: {0} ต้องรีเทิร์น 'true'.\",\n urlRequestError: \"รีเควสรีเทิร์น error '{0}'. {1}\",\n urlGetChoicesError:\n \"รีเควสรีเทิร์นข้อมูลว่างเปล่า หรือ 'path' property ไม่ถูกต้อง\",\n exceedMaxSize: \"ขนาดไฟล์ต้องไม่เกิน {0}.\",\n otherRequiredError: \"กรุณาใส่ค่าอื่น\",\n uploadingFile:\n \"ไฟล์ของคุณกำลังอัพโหลดอยู่. กรุณารอสักครู่แล้วทำการลองอีกครั้ง\",\n loadingFile: \"กำลังโหลด...\",\n chooseFile: \"เลือกไฟล์...\",\n noFileChosen: \"ไม่ไฟล์ที่เลือก\",\n confirmDelete: \"คุณต้องการลบรายการนี้จริงหรือไม่?\",\n keyDuplicationError: \"ข้อมูลนี้ต้องเป็น unique.\",\n addColumn: \"เพิ่มคอลัมน์\",\n addRow: \"เพิ่มแถว\",\n removeRow: \"ลบ\",\n addPanel: \"เพิ่ม\",\n removePanel: \"ลบ\",\n choices_Item: \"ชิ้น\",\n matrix_column: \"คอลัมน์\",\n matrix_row: \"แถว\",\n savingData: \"ผลลัพท์กำลังบันทึกลงที่เซิร์ฟเวอร์...\",\n savingDataError: \"มีความผิดพลาดเกิดขึ้นส่งผลให้ไม่สามารถบันทึกผลได้\",\n savingDataSuccess: \"บันทึกสำเร็จแล้ว\",\n saveAgainButton: \"รบกวนลองอีกครั้ง\",\n timerMin: \"นาที\",\n timerSec: \"วินาที\",\n timerSpentAll: \"คุณใช้เวลา {0} บนหน้านี้และ {1} รวมทั้งหมด\",\n timerSpentPage: \"คุณใช้เวลา {0} บนหน้านี้\",\n timerSpentSurvey: \"คุณใช้เวลา {0} รวมทั้งหมด\",\n timerLimitAll: \"คุณใช้เวลา {0} ของ {1} บนหน้านี้และ {2} ของ {3} รวมทั้งหมด\",\n timerLimitPage: \"คุณใช้เวลา {0} ของ {1} บนหน้านี้\",\n timerLimitSurvey: \"คุณใช้เวลา {0} ของ {1} รวมทั้งหมด\",\n cleanCaption: \"คลีน\",\n clearCaption: \"เคลียร์\",\n chooseFileCaption: \"เลือกไฟล์\",\n removeFileCaption: \"นำไฟล์นี้ออก\",\n booleanCheckedLabel: \"ใช่\",\n booleanUncheckedLabel: \"ไม่ใช่\",\n confirmRemoveFile: \"คุณแน่ใจที่จะนำไฟล์นี้ออกใช่หรือไม่: {0}?\",\n confirmRemoveAllFiles: \"คุณแน่ใจที่จะนำไฟล์ทั้งหมดออกใช่หรือไม่\",\n questionTitlePatternText: \"ชื่อคำถาม\",\n};\n\nsurveyLocalization.locales[\"th\"] = thaiStrings;\nsurveyLocalization.localeNames[\"th\"] = \"ไทย\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var traditionalChineseSurveyStrings = {\n pagePrevText: \"上一頁\",\n pageNextText: \"下一頁\",\n completeText: \"提交問卷\",\n otherItemText: \"填寫其他答案\",\n progressText: \"第 {0} 頁, 共 {1} 頁\",\n emptySurvey: \"問卷中沒有問題或頁面\",\n completingSurvey: \"感謝您的參與!\",\n loadingSurvey: \"問卷載入中...\",\n optionsCaption: \"請選擇...\",\n requiredError: \"請填寫此問題\",\n requiredInAllRowsError: \"請填寫所有行中問題\",\n numericError: \"答案必須是個數字\",\n textMinLength: \"答案長度至少 {0} 個字元\",\n textMaxLength: \"答案長度不能超過 {0} 個字元\",\n textMinMaxLength: \"答案長度必須在 {0} - {1} 個字元之間\",\n minRowCountError: \"最少需要填寫 {0} 行答案\",\n minSelectError: \"最少需要選擇 {0} 項答案\",\n maxSelectError: \"最多只能選擇 {0} 項答案\",\n numericMinMax: \"答案 '{0}' 必須大於等於 {1} 且小於等於 {2}\",\n numericMin: \"答案 '{0}' 必須大於等於 {1}\",\n numericMax: \"答案 '{0}' 必須小於等於 {1}\",\n invalidEmail: \"請輸入有效的 Email 地址\",\n urlRequestError: \"載入選項時發生錯誤 '{0}': {1}\",\n urlGetChoicesError: \"未能載入有效的選項或請求參數路徑有誤\",\n exceedMaxSize: \"文件大小不能超過 {0}\",\n otherRequiredError: \"請完成其他問題\",\n uploadingFile: \"文件上傳中... 請耐心等待幾秒後重試\",\n addRow: \"添加答案\",\n removeRow: \"刪除答案\",\n choices_Item: \"選項\",\n matrix_column: \"列\",\n matrix_row: \"行\",\n savingData: \"正在將結果保存到服務器...\",\n savingDataError: \"在保存結果過程中發生了錯誤,結果未能保存\",\n savingDataSuccess: \"結果保存成功!\",\n saveAgainButton: \"請重試\"\n};\n\nsurveyLocalization.locales[\"zh-tw\"] = traditionalChineseSurveyStrings;\nsurveyLocalization.localeNames[\"zh-tw\"] = \"繁體中文\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var turkishSurveyStrings = {\n pagePrevText: \"Geri\",\n pageNextText: \"İleri\",\n completeText: \"Anketi Tamamla\",\n previewText: \"Ön izleme\",\n editText: \"Düzenle\",\n startSurveyText: \"Başlat\",\n otherItemText: \"Diğer (açıklayınız)\",\n noneItemText: \"Yok\",\n selectAllItemText: \"Hepsini seç\",\n progressText: \"Sayfa {0} / {1}\",\n panelDynamicProgressText: \"Kayıt {0} / {1}\",\n questionsProgressText: \"Soruları cevapladı {0} / {1}\",\n emptySurvey: \"Ankette görüntülenecek sayfa ya da soru mevcut değil.\",\n completingSurvey: \"Anketimizi tamamladığınız için teşekkür ederiz.\",\n completingSurveyBefore:\n \"Kayıtlarımız, bu anketi zaten tamamladığınızı gösteriyor.\",\n loadingSurvey: \"Anket sunucudan yükleniyor ...\",\n optionsCaption: \"Seçiniz ...\",\n value: \"değer\",\n requiredError: \"Lütfen soruya cevap veriniz\",\n requiredErrorInPanel: \"Lütfen en az bir soruyu yanıtlayın.\",\n requiredInAllRowsError: \"Lütfen tüm satırlardaki soruları cevaplayınız.\",\n numericError: \"Girilen değer numerik olmalıdır\",\n textMinLength: \"En az {0} sembol giriniz.\",\n textMaxLength: \"Lütfen {0} karakterden az girin.\",\n textMinMaxLength: \"Lütfen {0} ’den fazla ve {1} ’den az karakter girin.\",\n minRowCountError: \"Lütfen en az {0} satırı doldurun.\",\n minSelectError: \"Lütfen en az {0} seçeneği seçiniz.\",\n maxSelectError: \"Lütfen {0} adetten fazla seçmeyiniz.\",\n numericMinMax:\n \"The '{0}' should be equal or more than {1} and equal or less than {2}\",\n numericMin: \"'{0}' değeri {1} değerine eşit veya büyük olmalıdır\",\n numericMax: \"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.\",\n invalidEmail: \"Lütfen geçerli bir eposta adresi giriniz.\",\n invalidExpression: \"İfade: {0} 'true' döndürmelidir.\",\n urlRequestError: \"Talebi şu hatayı döndü '{0}'. {1}\",\n urlGetChoicesError:\n \"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.\",\n exceedMaxSize: \"Dosya boyutu {0} değerini geçemez.\",\n otherRequiredError: \"Lütfen diğer değerleri giriniz.\",\n uploadingFile:\n \"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.\",\n loadingFile: \"Yükleniyor...\",\n chooseFile: \"Dosyaları seçin ...\",\n noFileChosen: \"Dosya seçili değil\",\n confirmDelete: \"Kaydı silmek istiyor musunuz?\",\n keyDuplicationError: \"Bu değer benzersiz olmalıdır.\",\n addColumn: \"Sütun ekleyin\",\n addRow: \"Satır Ekle\",\n removeRow: \"Kaldır\",\n addPanel: \"Yeni ekle\",\n removePanel: \"Kaldırmak\",\n choices_Item: \"eşya\",\n matrix_column: \"Sütun\",\n matrix_row: \"Kürek çekmek\",\n savingData: \"Sonuçlar sunucuya kaydediliyor ...\",\n savingDataError: \"Bir hata oluştu ve sonuçları kaydedemedik.\",\n savingDataSuccess: \"Sonuçlar başarıyla kaydedildi!\",\n saveAgainButton: \"Tekrar deneyin\",\n timerMin: \"min\",\n timerSec: \"saniye\",\n timerSpentAll: \"Bu sayfada {0} ve toplamda {1} harcadınız.\",\n timerSpentPage: \"Bu sayfaya {0} harcadınız.\",\n timerSpentSurvey: \"Toplamda {0} harcadınız.\",\n timerLimitAll:\n \"Bu sayfaya {0} / {1} ve toplamda {2} / {3} harcadınız.\",\n timerLimitPage: \"Bu sayfaya {0} / {1} harcadınız.\",\n timerLimitSurvey: \"Toplamda {0} / {1} harcadınız.\",\n cleanCaption: \"Temiz\",\n clearCaption: \"Açık\",\n chooseFileCaption: \"Dosya seçin\",\n removeFileCaption: \"Bu dosyayı kaldır\",\n booleanCheckedLabel: \"Evet\",\n booleanUncheckedLabel: \"Hayır\",\n confirmRemoveFile: \"Bu dosyayı kaldırmak istediğinizden emin misiniz: {0}?\",\n confirmRemoveAllFiles: \"Tüm dosyaları kaldırmak istediğinizden emin misiniz?\",\n questionTitlePatternText: \"Soru başlığı\",\n};\n\nsurveyLocalization.locales[\"tr\"] = turkishSurveyStrings;\nsurveyLocalization.localeNames[\"tr\"] = \"türkçe\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var ukrainianSurveyStrings = {\n pagePrevText: \"Назад\",\n pageNextText: \"Далі\",\n completeText: \"Завершити\",\n previewText: \"Попередній перегляд\",\n editText: \"Редагувати\",\n startSurveyText: \"Почати\",\n otherItemText: \"Інше (будь ласка, опишіть)\",\n noneItemText: \"Жоден\",\n selectAllItemText: \"Вибрати все\",\n progressText: \"Сторінка {0} з {1}\",\n panelDynamicProgressText: \"Запис {0} із {1}\",\n questionsProgressText: \"Відповіли на {0}/{1} питань\",\n emptySurvey: \"Немає жодного питання.\",\n completingSurvey: \"Дякуємо Вам за заповнення анкети!\",\n completingSurveyBefore:\n \"Ви вже проходили це опитування.\",\n loadingSurvey: \"Завантаження опитування...\",\n optionsCaption: \"Вибрати...\",\n value: \"значення\",\n requiredError: \"Будь ласка, дайте відповідь.\",\n requiredErrorInPanel: \"Будь ласка, дайте відповідь хоча б на одне питання.\",\n requiredInAllRowsError: \"Будь ласка, дайте відповідь на питання в кожному рядку.\",\n numericError: \"Відповідь повинна бути числом.\",\n textMinLength: \"Будь ласка введіть більше {0} символів.\",\n textMaxLength: \"Будь ласка введіть менше {0} символів.\",\n textMinMaxLength: \"Будь ласка введіть більше {0} и менше {1} символів.\",\n minRowCountError: \"Будь ласка, заповніть не менше {0} рядків.\",\n minSelectError: \"Будь ласка, виберіть хоча б {0} варіантів.\",\n maxSelectError: \"Будь ласка, виберіть не більше {0} варіантів.\",\n numericMinMax:\n \"'{0}' повинно бути не менше ніж {1}, і не більше ніж {2}\",\n numericMin: \"'{0}' повинно бути не менше ніж {1}\",\n numericMax: \"'{0}' повинно бути не більше ніж {1}\",\n invalidEmail: \"Будь ласка, введіть дійсну адресу електронної пошти.\",\n invalidExpression: \"Вираз {0} повинен повертати 'true'.\",\n urlRequestError: \"Запит повернув помилку '{0}'. {1}\",\n urlGetChoicesError:\n \"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно\",\n exceedMaxSize: \"Розмір файлу не повинен перевищувати {0}.\",\n otherRequiredError: \"Будь ласка, введіть дані в поле 'Інше'\",\n uploadingFile:\n \"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.\",\n loadingFile: \"Завантаження...\",\n chooseFile: \"Виберіть файл(и)...\",\n noFileChosen: \"Файл не вибрано\",\n confirmDelete: \"Ви хочете видалити запис?\",\n keyDuplicationError: \"Це значення повинно бути унікальним.\",\n addColumn: \"Додати колонку\",\n addRow: \"Додати рядок\",\n removeRow: \"Видалити\",\n addPanel: \"Додати нову\",\n removePanel: \"Видалити\",\n choices_Item: \"Варіант\",\n matrix_column: \"Колонка\",\n matrix_row: \"Рядок\",\n savingData: \"Результати зберігаються на сервер...\",\n savingDataError: \"Відбулася помилка, результат не був збережений.\",\n savingDataSuccess: \"Резвультат успішно збережений!\",\n saveAgainButton: \"Спробувати знову\",\n timerMin: \"хв\",\n timerSec: \"сек\",\n timerSpentAll: \"Ви витратили {0} на цій сторінці і {1} загалом.\",\n timerSpentPage: \"Ви витратили {0} на цій сторінці.\",\n timerSpentSurvey: \"Ви витратили {0} протягом тесту.\",\n timerLimitAll:\n \"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.\",\n timerLimitPage: \"Ви витратили {0} з {1} на цій сторінці.\",\n timerLimitSurvey: \"Ви витратили {0} з {1} для всього тесту.\",\n cleanCaption: \"Очистити\",\n clearCaption: \"Очистити\",\n chooseFileCaption: \"Виберіть файл\",\n removeFileCaption: \"Видалити файл\",\n booleanCheckedLabel: \"Так\",\n booleanUncheckedLabel: \"Ні\",\n confirmRemoveFile: \"Ви впевнені, що хочете видалити цей файл: {0}?\",\n confirmRemoveAllFiles: \"Ви впевнені, що хочете видалити всі файли?\",\n questionTitlePatternText: \"Назва запитання\",\n};\n\nsurveyLocalization.locales[\"ua\"] = ukrainianSurveyStrings;\nsurveyLocalization.localeNames[\"ua\"] = \"українська\";\n","import { surveyLocalization } from \"../surveyStrings\";\n\nexport var welshSurveyStrings = {\n pagePrevText: \"Blaenorol\",\n pageNextText: \"Nesaf\",\n completeText: \"Cwblhau\",\n previewText: \"Rhagolwg\",\n editText: \"Golygu\",\n startSurveyText: \"Dechrau\",\n otherItemText: \"Arall (disgrifiwch)\",\n noneItemText: \"Dim\",\n selectAllItemText: \"Dewis y Cyfan \",\n progressText: \"Tudalen {0} o {1}\",\n panelDynamicProgressText: \"Cofnod {0} o {1}\",\n questionsProgressText: \"Wedi ateb {0}/{1} cwestiwn\",\n emptySurvey: \"Does dim modd gweld tudalen na chwestiwn yn yr arolwg.\",\n completingSurvey: \"Diolch am lenwi’r holiadur!\",\n completingSurveyBefore: \"Rydych chi wedi llenwi’r arolwg hwn yn barod yn ôl ein cofnodion.\",\n loadingSurvey: \"Wrthi’n Llwytho’r Arolwg...\",\n optionsCaption: \"Dewiswch...\",\n value: \"gwerth\",\n requiredError: \"Atebwch y cwestiwn.\",\n requiredErrorInPanel: \"Atebwch o leiaf un cwestiwn.\",\n requiredInAllRowsError: \"Atebwch y cwestiynau ym mhob rhes.\",\n numericError: \"Dylai’r gwerth fod yn rhif.\",\n textMinLength: \"Rhowch o leiaf {0} nod.\",\n textMaxLength: \"Rhowch lai na {0} nod.\",\n textMinMaxLength: \"Rhowch o leiaf {0} nod ond dim mwy na {1}.\",\n minRowCountError: \"Llenwch o leiaf {0} rhes.\",\n minSelectError: \"Dewiswch o leiaf {0} amrywiolyn.\",\n maxSelectError: \"Peidiwch â dewis mwy na {0} amrywiolyn.\",\n numericMinMax: \"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy, a’r fath â {2} neu’n llai\",\n numericMin: \"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy\",\n numericMax: \"Dylai’r '{0}' fod yr un fath â {1} neu’n llai\",\n invalidEmail: \"Rhowch gyfeiriad e-bost dilys.\",\n invalidExpression: \"Dylai’r mynegiad {0} arwain at 'true'.\",\n urlRequestError: \"Roedd y cais wedi arwain at y gwall '{0}'. {1}\",\n urlGetChoicesError: \"Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y ‘path’ yn anghywir \",\n exceedMaxSize: \"Ddylai’r ffeil ddim bod yn fwy na {0}.\",\n otherRequiredError: \"Rhowch y gwerth arall.\",\n uploadingFile: \"Mae eich ffeil wrthi’n llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.\",\n loadingFile: \"Wrthi’n llwytho...\",\n chooseFile: \"Dewiswch ffeil(iau)...\",\n noFileChosen: \"Heb ddewis ffeil \",\n confirmDelete: \"Ydych chi am ddileu’r cofnod?\",\n keyDuplicationError: \"Dylai’r gwerth hwn fod yn unigryw.\",\n addColumn: \"Ychwanegu colofn \",\n addRow: \"Ychwanegu rhes\",\n removeRow: \"Tynnu\",\n addPanel: \"Ychwanegu o’r newydd\",\n removePanel: \"Tynnu\",\n choices_Item: \"eitem\",\n matrix_column: \"Colofn\",\n matrix_row: \"Rhes\",\n savingData: \"Mae’r canlyniadau’n cael eu cadw ar y gweinydd...\",\n savingDataError: \"Roedd gwall a doedd dim modd cadw’r canlyniadau.\",\n savingDataSuccess: \"Wedi llwyddo i gadw’r canlyniadau!\",\n saveAgainButton: \"Rhowch gynnig arall arni\",\n timerMin: \"mun\",\n timerSec: \"eil\",\n timerSpentAll: \"Rydych chi wedi treulio {0} ar y dudalen hon a {1} gyda’i gilydd.\",\n timerSpentPage: \"Rydych chi wedi treulio {0} ar y dudalen hon.\",\n timerSpentSurvey: \"Rydych chi wedi treulio {0} gyda’i gilydd.\",\n timerLimitAll: \"Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gyda’i gilydd.\",\n timerLimitPage: \"Rydych chi wedi treulio {0} o {1} ar y dudalen hon.\",\n timerLimitSurvey: \"Rydych chi wedi treulio {0} o {1} gyda’i gilydd.\",\n cleanCaption: \"Glanhau\",\n clearCaption: \"Clirio\",\n chooseFileCaption: \"Dewiswch ffeil \",\n removeFileCaption: \"Tynnu’r ffeil hon \",\n booleanCheckedLabel: \"Iawn\",\n booleanUncheckedLabel: \"Na\",\n confirmRemoveFile: \"Ydych chi’n siŵr eich bod am dynnu’r ffeil hon: {0}?\",\n confirmRemoveAllFiles: \"Ydych chi’n siŵr eich bod am dynnu pob ffeil?\",\n questionTitlePatternText: \"Teitl y Cwestiwn \",\n};\n\nsurveyLocalization.locales[\"cy\"] = welshSurveyStrings;\nsurveyLocalization.localeNames[\"cy\"] = \"cymraeg\";\n","import { HashTable } from \"./helpers\";\nimport { ItemValue } from \"./itemvalue\";\nimport { Question } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { ConditionRunner } from \"./conditions\";\nimport { Helpers } from \"./helpers\";\nimport SortableLib from \"sortablejs\";\n\nconst Sortable = SortableLib;\n/**\n * A Model for a matrix base question.\n */\nexport class QuestionMatrixBaseModel extends Question {\n protected filteredColumns: Array;\n protected filteredRows: Array;\n protected generatedVisibleRows: Array = null;\n protected generatedTotalRow: TRow = null;\n public visibleRowsChangedCallback: () => void;\n\n protected createColumnValues(): any {\n return this.createItemValues(\"columns\");\n }\n\n constructor(name: string) {\n super(name);\n this.filteredRows = null;\n this.filteredColumns = null;\n this.columns = this.createColumnValues();\n this.rows = this.createItemValues(\"rows\");\n }\n public getType(): string {\n return \"matrixbase\";\n }\n public get isCompositeQuestion(): boolean {\n return true;\n }\n /**\n * Set this property to false, to hide table header. The default value is true.\n */\n public get showHeader(): boolean {\n return this.getPropertyValue(\"showHeader\");\n }\n public set showHeader(val: boolean) {\n this.setPropertyValue(\"showHeader\", val);\n }\n /**\n * Set this property to true, to allow rows drag and drop.\n */\n public get allowRowsDragAndDrop(): boolean {\n return this.getPropertyValue(\"allowRowsDragAndDrop\");\n }\n public set allowRowsDragAndDrop(val: boolean) {\n this.setPropertyValue(\"allowRowsDragAndDrop\", val);\n }\n //cross framework initialization\n public afterRenderQuestionElement(el: HTMLElement) {\n if (!!el && this.allowRowsDragAndDrop) {\n this.initSortable(el.querySelector(\"tbody\"));\n }\n super.afterRenderQuestionElement(el);\n }\n //cross framework destroy\n public beforeDestroyQuestionElement(el: HTMLElement) {\n if (this.sortableInst) this.sortableInst.destroy();\n super.beforeDestroyQuestionElement(el);\n }\n /**\n * The list of columns. A column has a value and an optional text\n */\n get columns(): Array {\n return this.getPropertyValue(\"columns\");\n }\n set columns(newValue: Array) {\n this.setPropertyValue(\"columns\", newValue);\n }\n public get visibleColumns(): Array {\n return !!this.filteredColumns ? this.filteredColumns : this.columns;\n }\n /**\n * The list of rows. A row has a value and an optional text\n */\n get rows(): Array {\n return this.getPropertyValue(\"rows\");\n }\n set rows(newValue: Array) {\n var newRows = this.processRowsOnSet(newValue);\n this.setPropertyValue(\"rows\", newRows);\n this.filterItems();\n }\n protected processRowsOnSet(newRows: Array) {\n return newRows;\n }\n protected getVisibleRows(): Array {\n return [];\n }\n /**\n * Returns the list of visible rows as model objects.\n * @see rowsVisibleIf\n */\n public get visibleRows(): Array {\n return this.getVisibleRows();\n }\n\n /**\n * An expression that returns true or false. It runs against each row item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression.\n * @see visibleIf\n */\n public get rowsVisibleIf(): string {\n return this.getPropertyValue(\"rowsVisibleIf\", \"\");\n }\n public set rowsVisibleIf(val: string) {\n this.setPropertyValue(\"rowsVisibleIf\", val);\n this.filterItems();\n }\n /**\n * An expression that returns true or false. It runs against each column item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression.\n * @see rowsVisibleIf\n */\n public get columnsVisibleIf(): string {\n return this.getPropertyValue(\"columnsVisibleIf\", \"\");\n }\n public set columnsVisibleIf(val: string) {\n this.setPropertyValue(\"columnsVisibleIf\", val);\n this.filterItems();\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n this.runItemsCondition(values, properties);\n }\n protected filterItems(): boolean {\n if (this.areInvisibleElementsShowing) {\n this.onRowsChanged();\n return false;\n }\n if (this.isLoadingFromJson || !this.data) return false;\n return this.runItemsCondition(\n this.getDataFilteredValues(),\n this.getDataFilteredProperties()\n );\n }\n protected onColumnsChanged() {}\n protected onRowsChanged() {\n this.fireCallback(this.visibleRowsChangedCallback);\n }\n protected shouldRunColumnExpression(): boolean {\n return !this.survey || !this.survey.areInvisibleElementsShowing;\n }\n protected hasRowsAsItems(): boolean {\n return true;\n }\n protected runItemsCondition(\n values: HashTable,\n properties: HashTable\n ): boolean {\n var oldVisibleRows = null;\n if (!!this.filteredRows && !Helpers.isValueEmpty(this.defaultValue)) {\n oldVisibleRows = [];\n for (var i = 0; i < this.filteredRows.length; i++) {\n oldVisibleRows.push(this.filteredRows[i]);\n }\n }\n var hasChanges =\n this.hasRowsAsItems() && this.runConditionsForRows(values, properties);\n var hasColumnsChanged = this.runConditionsForColumns(values, properties);\n hasChanges = hasColumnsChanged || hasChanges;\n if (hasChanges) {\n if (\n !!this.survey &&\n this.survey.isClearValueOnHidden &&\n (!!this.filteredColumns || !!this.filteredRows)\n ) {\n this.clearIncorrectValues();\n }\n if (!!oldVisibleRows) {\n this.restoreNewVisibleRowsValues(oldVisibleRows);\n }\n this.clearGeneratedRows();\n if (hasColumnsChanged) {\n this.onColumnsChanged();\n }\n this.onRowsChanged();\n }\n return hasChanges;\n }\n protected clearGeneratedRows() {\n this.generatedVisibleRows = null;\n }\n private runConditionsForRows(\n values: HashTable,\n properties: HashTable\n ): boolean {\n var showInvisibile =\n !!this.survey && this.survey.areInvisibleElementsShowing;\n var runner =\n !showInvisibile && !!this.rowsVisibleIf\n ? new ConditionRunner(this.rowsVisibleIf)\n : null;\n this.filteredRows = [];\n var hasChanged = ItemValue.runConditionsForItems(\n this.rows,\n this.filteredRows,\n runner,\n values,\n properties,\n !showInvisibile\n );\n if (this.filteredRows.length === this.rows.length) {\n this.filteredRows = null;\n }\n return hasChanged;\n }\n private runConditionsForColumns(\n values: HashTable,\n properties: HashTable\n ): boolean {\n var useColumnsExpression =\n !!this.survey && !this.survey.areInvisibleElementsShowing;\n var runner =\n useColumnsExpression && !!this.columnsVisibleIf\n ? new ConditionRunner(this.columnsVisibleIf)\n : null;\n this.filteredColumns = [];\n var hasChanged = ItemValue.runConditionsForItems(\n this.columns,\n this.filteredColumns,\n runner,\n values,\n properties,\n this.shouldRunColumnExpression()\n );\n if (this.filteredColumns.length === this.columns.length) {\n this.filteredColumns = null;\n }\n return hasChanged;\n }\n public clearIncorrectValues() {\n var val = this.value;\n if (!val) return;\n var newVal = null;\n var isChanged = false;\n var rows = !!this.filteredRows ? this.filteredRows : this.rows;\n var columns = !!this.filteredColumns ? this.filteredColumns : this.columns;\n for (var key in val) {\n if (\n ItemValue.getItemByValue(rows, key) &&\n ItemValue.getItemByValue(columns, val[key])\n ) {\n if (newVal == null) newVal = {};\n (newVal)[key] = val[key];\n } else {\n isChanged = true;\n }\n }\n if (isChanged) {\n this.value = newVal;\n }\n super.clearIncorrectValues();\n }\n protected clearInvisibleValuesInRows() {\n if (this.isEmpty()) return;\n var newData = this.getUnbindValue(this.value);\n var rows = this.rows;\n for (var i = 0; i < rows.length; i++) {\n var key = rows[i].value;\n if (!!newData[key] && !rows[i].isVisible) {\n delete newData[key];\n }\n }\n if (Helpers.isTwoValueEquals(newData, this.value)) return;\n this.value = newData;\n }\n private restoreNewVisibleRowsValues(oldVisibleRows: any) {\n var rows = !!this.filteredRows ? this.filteredRows : this.rows;\n var val = this.defaultValue;\n var newValue = this.getUnbindValue(this.value);\n var isChanged = false;\n for (var key in val) {\n if (\n ItemValue.getItemByValue(rows, key) &&\n !ItemValue.getItemByValue(oldVisibleRows, key)\n ) {\n if (newValue == null) newValue = {};\n (newValue)[key] = val[key];\n isChanged = true;\n }\n }\n if (isChanged) {\n this.value = newValue;\n }\n }\n\n private initSortable(domNode: HTMLElement) {\n if (!domNode) return;\n if (this.isReadOnly) return;\n const self = this;\n self.domNode = domNode;\n\n self.sortableInst = new Sortable(domNode, {\n animation: 100,\n forceFallback: true,\n delay: 200,\n delayOnTouchOnly: true,\n handle: \"tr\",\n onEnd(evt: any) {\n self.moveRowByIndex(\n self.rows,\n evt.oldDraggableIndex,\n evt.newDraggableIndex\n );\n },\n });\n }\n private moveRowByIndex = (\n rows: Array,\n fromIndex: number,\n toIndex: number\n ) => {\n const movableRow = rows[fromIndex];\n\n if (!movableRow) return;\n\n rows.splice(fromIndex, 1);\n rows.splice(toIndex, 0, movableRow);\n };\n}\n\nSerializer.addClass(\n \"matrixbase\",\n [\n \"columnsVisibleIf:condition\",\n \"rowsVisibleIf:condition\",\n { name: \"showHeader:boolean\", default: true },\n { name: \"allowRowsDragAndDrop\", default: false },\n ],\n undefined,\n \"question\"\n);\n","import { Serializer } from \"./jsonobject\";\nimport { Helpers } from \"./helpers\";\nimport { IPage, IPanel, IElement, ISurveyElement, IQuestion } from \"./base\";\nimport { DragDropInfo, PanelModelBase, QuestionRowModel } from \"./panel\";\nimport { LocalizableString } from \"./localizablestring\";\n/**\n * The page object. It has elements collection, that contains questions and panels.\n */\nexport class PageModel extends PanelModelBase implements IPage {\n private hasShownValue: boolean = false;\n constructor(name: string = \"\") {\n super(name);\n var self = this;\n this.locTitle.onGetTextCallback = function(text) {\n if (self.num > 0) return self.num + \". \" + text;\n return text;\n };\n this.createLocalizableString(\"navigationTitle\", this, true);\n this.createLocalizableString(\"navigationDescription\", this, true);\n }\n public getType(): string {\n return \"page\";\n }\n public toString(): string {\n return this.name;\n }\n public get isPage() {\n return true;\n }\n /**\n * Use this property to show title in navigation buttons. If the value is empty then page name is used.\n * @see survey.progressBarType\n */\n public get navigationTitle(): string {\n return this.getLocalizableStringText(\"navigationTitle\");\n }\n public set navigationTitle(val: string) {\n this.setLocalizableStringText(\"navigationTitle\", val);\n }\n public get locNavigationTitle(): LocalizableString {\n return this.getLocalizableString(\"navigationTitle\");\n }\n public get navigationDescription(): string {\n return this.getLocalizableStringText(\"navigationDescription\");\n }\n public set navigationDescription(val: string) {\n this.setLocalizableStringText(\"navigationDescription\", val);\n }\n public get locNavigationDescription(): LocalizableString {\n return this.getLocalizableString(\"navigationDescription\");\n }\n public get passed(): boolean {\n return this.getPropertyValue(\"passed\", false);\n }\n public set passed(val: boolean) {\n this.setPropertyValue(\"passed\", val);\n }\n public delete() {\n if (!!this.survey) {\n this.removeSelfFromList(this.survey.pages);\n }\n }\n public onFirstRendering() {\n if (this.wasShown) return;\n super.onFirstRendering();\n }\n /**\n * The visible index of the page. It has values from 0 to visible page count - 1.\n * @see SurveyModel.visiblePages\n * @see SurveyModel.pages\n */\n public get visibleIndex(): number {\n return this.getPropertyValue(\"visibleIndex\", -1);\n }\n public set visibleIndex(val: number) {\n this.setPropertyValue(\"visibleIndex\", val);\n }\n /**\n * Returns true, if the page is started page in the survey. It can be shown on the start only and the end-user could not comeback to it after it passed it.\n */\n public get isStarted(): boolean {\n return this.survey && this.survey.isPageStarted(this);\n }\n protected calcCssClasses(): any {\n var css = this.css;\n var classes = { page: {}, pageTitle: \"\", pageDescription: \"\", row: \"\" };\n this.copyCssClasses(classes.page, css.page);\n if (!!css.pageTitle) {\n classes.pageTitle = css.pageTitle;\n }\n if (!!css.pageDescription) {\n classes.pageDescription = css.pageDescription;\n }\n if (!!css.row) {\n classes.row = css.row;\n }\n if (this.survey) {\n this.survey.updatePageCssClasses(this, classes);\n }\n return classes;\n }\n getIsPageVisible(exceptionQuestion: IQuestion): boolean {\n if (this.isStarted) return false;\n return super.getIsPageVisible(exceptionQuestion);\n }\n public get num() {\n return this.getPropertyValue(\"num\", -1);\n }\n public set num(val: number) {\n if (this.num == val) return;\n this.setPropertyValue(\"num\", val);\n this.onNumChanged(val);\n }\n /**\n * Set this property to \"hide\" to make \"Prev\", \"Next\" and \"Complete\" buttons are invisible for this page. Set this property to \"show\" to make these buttons visible, even if survey showNavigationButtons property is false.\n * @see SurveyMode.showNavigationButtons\n */\n public get navigationButtonsVisibility(): string {\n return this.getPropertyValue(\"navigationButtonsVisibility\");\n }\n public set navigationButtonsVisibility(val: string) {\n this.setPropertyValue(\"navigationButtonsVisibility\", val.toLowerCase());\n }\n /**\n * The property returns true, if the page has been shown to the end-user.\n */\n public get wasShown(): boolean {\n return this.hasShownValue;\n }\n get hasShown(): boolean {\n return this.wasShown;\n }\n public setWasShown(val: boolean) {\n if (val == this.hasShownValue) return;\n this.hasShownValue = val;\n if (this.isDesignMode) return;\n if (val == true && this.areQuestionsRandomized) {\n this.randomizeElements();\n }\n }\n private isRandomizing = false;\n private randomizeElements() {\n if (this.isRandomizing) return;\n this.isRandomizing = true;\n var oldElements = [];\n var elements = this.elements;\n for (var i = 0; i < elements.length; i++) {\n oldElements.push(elements[i]);\n }\n var newElements = Helpers.randomizeArray(oldElements);\n this.elements.splice(0, this.elements.length);\n for (var i = 0; i < newElements.length; i++) {\n this.elements.push(newElements[i]);\n }\n this.isRandomizing = false;\n }\n /**\n * The property returns true, if the elements are randomized on the page\n * @see hasShown\n * @see questionsOrder\n * @see SurveyModel.questionsOrder\n */\n public get areQuestionsRandomized(): boolean {\n var order =\n this.questionsOrder == \"default\" && this.survey\n ? this.survey.questionsOrder\n : this.questionsOrder;\n return order == \"random\";\n }\n /**\n * Use this property to randomize questions. Set it to 'random' to randomize questions, 'initial' to keep them in the same order or 'default' to use the Survey questionsOrder property\n * @see SurveyModel.questionsOrder\n * @see areQuestionsRandomized\n */\n public get questionsOrder() {\n return this.getPropertyValue(\"questionsOrder\");\n }\n public set questionsOrder(val: string) {\n this.setPropertyValue(\"questionsOrder\", val);\n }\n /**\n * Call it to scroll to the page top.\n */\n public scrollToTop() {\n if (!!this.survey) {\n this.survey.scrollElementToTop(this, null, this, this.id);\n }\n }\n /**\n * Time in seconds end-user spent on this page\n */\n public timeSpent = 0;\n // public get timeSpent(): number {\n // return this.getPropertyValue(\"timeSpent\", 0);\n // }\n // public set timeSpent(val: number) {\n // this.setPropertyValue(\"timeSpent\", val);\n // }\n /**\n * Returns the list of all panels in the page\n */\n public getPanels(\n visibleOnly: boolean = false,\n includingDesignTime: boolean = false\n ): Array {\n var result = new Array();\n this.addPanelsIntoList(result, visibleOnly, includingDesignTime);\n return result;\n }\n /**\n * The maximum time in seconds that end-user has to complete the page. If the value is 0 or less, the end-user has unlimited number of time to finish the page.\n * @see startTimer\n * @see SurveyModel.maxTimeToFinishPage\n */\n public get maxTimeToFinish(): number {\n return this.getPropertyValue(\"maxTimeToFinish\", 0);\n }\n public set maxTimeToFinish(val: number) {\n this.setPropertyValue(\"maxTimeToFinish\", val);\n }\n protected onNumChanged(value: number) {}\n protected onVisibleChanged() {\n if (this.isRandomizing) return;\n super.onVisibleChanged();\n if (this.survey != null) {\n this.survey.pageVisibilityChanged(this, this.isVisible);\n }\n }\n private dragDropInfo: DragDropInfo;\n public dragDropStart(\n src: IElement,\n target: IElement,\n nestedPanelDepth: number = -1\n ) {\n this.dragDropInfo = new DragDropInfo(src, target, nestedPanelDepth);\n }\n public dragDropMoveTo(\n destination: ISurveyElement,\n isBottom: boolean = false,\n isEdge: boolean = false\n ): boolean {\n if (!this.dragDropInfo) return false;\n this.dragDropInfo.destination = destination;\n this.dragDropInfo.isBottom = isBottom;\n this.dragDropInfo.isEdge = isEdge;\n this.correctDragDropInfo(this.dragDropInfo);\n if (!this.dragDropCanDropTagert()) return false;\n if (!this.dragDropCanDropSource() || !this.dragDropAllowFromSurvey()) {\n if (!!this.dragDropInfo.source) {\n var row = this.dragDropFindRow(this.dragDropInfo.target);\n this.updateRowsRemoveElementFromRow(this.dragDropInfo.target, row);\n }\n return false;\n }\n this.dragDropAddTarget(this.dragDropInfo);\n return true;\n }\n public getTitleActions(): Array {\n var titleActions: Array = [];\n this.titleActions = this.survey.getUpdatedPageTitleActions(\n this,\n titleActions\n );\n return this.titleActions;\n }\n private correctDragDropInfo(dragDropInfo: DragDropInfo) {\n if (!dragDropInfo.destination) return;\n var panel = (dragDropInfo.destination).isPanel\n ? (dragDropInfo.destination)\n : null;\n if (!panel) return;\n if (\n !dragDropInfo.target.isLayoutTypeSupported(panel.getChildrenLayoutType())\n ) {\n dragDropInfo.isEdge = true;\n }\n }\n private dragDropAllowFromSurvey(): boolean {\n var dest = this.dragDropInfo.destination;\n if (!dest || !this.survey) return true;\n var insertBefore: IElement = null;\n var insertAfter: IElement = null;\n var parent =\n dest.isPage || (!this.dragDropInfo.isEdge && (dest).isPanel)\n ? dest\n : (dest).parent;\n if (!dest.isPage) {\n var container = (dest).parent;\n if (!!container) {\n var elements = (container).elements;\n var index = elements.indexOf(dest);\n if (index > -1) {\n insertBefore = dest;\n insertAfter = dest;\n if (this.dragDropInfo.isBottom) {\n insertBefore =\n index < elements.length - 1 ? elements[index + 1] : null;\n } else {\n insertAfter = index > 0 ? elements[index - 1] : null;\n }\n }\n }\n }\n var options = {\n target: this.dragDropInfo.target,\n source: this.dragDropInfo.source,\n parent: parent,\n insertAfter: insertAfter,\n insertBefore: insertBefore,\n };\n return this.survey.dragAndDropAllow(options);\n }\n public dragDropFinish(isCancel: boolean = false): IElement {\n if (!this.dragDropInfo) return;\n var target = this.dragDropInfo.target;\n var row = this.dragDropFindRow(target);\n var targetIndex = this.dragDropGetElementIndex(target, row);\n this.updateRowsRemoveElementFromRow(target, row);\n if (!isCancel && !!row) {\n var src = this.dragDropInfo.source;\n var isSamePanel = false;\n if (!!src && !!src.parent) {\n isSamePanel = row.panel == src.parent;\n if (isSamePanel) {\n row.panel.dragDropMoveElement(src, target, targetIndex);\n targetIndex = -1;\n } else {\n src.parent.removeElement(src);\n }\n }\n if (targetIndex > -1) {\n row.panel.addElement(target, targetIndex);\n }\n }\n this.dragDropInfo = null;\n return !isCancel ? target : null;\n }\n private dragDropGetElementIndex(\n target: IElement,\n row: QuestionRowModel\n ): number {\n if (!row) return -1;\n var index = row.elements.indexOf(target);\n if (row.index == 0) return index;\n var prevRow = row.panel.rows[row.index - 1];\n var prevElement = prevRow.elements[prevRow.elements.length - 1];\n return index + row.panel.elements.indexOf(prevElement) + 1;\n }\n private dragDropCanDropTagert(): boolean {\n var destination = this.dragDropInfo.destination;\n if (!destination || destination.isPage) return true;\n return this.dragDropCanDropCore(\n this.dragDropInfo.target,\n destination\n );\n }\n private dragDropCanDropSource(): boolean {\n var source = this.dragDropInfo.source;\n if (!source) return true;\n var destination = this.dragDropInfo.destination;\n if (!this.dragDropCanDropCore(source, destination)) return false;\n return this.dragDropCanDropNotNext(\n source,\n destination,\n this.dragDropInfo.isEdge,\n this.dragDropInfo.isBottom\n );\n }\n private dragDropCanDropCore(\n target: IElement,\n destination: IElement\n ): boolean {\n if (!destination) return true;\n if (this.dragDropIsSameElement(destination, target)) return false;\n if (target.isPanel) {\n var pnl = (target);\n if (\n pnl.containsElement(destination) ||\n !!pnl.getElementByName(destination.name)\n )\n return false;\n }\n return true;\n }\n private dragDropCanDropNotNext(\n source: IElement,\n destination: IElement,\n isEdge: boolean,\n isBottom: boolean\n ): boolean {\n if (!destination || (destination.isPanel && !isEdge)) return true;\n if (source.parent !== destination.parent) return true;\n var pnl = source.parent;\n var srcIndex = pnl.elements.indexOf(source);\n var destIndex = pnl.elements.indexOf(destination);\n if (destIndex < srcIndex && !isBottom) destIndex--;\n if (isBottom) destIndex++;\n return srcIndex < destIndex\n ? destIndex - srcIndex > 1\n : srcIndex - destIndex > 0;\n }\n\n private dragDropIsSameElement(el1: IElement, el2: IElement) {\n return el1 == el2 || el1.name == el2.name;\n }\n public ensureRowsVisibility() {\n super.ensureRowsVisibility();\n this.getPanels().forEach(panel => panel.ensureRowsVisibility());\n }\n}\n\nSerializer.addClass(\n \"page\",\n [\n {\n name: \"navigationButtonsVisibility\",\n default: \"inherit\",\n choices: [\"inherit\", \"show\", \"hide\"],\n },\n {\n name: \"questionsOrder\",\n default: \"default\",\n choices: [\"default\", \"initial\", \"random\"],\n },\n { name: \"maxTimeToFinish:number\", default: 0, minValue: 0 },\n {\n name: \"navigationTitle\",\n visibleIf: function(obj: any) {\n return !!obj.survey && obj.survey.progressBarType === \"buttons\";\n },\n serializationProperty: \"locNavigationTitle\",\n },\n {\n name: \"navigationDescription\",\n visibleIf: function(obj: any) {\n return !!obj.survey && obj.survey.progressBarType === \"buttons\";\n },\n serializationProperty: \"locNavigationDescription\",\n },\n ],\n function() {\n return new PageModel();\n },\n \"panelbase\"\n);\n","import { Serializer, property } from \"./jsonobject\";\nimport { HashTable, Helpers } from \"./helpers\";\nimport {\n Base,\n ISurveyImpl,\n IPage,\n IPanel,\n IConditionRunner,\n IElement,\n ISurveyElement,\n IQuestion,\n SurveyElement,\n SurveyError,\n ISurveyErrorOwner,\n ITitleOwner,\n IProgressInfo,\n ISurvey,\n} from \"./base\";\nimport { Question } from \"./question\";\nimport { ConditionRunner } from \"./conditions\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { OneAnswerRequiredError } from \"./error\";\nimport { PageModel } from \"./page\";\nimport { settings } from \"./settings\";\nimport { findScrollableParent, isElementVisible } from \"./utils/utils\";\n\nexport class DragDropInfo {\n constructor(\n public source: IElement,\n public target: IElement,\n public nestedPanelDepth: number = -1\n ) {}\n public destination: ISurveyElement;\n public isBottom: boolean;\n public isEdge: boolean;\n}\n\nexport class QuestionRowModel extends Base {\n private static rowCounter = 100;\n private static getRowId(): string {\n return \"pr_\" + QuestionRowModel.rowCounter++;\n }\n protected _scrollableParent: any = undefined;\n protected _updateVisibility: any = undefined;\n public startLazyRendering(\n rowContainerDiv: HTMLElement,\n findScrollableContainer = findScrollableParent\n ) {\n this._scrollableParent = findScrollableContainer(rowContainerDiv);\n this.isNeedRender = !(\n this._scrollableParent.scrollHeight > this._scrollableParent.clientHeight\n );\n // if this._scrollableParent is html the scroll event isn't fired, so we should use window\n if (this._scrollableParent === document.documentElement) {\n this._scrollableParent = window;\n }\n if (!this.isNeedRender) {\n this._updateVisibility = () => {\n var isRowContainerDivVisible = isElementVisible(rowContainerDiv, 50);\n if (!this.isNeedRender && isRowContainerDivVisible) {\n this.isNeedRender = true;\n this.stopLazyRendering();\n }\n };\n setTimeout(() => {\n if (\n !!this._scrollableParent &&\n !!this._scrollableParent.addEventListener\n ) {\n this._scrollableParent.addEventListener(\n \"scroll\",\n this._updateVisibility\n );\n }\n this.ensureVisibility();\n }, 10);\n }\n }\n public ensureVisibility() {\n if (!!this._updateVisibility) {\n this._updateVisibility();\n }\n }\n public stopLazyRendering() {\n if (\n !!this._scrollableParent &&\n !!this._updateVisibility &&\n !!this._scrollableParent.removeEventListener\n ) {\n this._scrollableParent.removeEventListener(\n \"scroll\",\n this._updateVisibility\n );\n }\n this._scrollableParent = undefined;\n this._updateVisibility = undefined;\n }\n private idValue: string;\n constructor(public panel: PanelModelBase) {\n super();\n this.idValue = QuestionRowModel.getRowId();\n this.isNeedRender = !this.isLazyRendering;\n this.visible = panel.areInvisibleElementsShowing;\n this.createNewArray(\"elements\");\n }\n public get isLazyRendering() {\n return (\n !!this.panel && !!this.panel.survey && this.panel.survey.isLazyRendering\n );\n }\n public get id(): string {\n return this.idValue;\n }\n public get elements(): Array {\n return this.getPropertyValue(\"elements\");\n }\n public get visible(): boolean {\n return this.getPropertyValue(\"visible\", true);\n }\n public set visible(val: boolean) {\n this.setPropertyValue(\"visible\", val);\n }\n public get isNeedRender(): boolean {\n return this.getPropertyValue(\"isneedrender\", true);\n }\n public set isNeedRender(val: boolean) {\n this.setPropertyValue(\"isneedrender\", val);\n }\n public get visibleElements(): Array {\n return this.elements.filter(e => e.isVisible);\n }\n public updateVisible() {\n this.visible = this.calcVisible();\n this.setWidth();\n }\n public addElement(q: IElement) {\n this.elements.push(q);\n this.updateVisible();\n }\n public get index(): number {\n return this.panel.rows.indexOf(this);\n }\n private setWidth() {\n var visCount = this.visibleElements.length;\n if (visCount == 0) return;\n var counter = 0;\n var preSetWidthElements = [];\n for (var i = 0; i < this.elements.length; i++) {\n var el = this.elements[i];\n this.setElementMaxMinWidth(el);\n\n if (el.isVisible) {\n var width = this.getElementWidth(el);\n if (!!width) {\n el.renderWidth = this.getRenderedWidthFromWidth(width);\n preSetWidthElements.push(el);\n }\n el.rightIndent = counter < visCount - 1 ? 1 : 0;\n counter++;\n } else {\n el.renderWidth = \"\";\n }\n }\n for (var i = 0; i < this.elements.length; i++) {\n var el = this.elements[i];\n if (!el.isVisible || preSetWidthElements.indexOf(el) > -1) continue;\n if (preSetWidthElements.length == 0) {\n el.renderWidth = (100 / visCount).toFixed(6) + \"%\";\n } else {\n el.renderWidth = this.getRenderedCalcWidth(\n el,\n preSetWidthElements,\n visCount\n );\n }\n }\n }\n public setElementMaxMinWidth(el: IElement): void {\n if (\n el.width &&\n typeof el.width === \"string\" &&\n el.width.indexOf(\"%\") === -1\n ) {\n el.minWidth = el.width;\n el.maxWidth = el.width;\n }\n }\n\n private getRenderedCalcWidth(\n el: IElement,\n preSetWidthElements: Array,\n visCount: number\n ): string {\n var expression = \"100%\";\n for (var i = 0; i < preSetWidthElements.length; i++) {\n expression += \" - \" + preSetWidthElements[i].renderWidth;\n }\n var calcWidthEl = visCount - preSetWidthElements.length;\n if (calcWidthEl > 1) {\n expression = \"(\" + expression + \")/\" + calcWidthEl.toString();\n }\n return \"calc(\" + expression + \")\";\n }\n private getElementWidth(el: IElement): string {\n var width = el.width;\n if (!width || typeof width !== \"string\") return \"\";\n return width.trim();\n }\n private getRenderedWidthFromWidth(width: string): string {\n return Helpers.isNumber(width) ? width + \"px\" : width;\n }\n private calcVisible(): boolean {\n return this.visibleElements.length > 0;\n }\n public dispose() {\n super.dispose();\n this.stopLazyRendering();\n }\n}\n\n/**\n * A base class for a Panel and Page objects.\n */\nexport class PanelModelBase extends SurveyElement\n implements IPanel, IConditionRunner, ILocalizableOwner, ISurveyErrorOwner {\n private static panelCounter = 100;\n private static getPanelId(): string {\n return \"sp_\" + PanelModelBase.panelCounter++;\n }\n\n private elementsValue: Array;\n private isQuestionsReady: boolean = false;\n private questionsValue: Array = new Array();\n addElementCallback: (element: IElement) => void;\n removeElementCallback: (element: IElement) => void;\n onGetQuestionTitleLocation: () => string;\n\n constructor(name: string = \"\") {\n super(name);\n this.createNewArray(\"rows\");\n this.elementsValue = this.createNewArray(\n \"elements\",\n this.onAddElement.bind(this),\n this.onRemoveElement.bind(this)\n );\n this.registerFunctionOnPropertyValueChanged(\n \"questionTitleLocation\",\n this.onVisibleChanged.bind(this)\n );\n this.id = PanelModelBase.getPanelId();\n this.createLocalizableString(\"title\", this, true);\n this.createLocalizableString(\"description\", this, true);\n this.createLocalizableString(\"requiredErrorText\", this);\n }\n public getType(): string {\n return \"panelbase\";\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n if (this.isDesignMode) this.onVisibleChanged();\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].setSurveyImpl(value);\n }\n }\n endLoadingFromJson() {\n super.endLoadingFromJson();\n this.markQuestionListDirty();\n this.onRowsChanged();\n }\n /**\n * PanelModel or PageModel title property.\n * @description\n */\n public get title(): string {\n return this.getLocalizableStringText(\"title\");\n }\n public set title(val: string) {\n this.setLocalizableStringText(\"title\", val);\n }\n get locTitle(): LocalizableString {\n return this.getLocalizableString(\"title\");\n }\n get _showTitle(): boolean {\n return (\n ((this.survey).showPageTitles && this.title.length > 0) ||\n (this.isDesignMode && settings.allowShowEmptyTitleInDesignMode)\n );\n }\n\n public getTitleActions(): Array {\n var titleActions = super.getTitleActions();\n this.titleActions = this.survey.getUpdatedPanelTitleActions(\n this,\n titleActions\n );\n return this.titleActions;\n }\n\n get _showDescription(): boolean {\n return (\n ((this.survey).showPageTitles && this.description.length > 0) ||\n (this.isDesignMode &&\n settings.allowShowEmptyTitleInDesignMode &&\n settings.allowShowEmptyDescriptionInDesignMode)\n );\n }\n /**\n * PanelModel or PageModel description property. It renders under title by using smaller font. Unlike the title, description can be empty.\n * @see title\n */\n public get description(): string {\n return this.getLocalizableStringText(\"description\");\n }\n public set description(val: string) {\n this.setLocalizableStringText(\"description\", val);\n }\n get locDescription(): LocalizableString {\n return this.getLocalizableString(\"description\");\n }\n public locStrsChanged() {\n super.locStrsChanged();\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].locStrsChanged();\n }\n }\n /**\n * Returns the char/string for a required panel.\n * @see SurveyModel.requiredText\n */\n public get requiredText(): string {\n return this.survey != null && this.isRequired\n ? this.survey.requiredText\n : \"\";\n }\n protected get titlePattern(): string {\n return !!this.survey ? this.survey.questionTitlePattern : \"numTitleRequire\";\n }\n public get isRequireTextOnStart() {\n return this.isRequired && this.titlePattern == \"requireNumTitle\";\n }\n public get isRequireTextBeforeTitle() {\n return this.isRequired && this.titlePattern == \"numRequireTitle\";\n }\n public get isRequireTextAfterTitle() {\n return this.isRequired && this.titlePattern == \"numTitleRequire\";\n }\n /**\n * The custom text that will be shown on required error. Use this property, if you do not want to show the default text.\n */\n public get requiredErrorText(): string {\n return this.getLocalizableStringText(\"requiredErrorText\");\n }\n public set requiredErrorText(val: string) {\n this.setLocalizableStringText(\"requiredErrorText\", val);\n }\n get locRequiredErrorText(): LocalizableString {\n return this.getLocalizableString(\"requiredErrorText\");\n }\n getLocale(): string {\n return this.survey\n ? ((this.survey)).getLocale()\n : \"\";\n }\n getMarkdownHtml(text: string, name: string) {\n return this.survey\n ? this.survey.getSurveyMarkdownHtml(this, text, name)\n : null;\n }\n getRenderer(name: string): string {\n return this.survey ? this.survey.getRendererForString(this, name) : null;\n }\n getProcessedText(text: string): string {\n return this.textProcessor\n ? this.textProcessor.processText(text, true)\n : text;\n }\n /**\n * A parent element. It is always null for the Page object and always not null for the Panel object. Panel object may contain Questions and other Panels.\n */\n public get parent(): PanelModelBase {\n return this.getPropertyValue(\"parent\", null);\n }\n public set parent(val: PanelModelBase) {\n this.setPropertyValue(\"parent\", val);\n }\n public get depth(): number {\n if (this.parent == null) return 0;\n return this.parent.depth + 1;\n }\n /**\n * An expression that returns true or false. If it returns true the Panel becomes visible and if it returns false the Panel becomes invisible. The library runs the expression on survey start and on changing a question value. If the property is empty then visible property is used.\n * @see visible\n */\n public get visibleIf(): string {\n return this.getPropertyValue(\"visibleIf\", \"\");\n }\n public set visibleIf(val: string) {\n this.setPropertyValue(\"visibleIf\", val);\n }\n private cssClassesValue: any;\n public get cssClasses(): any {\n if (!this.cssClassesValue) {\n this.cssClassesValue = this.calcCssClasses();\n }\n return this.cssClassesValue;\n }\n protected calcCssClasses(): any {\n var classes = { panel: {}, error: {}, row: \"\" };\n this.copyCssClasses(classes.panel, this.css.panel);\n this.copyCssClasses(classes.error, this.css.error);\n if (!!this.css.row) {\n classes.row = this.css.row;\n }\n if (this.survey) {\n this.survey.updatePanelCssClasses(this, classes);\n }\n return classes;\n }\n protected get css(): any {\n return !!this.survey ? this.survey.getCss() : {};\n }\n /**\n * A unique element identificator. It is generated automatically.\n */\n public get id(): string {\n return this.getPropertyValue(\"id\");\n }\n public set id(val: string) {\n this.setPropertyValue(\"id\", val);\n }\n /**\n * Returns true if the current object is Panel. Returns false if the current object is Page (a root Panel).\n */\n public get isPanel(): boolean {\n return false;\n }\n public getPanel(): IPanel {\n return this;\n }\n getLayoutType(): string {\n return \"row\";\n }\n isLayoutTypeSupported(layoutType: string): boolean {\n return layoutType !== \"flow\";\n }\n /**\n * Returns the list of all questions located in the Panel/Page, including in the nested Panels.\n * @see Question\n * @see elements\n */\n public get questions(): Array {\n if (!this.isQuestionsReady) {\n this.questionsValue = [];\n for (var i = 0; i < this.elements.length; i++) {\n var el = this.elements[i];\n if (el.isPanel) {\n var qs = (el).questions;\n for (var j = 0; j < qs.length; j++) {\n this.questionsValue.push(qs[j]);\n }\n } else {\n this.questionsValue.push(el);\n }\n }\n this.isQuestionsReady = true;\n }\n\n return this.questionsValue;\n }\n protected getValidName(name: string): string {\n if (!!name) return name.trim();\n return name;\n }\n /**\n * Returns the question by its name\n * @param name the question name\n */\n public getQuestionByName(name: string): Question {\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].name == name) return questions[i];\n }\n return null;\n }\n /**\n * Returns the element by its name. It works recursively.\n * @param name the element name\n */\n public getElementByName(name: string): IElement {\n var elements = this.elements;\n for (var i = 0; i < elements.length; i++) {\n var el = elements[i];\n if (el.name == name) return el;\n var pnl = el.getPanel();\n if (!!pnl) {\n var res = (pnl).getElementByName(name);\n if (!!res) return res;\n }\n }\n return null;\n }\n public getQuestionByValueName(valueName: string): Question {\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].getValueName() == valueName) return questions[i];\n }\n return null;\n }\n /**\n * Returns question values on the current page\n */\n public getValue(): any {\n var data: any = {};\n var questions = this.questions;\n\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n if (q.isEmpty()) continue;\n var valueName = q.getValueName();\n data[valueName] = q.value;\n if (!!this.data) {\n var comment = this.data.getComment(valueName);\n if (!!comment) {\n data[valueName + settings.commentPrefix] = comment;\n }\n }\n }\n return data;\n }\n /**\n * Return questions values as a JSON object with display text. For example, for dropdown, it would return the item text instead of item value.\n * @param keysAsText Set this value to true, to return key (in matrices questions) as display text as well.\n */\n public getDisplayValue(keysAsText: boolean): any {\n var data: any = {};\n var questions = this.questions;\n\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n if (q.isEmpty()) continue;\n var valueName = keysAsText ? q.title : q.getValueName();\n data[valueName] = q.getDisplayValue(keysAsText);\n }\n return data;\n }\n /**\n * Returns question comments on the current page\n */\n public getComments(): any {\n var comments = {};\n if (!this.data) return comments;\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n var comment = this.data.getComment(q.getValueName());\n if (!!comment) {\n (comments)[q.getValueName()] = comment;\n }\n }\n return comments;\n }\n /**\n * Call this function to remove all question values from the current page/panel, that end-user will not be able to enter.\n * For example the value that doesn't exists in a radigroup/dropdown/checkbox choices or matrix rows/columns.\n * Please note, this function doesn't clear values for invisible questions or values that doesn't associated with questions.\n * @see Question.clearIncorrectValues\n */\n public clearIncorrectValues() {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].clearIncorrectValues();\n }\n }\n /**\n * Call this function to clear all errors in the panel / page and all its child elements (panels and questions)\n */\n public clearErrors() {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].clearErrors();\n }\n this.errors = [];\n }\n private markQuestionListDirty() {\n this.isQuestionsReady = false;\n if (this.parent) this.parent.markQuestionListDirty();\n }\n /**\n * Returns the list of the elements in the object, Panel/Page. Elements can be questions or panels. The function doesn't return elements in the nested Panels.\n */\n public get elements(): Array {\n return this.elementsValue;\n }\n public getElementsInDesign(includeHidden: boolean = false): Array {\n return this.elements;\n }\n /**\n * Returns true if the current element belongs to the Panel/Page. It looks in nested Panels as well.\n * @param element\n * @see PanelModel\n */\n public containsElement(element: IElement): boolean {\n for (var i = 0; i < this.elements.length; i++) {\n var el: any = this.elements[i];\n if (el == element) return true;\n var pnl = el.getPanel();\n if (!!pnl) {\n if ((pnl).containsElement(element)) return true;\n }\n }\n return false;\n }\n /**\n * Set this property to true, to require the answer at least in one question in the panel.\n */\n public get isRequired(): boolean {\n return this.getPropertyValue(\"isRequired\", false);\n }\n public set isRequired(val: boolean) {\n this.setPropertyValue(\"isRequired\", val);\n }\n /**\n * An expression that returns true or false. If it returns true the Panel/Page becomes required.\n * The library runs the expression on survey start and on changing a question value. If the property is empty then isRequired property is used.\n * @see isRequired\n */\n public get requiredIf(): string {\n return this.getPropertyValue(\"requiredIf\", \"\");\n }\n public set requiredIf(val: string) {\n this.setPropertyValue(\"requiredIf\", val);\n }\n /**\n * Returns true, if there is an error on this Page or inside the current Panel\n * @param fireCallback set it to true, to show errors in UI\n * @param focusOnFirstError set it to true to focus on the first question that doesn't pass the validation\n */\n public hasErrors(\n fireCallback: boolean = true,\n focusOnFirstError: boolean = false,\n rec: any = null\n ): boolean {\n rec = !!rec\n ? rec\n : {\n fireCallback: fireCallback,\n focuseOnFirstError: focusOnFirstError,\n firstErrorQuestion: null,\n result: false,\n };\n this.hasErrorsCore(rec);\n if (rec.firstErrorQuestion) {\n rec.firstErrorQuestion.focus(true);\n }\n return rec.result;\n }\n private hasErrorsInPanels(rec: any) {\n var errors = >[];\n this.hasRequiredError(rec, errors);\n if (this.survey) {\n var customError = this.survey.validatePanel(this);\n if (customError) {\n errors.push(customError);\n rec.result = true;\n }\n }\n if (!!rec.fireCallback) {\n if (!!this.survey) {\n this.survey.beforeSettingPanelErrors(this, errors);\n }\n this.errors = errors;\n }\n }\n //ISurveyErrorOwner\n getErrorCustomText(text: string, error: SurveyError): string {\n if (!!this.survey) return this.survey.getErrorCustomText(text, error);\n return text;\n }\n\n private hasRequiredError(rec: any, errors: Array) {\n if (!this.isRequired) return;\n var visQuestions = >[];\n this.addQuestionsToList(visQuestions, true);\n if (visQuestions.length == 0) return;\n for (var i = 0; i < visQuestions.length; i++) {\n if (!visQuestions[i].isEmpty()) return;\n }\n rec.result = true;\n errors.push(new OneAnswerRequiredError(this.requiredErrorText, this));\n if (rec.focuseOnFirstError && !rec.firstErrorQuestion) {\n rec.firstErrorQuestion = visQuestions[0];\n }\n }\n protected hasErrorsCore(rec: any) {\n var elements = this.elements;\n var element = null;\n\n for (var i = 0; i < elements.length; i++) {\n element = elements[i];\n\n if (!element.isVisible) continue;\n\n if (element.isPanel) {\n ((element)).hasErrorsCore(rec);\n } else {\n var question = element;\n if (question.isReadOnly) continue;\n if (question.hasErrors(rec.fireCallback, rec)) {\n if (rec.focuseOnFirstError && rec.firstErrorQuestion == null) {\n rec.firstErrorQuestion = question;\n }\n rec.result = true;\n }\n }\n }\n this.hasErrorsInPanels(rec);\n this.updateContainsErrors();\n }\n protected getContainsErrors(): boolean {\n var res = super.getContainsErrors();\n if (res) return res;\n var elements = this.elements;\n for (var i = 0; i < elements.length; i++) {\n if (elements[i].containsErrors) return true;\n }\n return false;\n }\n updateElementVisibility() {\n for (var i = 0; i < this.elements.length; i++) {\n var el = this.elements[i];\n ((el)).setPropertyValue(\"isVisible\", el.isVisible);\n if (el.isPanel) {\n ((el)).updateElementVisibility();\n }\n }\n }\n getFirstQuestionToFocus(withError: boolean = false): Question {\n var elements = this.elements;\n for (var i = 0; i < elements.length; i++) {\n var el = elements[i];\n if (!el.isVisible) continue;\n if (el.isPanel) {\n var res = ((el)).getFirstQuestionToFocus(\n withError\n );\n if (!!res) return res;\n } else {\n var q = el;\n if (q.hasInput && (!withError || q.currentErrorCount > 0)) return q;\n }\n }\n return null;\n }\n /**\n * Call it to focus the input on the first question\n */\n public focusFirstQuestion() {\n var q = this.getFirstQuestionToFocus();\n if (!!q) {\n q.focus();\n }\n }\n /**\n * Call it to focus the input of the first question that has an error.\n */\n public focusFirstErrorQuestion() {\n var q = this.getFirstQuestionToFocus(true);\n if (!!q) {\n q.focus();\n }\n }\n /**\n * Fill list array with the questions.\n * @param list\n * @param visibleOnly set it to true to get visible questions only\n */\n public addQuestionsToList(\n list: Array,\n visibleOnly: boolean = false,\n includingDesignTime: boolean = false\n ) {\n this.addElementsToList(list, visibleOnly, includingDesignTime, false);\n }\n /**\n * Fill list array with the panels.\n * @param list\n */\n public addPanelsIntoList(\n list: Array,\n visibleOnly: boolean = false,\n includingDesignTime: boolean = false\n ) {\n this.addElementsToList(\n >(>list),\n visibleOnly,\n includingDesignTime,\n true\n );\n }\n private addElementsToList(\n list: Array,\n visibleOnly: boolean,\n includingDesignTime: boolean,\n isPanel: boolean\n ) {\n if (visibleOnly && !this.visible) return;\n this.addElementsToListCore(\n list,\n this.elements,\n visibleOnly,\n includingDesignTime,\n isPanel\n );\n }\n private addElementsToListCore(\n list: Array,\n elements: Array,\n visibleOnly: boolean,\n includingDesignTime: boolean,\n isPanel: boolean\n ) {\n for (var i = 0; i < elements.length; i++) {\n var el = elements[i];\n if (visibleOnly && !el.visible) continue;\n if ((isPanel && el.isPanel) || (!isPanel && !el.isPanel)) {\n list.push(el);\n }\n if (el.isPanel) {\n (el).addElementsToListCore(\n list,\n (el).elements,\n visibleOnly,\n includingDesignTime,\n isPanel\n );\n } else {\n if (includingDesignTime) {\n this.addElementsToListCore(\n list,\n ((el)).getElementsInDesign(false),\n visibleOnly,\n includingDesignTime,\n isPanel\n );\n }\n }\n }\n }\n /**\n * Returns true if the current object is Page and it is the current page.\n */\n public get isActive(): boolean {\n return !this.survey || this.survey.currentPage == this.root;\n }\n public updateCustomWidgets() {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].updateCustomWidgets();\n }\n }\n /**\n * Set this property different from \"default\" to set the specific question title location for this panel/page.\n * @see SurveyModel.questionTitleLocation\n */\n public get questionTitleLocation(): string {\n return this.getPropertyValue(\"questionTitleLocation\");\n }\n public set questionTitleLocation(value: string) {\n this.setPropertyValue(\"questionTitleLocation\", value.toLowerCase());\n }\n getQuestionTitleLocation(): string {\n if (this.onGetQuestionTitleLocation)\n return this.onGetQuestionTitleLocation();\n if (this.questionTitleLocation != \"default\")\n return this.questionTitleLocation;\n if (this.parent) return this.parent.getQuestionTitleLocation();\n return this.survey ? this.survey.questionTitleLocation : \"top\";\n }\n protected getStartIndex(): string {\n if (!!this.parent) return this.parent.getQuestionStartIndex();\n if (!!this.survey) return this.survey.questionStartIndex;\n return \"\";\n }\n getQuestionStartIndex(): string {\n return this.getStartIndex();\n }\n getChildrenLayoutType(): string {\n return \"row\";\n }\n public getProgressInfo(): IProgressInfo {\n return SurveyElement.getProgressInfoByElements(\n >(this.elements),\n this.isRequired\n );\n }\n protected get root(): PanelModelBase {\n var res = this;\n while (res.parent) res = res.parent;\n return res;\n }\n protected childVisibilityChanged() {\n var newIsVisibleValue = this.getIsPageVisible(null);\n var oldIsVisibleValue = this.getPropertyValue(\"isVisible\", true);\n if (newIsVisibleValue !== oldIsVisibleValue) {\n this.onVisibleChanged();\n }\n }\n protected createRow(): QuestionRowModel {\n return new QuestionRowModel(this);\n }\n public onSurveyLoad() {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].onSurveyLoad();\n }\n this.onElementVisibilityChanged(this);\n }\n public onFirstRendering() {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].onFirstRendering();\n }\n this.onRowsChanged();\n }\n get rows(): Array {\n return this.getPropertyValue(\"rows\");\n }\n\n public ensureRowsVisibility() {\n this.rows.forEach(row => {\n row.ensureVisibility();\n });\n }\n\n protected onRowsChanged() {\n if (this.isLoadingFromJson) return;\n this.setPropertyValue(\"rows\", this.buildRows());\n }\n protected onAddElement(element: IElement, index: number) {\n element.setSurveyImpl(this.surveyImpl);\n element.parent = this;\n this.markQuestionListDirty();\n this.updateRowsOnElementAdded(element, index);\n if (element.isPanel) {\n var p = element;\n if (this.survey) {\n this.survey.panelAdded(p, index, this, this.root);\n }\n } else {\n if (this.survey) {\n var q = element;\n this.survey.questionAdded(q, index, this, this.root);\n }\n }\n if (!!this.addElementCallback) this.addElementCallback(element);\n var self = this;\n ((element)).registerFunctionOnPropertiesValueChanged(\n [\"visible\", \"isVisible\"],\n function() {\n self.onElementVisibilityChanged(element);\n },\n this.id\n );\n ((element)).registerFunctionOnPropertyValueChanged(\n \"startWithNewLine\",\n function() {\n self.onElementStartWithNewLineChanged(element);\n },\n this.id\n );\n this.onElementVisibilityChanged(this);\n }\n protected onRemoveElement(element: IElement) {\n element.parent = null;\n this.markQuestionListDirty();\n ((element)).unRegisterFunctionOnPropertiesValueChanged(\n [\"visible\", \"isVisible\", \"startWithNewLine\"],\n this.id\n );\n this.updateRowsOnElementRemoved(element);\n if (!element.isPanel) {\n if (this.survey) this.survey.questionRemoved(element);\n } else {\n if (this.survey) this.survey.panelRemoved(element);\n }\n if (!!this.removeElementCallback) this.removeElementCallback(element);\n this.onElementVisibilityChanged(this);\n }\n private onElementVisibilityChanged(element: any) {\n if (this.isLoadingFromJson) return;\n this.updateRowsVisibility(element);\n this.childVisibilityChanged();\n if (!!this.parent) {\n this.parent.onElementVisibilityChanged(this);\n }\n }\n private onElementStartWithNewLineChanged(element: any) {\n this.onRowsChanged();\n }\n private updateRowsVisibility(element: any) {\n var rows = this.rows;\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n if (row.elements.indexOf(element) > -1) {\n row.updateVisible();\n break;\n }\n }\n }\n private canBuildRows() {\n return !this.isLoadingFromJson && this.getChildrenLayoutType() == \"row\";\n }\n private buildRows(): Array {\n if (!this.canBuildRows()) return [];\n var result = new Array();\n for (var i = 0; i < this.elements.length; i++) {\n var el = this.elements[i];\n var isNewRow = i == 0 || el.startWithNewLine;\n var row = isNewRow ? this.createRow() : result[result.length - 1];\n if (isNewRow) result.push(row);\n row.addElement(el);\n }\n for (var i = 0; i < result.length; i++) {\n result[i].updateVisible();\n }\n return result;\n }\n private updateRowsOnElementAdded(element: IElement, index: number) {\n if (!this.canBuildRows()) return;\n var dragDropInfo = new DragDropInfo(null, element);\n dragDropInfo.target = element;\n dragDropInfo.isEdge = this.elements.length > 1;\n if (this.elements.length < 2) {\n dragDropInfo.destination = this;\n } else {\n dragDropInfo.isBottom = index > 0;\n if (index == 0) {\n dragDropInfo.destination = this.elements[1];\n } else {\n dragDropInfo.destination = this.elements[index - 1];\n }\n }\n this.dragDropAddTargetToRow(dragDropInfo, null);\n }\n private updateRowsOnElementRemoved(element: IElement) {\n if (!this.canBuildRows()) return;\n this.updateRowsRemoveElementFromRow(\n element,\n this.findRowByElement(element)\n );\n }\n protected updateRowsRemoveElementFromRow(\n element: IElement,\n row: QuestionRowModel\n ) {\n if (!row || !row.panel) return;\n var elIndex = row.elements.indexOf(element);\n if (elIndex < 0) return;\n row.elements.splice(elIndex, 1);\n if (row.elements.length > 0) {\n row.updateVisible();\n } else {\n if (row.index >= 0) {\n row.panel.rows.splice(row.index, 1);\n }\n }\n }\n private findRowByElement(el: IElement): QuestionRowModel {\n var rows = this.rows;\n for (var i = 0; i < rows.length; i++) {\n if (rows[i].elements.indexOf(el) > -1) return rows[i];\n }\n return null;\n }\n elementWidthChanged(el: IElement) {\n if (this.isLoadingFromJson) return;\n var row = this.findRowByElement(el);\n if (!!row) {\n row.updateVisible();\n }\n }\n /**\n * Returns rendered title text or html.\n */\n public get processedTitle() {\n return this.getRenderedTitle(this.locTitle.textOrHtml);\n }\n protected getRenderedTitle(str: string): string {\n return this.textProcessor != null\n ? this.textProcessor.processText(str, true)\n : str;\n }\n /**\n * Use it to get/set the object visibility.\n * @see visibleIf\n */\n public get visible(): boolean {\n return this.getPropertyValue(\"visible\", true);\n }\n public set visible(value: boolean) {\n if (value === this.visible) return;\n this.setPropertyValue(\"visible\", value);\n this.setPropertyValue(\"isVisible\", this.isVisible);\n if (!this.isLoadingFromJson) this.onVisibleChanged();\n }\n protected onVisibleChanged() {\n this.setPropertyValue(\"isVisible\", this.isVisible);\n if (\n !!this.survey &&\n this.survey.isClearValueOnHiddenContainer &&\n !this.isLoadingFromJson\n ) {\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n if (!this.isVisible) {\n questions[i].clearValue();\n } else {\n questions[i].updateValueWithDefaults();\n }\n }\n }\n }\n /**\n * Returns true if object is visible or survey is in design mode right now.\n */\n public get isVisible(): boolean {\n return this.areInvisibleElementsShowing || this.getIsPageVisible(null);\n }\n getIsPageVisible(exceptionQuestion: IQuestion): boolean {\n if (!this.visible) return false;\n for (var i = 0; i < this.elements.length; i++) {\n if (this.elements[i] == exceptionQuestion) continue;\n if (this.elements[i].isVisible) return true;\n }\n return false;\n }\n public setVisibleIndex(index: number): number {\n if (!this.isVisible || index < 0) {\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].setVisibleIndex(-1);\n }\n return 0;\n }\n var startIndex = index;\n index += this.beforeSetVisibleIndex(index);\n var panelStartIndex = this.getPanelStartIndex(index);\n var panelIndex = panelStartIndex;\n for (var i = 0; i < this.elements.length; i++) {\n panelIndex += this.elements[i].setVisibleIndex(panelIndex);\n }\n if (this.isContinueNumbering()) {\n index += panelIndex - panelStartIndex;\n }\n return index - startIndex;\n }\n protected beforeSetVisibleIndex(index: number): number {\n return 0;\n }\n protected getPanelStartIndex(index: number): number {\n return index;\n }\n protected isContinueNumbering() {\n return true;\n }\n /**\n * Returns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly.\n * @see SurveyModel.model\n * @see readOnly\n */\n public get isReadOnly(): boolean {\n var isParentReadOnly = !!this.parent && this.parent.isReadOnly;\n var isSurveyReadOnly = !!this.survey && this.survey.isDisplayMode;\n return this.readOnly || isParentReadOnly || isSurveyReadOnly;\n }\n protected onReadOnlyChanged() {\n for (var i = 0; i < this.elements.length; i++) {\n var el = (this.elements[i]);\n el.setPropertyValue(\"isReadOnly\", el.isReadOnly);\n }\n super.onReadOnlyChanged();\n }\n public updateElementCss() {\n this.cssClassesValue = undefined;\n for (var i = 0; i < this.elements.length; i++) {\n var el = (this.elements[i]);\n el.updateElementCss();\n }\n super.updateElementCss();\n }\n\n /**\n * An expression that returns true or false. If it returns false the Panel/Page becomes read only and an end-user will not able to answer on qustions inside it.\n * The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used.\n * @see readOnly\n * @see isReadOnly\n */\n public get enableIf(): string {\n return this.getPropertyValue(\"enableIf\", \"\");\n }\n public set enableIf(val: string) {\n this.setPropertyValue(\"enableIf\", val);\n }\n /**\n * Add an element into Panel or Page. Returns true if the element added successfully. Otherwise returns false.\n * @param element\n * @param index element index in the elements array\n */\n public addElement(element: IElement, index: number = -1): boolean {\n if (!this.canAddElement(element)) return false;\n if (index < 0 || index >= this.elements.length) {\n this.elements.push(element);\n } else {\n this.elements.splice(index, 0, element);\n }\n return true;\n }\n\n public insertElementAfter(element: IElement, after: IElement) {\n const index = this.elements.indexOf(after);\n if (index >= 0) this.addElement(element, index + 1);\n }\n public insertElementBefore(element: IElement, before: IElement) {\n const index = this.elements.indexOf(before);\n if (index >= 0) this.addElement(element, index);\n }\n\n protected canAddElement(element: IElement): boolean {\n return (\n !!element && element.isLayoutTypeSupported(this.getChildrenLayoutType())\n );\n }\n /**\n * Add a question into Panel or Page. Returns true if the question added successfully. Otherwise returns false.\n * @param question\n * @param index element index in the elements array\n */\n public addQuestion(question: Question, index: number = -1): boolean {\n return this.addElement(question, index);\n }\n /**\n * Add a panel into Panel or Page. Returns true if the panel added successfully. Otherwise returns false.\n * @param panel\n * @param index element index in the elements array\n */\n public addPanel(panel: PanelModel, index: number = -1): boolean {\n return this.addElement(panel, index);\n }\n /**\n * Creates a new question and adds it at location of index, by default the end of the elements list. Returns null, if the question could not be created or could not be added into page or panel.\n * @param questionType the possible values are: \"text\", \"checkbox\", \"dropdown\", \"matrix\", \"html\", \"matrixdynamic\", \"matrixdropdown\" and so on.\n * @param name a question name\n * @param index element index in the elements array\n */\n public addNewQuestion(\n questionType: string,\n name: string = null,\n index: number = -1\n ): Question {\n var question = QuestionFactory.Instance.createQuestion(questionType, name);\n if (!this.addQuestion(question, index)) return null;\n return question;\n }\n /**\n * Creates a new panel and adds it into the end of the elements list. Returns null, if the panel could not be created or could not be added into page or panel.\n * @param name a panel name\n */\n public addNewPanel(name: string = null): PanelModel {\n var panel = this.createNewPanel(name);\n if (!this.addPanel(panel)) return null;\n return panel;\n }\n /**\n * Returns the index of element parameter in the elements list.\n * @param element question or panel\n */\n public indexOf(element: IElement): number {\n return this.elements.indexOf(element);\n }\n protected createNewPanel(name: string): PanelModel {\n return new PanelModel(name);\n }\n /**\n * Remove an element (Panel or Question) from the elements list.\n * @param element\n * @see elements\n */\n public removeElement(element: IElement): boolean {\n var index = this.elements.indexOf(element);\n if (index < 0) {\n for (var i = 0; i < this.elements.length; i++) {\n if (this.elements[i].removeElement(element)) return true;\n }\n return false;\n }\n this.elements.splice(index, 1);\n return true;\n }\n /**\n * Remove question from the elements list.\n * @param question\n * @see elements\n * @see removeElement\n */\n public removeQuestion(question: Question) {\n this.removeElement(question);\n }\n runCondition(values: HashTable, properties: HashTable) {\n if (this.isDesignMode || this.isLoadingFromJson) return;\n var elements = this.elements.slice();\n for (var i = 0; i < elements.length; i++) {\n elements[i].runCondition(values, properties);\n }\n if (!this.areInvisibleElementsShowing) {\n this.runVisibleCondition(values, properties);\n }\n this.runEnableCondition(values, properties);\n this.runRequiredCondition(values, properties);\n }\n private runVisibleCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.visibleIf) return;\n var conditionRunner = new ConditionRunner(this.visibleIf);\n conditionRunner.onRunComplete = (res: boolean) => {\n this.visible = res;\n };\n conditionRunner.run(values, properties);\n }\n private runEnableCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.enableIf) return;\n var conditionRunner = new ConditionRunner(this.enableIf);\n conditionRunner.onRunComplete = (res: boolean) => {\n this.readOnly = !res;\n };\n conditionRunner.run(values, properties);\n }\n private runRequiredCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.requiredIf) return;\n var conditionRunner = new ConditionRunner(this.requiredIf);\n conditionRunner.onRunComplete = (res: boolean) => {\n this.isRequired = res;\n };\n conditionRunner.run(values, properties);\n }\n onAnyValueChanged(name: string) {\n var els = this.elements;\n for (var i = 0; i < els.length; i++) {\n els[i].onAnyValueChanged(name);\n }\n }\n checkBindings(valueName: string, value: any) {\n var els = this.elements;\n for (var i = 0; i < els.length; i++) {\n ((els[i])).checkBindings(valueName, value);\n }\n }\n protected dragDropAddTarget(dragDropInfo: DragDropInfo) {\n var prevRow = this.dragDropFindRow(dragDropInfo.target);\n if (this.dragDropAddTargetToRow(dragDropInfo, prevRow)) {\n this.updateRowsRemoveElementFromRow(dragDropInfo.target, prevRow);\n }\n }\n protected dragDropFindRow(findElement: ISurveyElement): QuestionRowModel {\n if (!findElement || findElement.isPage) return null;\n var element = findElement;\n var rows = this.rows;\n for (var i = 0; i < rows.length; i++) {\n if (rows[i].elements.indexOf(element) > -1) return rows[i];\n }\n for (var i = 0; i < this.elements.length; i++) {\n var pnl = this.elements[i].getPanel();\n if (!pnl) continue;\n var row = (pnl).dragDropFindRow(element);\n if (!!row) return row;\n }\n return null;\n }\n private dragDropAddTargetToRow(\n dragDropInfo: DragDropInfo,\n prevRow: QuestionRowModel\n ): boolean {\n if (!dragDropInfo.destination) return true;\n if (this.dragDropAddTargetToEmptyPanel(dragDropInfo)) return true;\n var dest = dragDropInfo.destination;\n var destRow = this.dragDropFindRow(dest);\n if (!destRow) return true;\n if (!dragDropInfo.target.startWithNewLine)\n return this.dragDropAddTargetToExistingRow(\n dragDropInfo,\n destRow,\n prevRow\n );\n return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);\n }\n private dragDropAddTargetToEmptyPanel(dragDropInfo: DragDropInfo): boolean {\n if (dragDropInfo.destination.isPage) {\n this.dragDropAddTargetToEmptyPanelCore(\n this.root,\n dragDropInfo.target,\n dragDropInfo.isBottom\n );\n return true;\n }\n var dest = dragDropInfo.destination;\n if (dest.isPanel && !dragDropInfo.isEdge) {\n var panel = (dest);\n if ((dragDropInfo.target)[\"template\"] === dest) {\n return false;\n }\n if (\n dragDropInfo.nestedPanelDepth < 0 ||\n dragDropInfo.nestedPanelDepth >= panel.depth\n ) {\n this.dragDropAddTargetToEmptyPanelCore(\n (dest),\n dragDropInfo.target,\n dragDropInfo.isBottom\n );\n return true;\n }\n }\n return false;\n }\n private dragDropAddTargetToExistingRow(\n dragDropInfo: DragDropInfo,\n destRow: QuestionRowModel,\n prevRow: QuestionRowModel\n ): boolean {\n var index = destRow.elements.indexOf(dragDropInfo.destination);\n if (\n index == 0 &&\n !dragDropInfo.isBottom &&\n destRow.elements[0].startWithNewLine\n ) {\n if (destRow.index > 0) {\n dragDropInfo.isBottom = true;\n destRow = destRow.panel.rows[destRow.index - 1];\n dragDropInfo.destination =\n destRow.elements[destRow.elements.length - 1];\n return this.dragDropAddTargetToExistingRow(\n dragDropInfo,\n destRow,\n prevRow\n );\n } else {\n return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);\n }\n }\n var prevRowIndex = -1;\n if (prevRow == destRow) {\n prevRowIndex = destRow.elements.indexOf(dragDropInfo.target);\n }\n if (dragDropInfo.isBottom) index++;\n var srcRow = this.findRowByElement(dragDropInfo.source);\n if (\n srcRow == destRow &&\n srcRow.elements.indexOf(dragDropInfo.source) == index\n )\n return false;\n if (index == prevRowIndex) return false;\n if (prevRowIndex > -1) {\n destRow.elements.splice(prevRowIndex, 1);\n if (prevRowIndex < index) index--;\n }\n destRow.elements.splice(index, 0, dragDropInfo.target);\n destRow.updateVisible();\n return prevRowIndex < 0;\n }\n private dragDropAddTargetToNewRow(\n dragDropInfo: DragDropInfo,\n destRow: QuestionRowModel,\n prevRow: QuestionRowModel\n ): boolean {\n var targetRow = destRow.panel.createRow();\n targetRow.addElement(dragDropInfo.target);\n var index = destRow.index;\n if (dragDropInfo.isBottom) {\n index++;\n }\n //same row\n if (!!prevRow && prevRow.panel == targetRow.panel && prevRow.index == index)\n return false;\n var srcRow = this.findRowByElement(dragDropInfo.source);\n if (\n !!srcRow &&\n srcRow.panel == targetRow.panel &&\n srcRow.elements.length == 1 &&\n srcRow.index == index\n )\n return false;\n destRow.panel.rows.splice(index, 0, targetRow);\n return true;\n }\n private dragDropAddTargetToEmptyPanelCore(\n panel: PanelModelBase,\n target: IElement,\n isBottom: boolean\n ) {\n var targetRow = panel.createRow();\n targetRow.addElement(target);\n if (panel.elements.length == 0 || isBottom) {\n panel.rows.push(targetRow);\n } else {\n panel.rows.splice(0, 0, targetRow);\n }\n }\n dragDropMoveElement(src: IElement, target: IElement, targetIndex: number) {\n var srcIndex = (src.parent).elements.indexOf(src);\n if (targetIndex > srcIndex) {\n targetIndex--;\n }\n this.removeElement(src);\n this.addElement(target, targetIndex);\n }\n public dispose() {\n super.dispose();\n if (this.rows) {\n for (var i = 0; i < this.rows.length; i++) {\n this.rows[i].dispose();\n }\n this.rows.splice(0, this.rows.length);\n }\n for (var i = 0; i < this.elements.length; i++) {\n this.elements[i].dispose();\n }\n this.elements.splice(0, this.elements.length);\n }\n}\n\n/**\n * A container element, similar to the Page objects. However, unlike the Page, Panel can't be a root.\n * It may contain questions and other panels.\n */\nexport class PanelModel extends PanelModelBase\n implements IElement, ITitleOwner {\n public minWidth?: string;\n public maxWidth?: string;\n constructor(name: string = \"\") {\n super(name);\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"width\", function() {\n if (!!self.parent) {\n self.parent.elementWidthChanged(self);\n }\n });\n this.registerFunctionOnPropertiesValueChanged(\n [\"indent\", \"innerIndent\", \"rightIndent\"],\n function() {\n self.onIndentChanged();\n }\n );\n }\n public getType(): string {\n return \"panel\";\n }\n public get contentId(): string {\n return this.id + \"_content\";\n }\n public getSurvey(live: boolean = false): ISurvey {\n if (live) {\n return !!this.parent ? this.parent.getSurvey(live) : null;\n }\n return super.getSurvey(live);\n }\n onSurveyLoad() {\n super.onSurveyLoad();\n this.onIndentChanged();\n }\n protected onSetData() {\n super.onSetData();\n this.onIndentChanged();\n }\n public get isPanel(): boolean {\n return true;\n }\n /**\n * Get/set the page where the panel is located.\n */\n public get page(): IPage {\n return this.getPage(this.parent);\n }\n public set page(val: IPage) {\n this.setPage(this.parent, val);\n }\n public delete() {\n if (!!this.parent) {\n this.removeSelfFromList(this.parent.elements);\n }\n }\n /**\n * Move panel to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index,\n * if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel\n * @param container Page or Panel to where a question is relocated.\n * @param insertBefore Use it if you want to set the panel to a specific position. You may use a number (use 0 to insert int the beginning) or element, if you want to insert before this element.\n */\n public moveTo(container: IPanel, insertBefore: any = null): boolean {\n return this.moveToBase(this.parent, container, insertBefore);\n }\n /**\n * Returns the visible index of the panel in the survey. Commonly it is -1 and it doesn't show.\n * You have to set showNumber to true to show index/numbering for the Panel\n * @see showNumber\n */\n public get visibleIndex(): number {\n return this.getPropertyValue(\"visibleIndex\", -1);\n }\n /**\n * Set showNumber to true to start showing the number for this panel.\n * @see visibleIndex\n */\n public get showNumber(): boolean {\n return this.getPropertyValue(\"showNumber\", false);\n }\n public set showNumber(val: boolean) {\n this.setPropertyValue(\"showNumber\", val);\n this.notifySurveyOnVisibilityChanged();\n }\n /**\n * Gets or sets a value that specifies how the elements numbers inside panel are displayed.\n *\n * The following options are available:\n *\n * - `default` - display questions numbers as defined in parent panel or survey\n * - `onpanel` - display questions numbers, start numbering from beginning of this page\n * - `off` - turn off the numbering for questions titles\n * @see showNumber\n */\n public get showQuestionNumbers(): string {\n return this.getPropertyValue(\"showQuestionNumbers\", \"default\");\n }\n public set showQuestionNumbers(value: string) {\n this.setPropertyValue(\"showQuestionNumbers\", value);\n this.notifySurveyOnVisibilityChanged();\n }\n /**\n * Gets or sets the first question index for elements inside the panel. The first question index is '1.' by default and it is taken from survey.questionStartIndex property.\n * You may start it from '100' or from 'A', by setting '100' or 'A' to this property.\n * You can set the start index to \"(1)\" or \"# A)\" or \"a)\" to render question number as (1), # A) and a) accordingly.\n * @see survey.questionStartIndex\n */\n public get questionStartIndex(): string {\n return this.getPropertyValue(\"questionStartIndex\", \"\");\n }\n public set questionStartIndex(val: string) {\n this.setPropertyValue(\"questionStartIndex\", val);\n }\n getQuestionStartIndex(): string {\n if (!!this.questionStartIndex) return this.questionStartIndex;\n return super.getQuestionStartIndex();\n }\n /**\n * The property returns the question number. If question is invisible then it returns empty string.\n * If visibleIndex is 1, then no is 2, or 'B' if survey.questionStartIndex is 'A'.\n * @see SurveyModel.questionStartIndex\n */\n public get no(): string {\n return this.getPropertyValue(\"no\", \"\");\n }\n protected setNo(visibleIndex: number) {\n this.setPropertyValue(\n \"no\",\n Helpers.getNumberByIndex(this.visibleIndex, this.getStartIndex())\n );\n }\n protected beforeSetVisibleIndex(index: number): number {\n let visibleIndex = -1;\n if (this.showNumber && (this.isDesignMode || !this.locTitle.isEmpty)) {\n visibleIndex = index;\n }\n this.setPropertyValue(\"visibleIndex\", visibleIndex);\n this.setNo(visibleIndex);\n return visibleIndex < 0 ? 0 : 1;\n }\n protected getPanelStartIndex(index: number): number {\n if (this.showQuestionNumbers == \"off\") return -1;\n if (this.showQuestionNumbers == \"onpanel\") return 0;\n return index;\n }\n protected isContinueNumbering() {\n return (\n this.showQuestionNumbers != \"off\" && this.showQuestionNumbers != \"onpanel\"\n );\n }\n private notifySurveyOnVisibilityChanged() {\n if (this.survey != null && !this.isLoadingFromJson) {\n this.survey.panelVisibilityChanged(this, this.isVisible);\n }\n }\n protected hasErrorsCore(rec: any) {\n super.hasErrorsCore(rec);\n if (this.isCollapsed && rec.result && rec.fireCallback) {\n this.expand();\n }\n }\n protected getRenderedTitle(str: string): string {\n if (!str) {\n if (this.isCollapsed || this.isExpanded) return this.name;\n if (this.isDesignMode) return \"[\" + this.name + \"]\";\n }\n return super.getRenderedTitle(str);\n }\n /**\n * The Panel width.\n */\n public get width(): string {\n return this.getPropertyValue(\"width\");\n }\n public set width(val: string) {\n this.setPropertyValue(\"width\", val);\n }\n /**\n * The left indent. Set this property to increase the panel left indent.\n */\n public get indent(): number {\n return this.getPropertyValue(\"indent\", 0);\n }\n public set indent(val: number) {\n this.setPropertyValue(\"indent\", val);\n }\n /**\n * The inner indent. Set this property to increase the panel content margin.\n */\n public get innerIndent(): number {\n return this.getPropertyValue(\"innerIndent\", 0);\n }\n public set innerIndent(val: number) {\n this.setPropertyValue(\"innerIndent\", val);\n }\n get renderWidth(): string {\n return this.getPropertyValue(\"renderWidth\");\n }\n set renderWidth(val: string) {\n this.setPropertyValue(\"renderWidth\", val);\n }\n /**\n * The Panel renders on the new line if the property is true. If the property is false, the panel tries to render on the same line/row with a previous question/panel.\n */\n public get startWithNewLine(): boolean {\n return this.getPropertyValue(\"startWithNewLine\", true);\n }\n public set startWithNewLine(value: boolean) {\n this.setPropertyValue(\"startWithNewLine\", value);\n }\n /**\n * The right indent of the Panel.\n */\n public get rightIndent(): number {\n return this.getPropertyValue(\"rightIndent\", 0);\n }\n public set rightIndent(val: number) {\n this.setPropertyValue(\"rightIndent\", val);\n }\n get paddingLeft(): string {\n return this.getPropertyValue(\"paddingLeft\", \"\");\n }\n set paddingLeft(val: string) {\n this.setPropertyValue(\"paddingLeft\", val);\n }\n get innerPaddingLeft(): string {\n return this.getPropertyValue(\"innerPaddingLeft\", \"\");\n }\n set innerPaddingLeft(val: string) {\n this.setPropertyValue(\"innerPaddingLeft\", val);\n }\n get paddingRight(): string {\n return this.getPropertyValue(\"paddingRight\", \"\");\n }\n set paddingRight(val: string) {\n this.setPropertyValue(\"paddingRight\", val);\n }\n private onIndentChanged() {\n if (!this.getSurvey()) return;\n this.innerPaddingLeft = this.getIndentSize(this.innerIndent);\n this.paddingLeft = this.getIndentSize(this.indent);\n this.paddingRight = this.getIndentSize(this.rightIndent);\n }\n private getIndentSize(indent: number): string {\n if (indent < 1) return \"\";\n var css = (this).survey[\"css\"];\n if (!css) return \"\";\n return indent * css.question.indent + \"px\";\n }\n public clearOnDeletingContainer() {\n this.elements.forEach(element => {\n if (element instanceof Question || element instanceof PanelModel) {\n element.clearOnDeletingContainer();\n }\n });\n }\n public get hasEditButton(): boolean {\n if (this.survey && this.survey.state == \"preview\") return this.depth == 1;\n return false;\n }\n public cancelPreview() {\n if (!this.hasEditButton) return;\n this.survey.cancelPreviewByPage(this);\n }\n protected onVisibleChanged() {\n super.onVisibleChanged();\n this.notifySurveyOnVisibilityChanged();\n }\n}\n\nSerializer.addClass(\n \"panelbase\",\n [\n \"name\",\n {\n name: \"elements\",\n alternativeName: \"questions\",\n baseClassName: \"question\",\n visible: false,\n isLightSerializable: false,\n },\n { name: \"visible:boolean\", default: true },\n \"visibleIf:condition\",\n \"enableIf:condition\",\n \"requiredIf:condition\",\n \"readOnly:boolean\",\n {\n name: \"questionTitleLocation\",\n default: \"default\",\n choices: [\"default\", \"top\", \"bottom\", \"left\", \"hidden\"],\n },\n { name: \"title\", serializationProperty: \"locTitle\" },\n { name: \"description:text\", serializationProperty: \"locDescription\" },\n ],\n function() {\n return new PanelModelBase();\n }\n);\n\nSerializer.addClass(\n \"panel\",\n [\n {\n name: \"state\",\n default: \"default\",\n choices: [\"default\", \"collapsed\", \"expanded\"],\n },\n \"isRequired:boolean\",\n {\n name: \"requiredErrorText:text\",\n serializationProperty: \"locRequiredErrorText\",\n },\n { name: \"startWithNewLine:boolean\", default: true },\n \"width\",\n { name: \"innerIndent:number\", default: 0, choices: [0, 1, 2, 3] },\n { name: \"indent:number\", default: 0, choices: [0, 1, 2, 3] },\n {\n name: \"page\",\n isSerializable: false,\n visibleIf: function(obj: any) {\n var survey = obj ? obj.survey : null;\n return !survey || survey.pages.length > 1;\n },\n choices: function(obj: any) {\n var survey = obj ? obj.survey : null;\n return survey\n ? survey.pages.map((p: any) => {\n return { value: p.name, text: p.title };\n })\n : [];\n },\n },\n \"showNumber:boolean\",\n {\n name: \"showQuestionNumbers\",\n default: \"default\",\n choices: [\"default\", \"onpanel\", \"off\"],\n },\n \"questionStartIndex\",\n ],\n function() {\n return new PanelModel();\n },\n \"panelbase\"\n);\n","import { Base } from \"./base\";\r\nimport { property } from \"./jsonobject\";\r\nimport { surveyLocalization } from \"./surveyStrings\";\r\nimport { PopupUtils } from \"./utils/popup\";\r\n\r\nexport class PopupModel extends Base {\r\n @property() contentComponentName: string;\r\n @property() contentComponentData: any;\r\n @property({ defaultValue: \"bottom\" }) verticalPosition:\r\n | \"top\"\r\n | \"bottom\"\r\n | \"middle\";\r\n @property({ defaultValue: \"left\" }) horizontalPosition:\r\n | \"left\"\r\n | \"right\"\r\n | \"center\";\r\n @property({ defaultValue: false }) showPointer: boolean;\r\n @property({ defaultValue: false }) isModal: boolean;\r\n @property({ defaultValue: () => {} }) onCancel: () => void;\r\n @property({ defaultValue: () => {} }) onApply: () => void;\r\n @property({ defaultValue: () => {} }) onHide: () => void;\r\n @property({ defaultValue: () => {} }) onShow: () => void;\r\n @property({ defaultValue: \"\" }) cssClass: string;\r\n\r\n constructor(\r\n contentComponentName: string,\r\n contentComponentData: any,\r\n verticalPosition: \"top\" | \"bottom\" | \"middle\" = \"bottom\",\r\n horizontalPosition: \"left\" | \"right\" | \"center\" = \"left\",\r\n showPointer: boolean = true,\r\n isModal: boolean = false,\r\n onCancel = () => {},\r\n onApply = () => {},\r\n onHide = () => {},\r\n onShow = () => {},\r\n cssClass: string = \"\"\r\n ) {\r\n super();\r\n\r\n this.contentComponentName = contentComponentName;\r\n this.contentComponentData = contentComponentData;\r\n this.verticalPosition = verticalPosition;\r\n this.horizontalPosition = horizontalPosition;\r\n this.showPointer = showPointer;\r\n this.isModal = isModal;\r\n this.onCancel = onCancel;\r\n this.onApply = onApply;\r\n this.onHide = onHide;\r\n this.onShow = onShow;\r\n this.cssClass = cssClass;\r\n }\r\n\r\n //@property({ defaultValue: false }) isVisible: boolean;\r\n public get isVisible(): boolean {\r\n return this.getPropertyValue(\"isVisible\", false);\r\n }\r\n public set isVisible(value: boolean) {\r\n if (this.isVisible === value) {\r\n return;\r\n }\r\n\r\n this.setPropertyValue(\"isVisible\", value);\r\n\r\n this.onVisibilityChanged && this.onVisibilityChanged();\r\n\r\n if (this.isVisible) {\r\n this.onShow();\r\n } else {\r\n this.onHide();\r\n }\r\n }\r\n\r\n public toggleVisibility() {\r\n this.isVisible = !this.isVisible;\r\n }\r\n public onVisibilityChanged: () => void;\r\n}\r\n\r\nexport class PopupViewModel extends Base {\r\n // PopupBase\r\n @property({ defaultValue: 0 }) top: string | number;\r\n @property({ defaultValue: 0 }) left: string | number;\r\n @property({ defaultValue: \"left\" }) popupDirection: string;\r\n @property({ defaultValue: { left: \"0px\", top: \"0px\" } }) pointerTarget: {\r\n top: string | number;\r\n left: string | number;\r\n };\r\n public container: HTMLElement;\r\n\r\n constructor(public model: PopupModel, public targetElement?: HTMLElement) {\r\n super();\r\n this.model.onVisibilityChanged = () => {\r\n this.onIsVisibleChanged(this.isVisible);\r\n };\r\n }\r\n //\r\n public get isVisible(): boolean {\r\n return this.model.isVisible;\r\n }\r\n public get contentComponentName(): string {\r\n return this.model.contentComponentName;\r\n }\r\n public get contentComponentData(): any {\r\n return this.model.contentComponentData;\r\n }\r\n public get showPointer(): boolean {\r\n return this.model.showPointer;\r\n }\r\n public get isModal(): boolean {\r\n return this.model.isModal;\r\n }\r\n public get styleClass(): string {\r\n var css = this.model.cssClass;\r\n if (this.showPointer) {\r\n css += \" sv-popup--show-pointer\";\r\n css += ` sv-popup--${this.popupDirection}`;\r\n }\r\n\r\n return css;\r\n }\r\n\r\n private onIsVisibleChanged(isVisible: boolean) {\r\n if (isVisible) {\r\n if (this.isModal) {\r\n setTimeout(() => {\r\n this.setupModalPopup();\r\n }, 1);\r\n } else {\r\n setTimeout(() => {\r\n this.setupModelessPopup();\r\n }, 1);\r\n }\r\n }\r\n }\r\n\r\n private setupModalPopup() {\r\n const background = this.container.children[0];\r\n const container = background.children[0];\r\n this.left = (background.offsetWidth - container.offsetWidth) / 2 + \"px\";\r\n this.top = (background.offsetHeight - container.offsetHeight) / 2 + \"px\";\r\n }\r\n private setupModelessPopup() {\r\n const rect = this.targetElement.getBoundingClientRect();\r\n const background = this.container.children[0];\r\n const popupContainer = background.children[0];\r\n this.popupDirection = PopupUtils.calculatePopupDirection(\r\n this.model.verticalPosition,\r\n this.model.horizontalPosition\r\n );\r\n //AM: hang up: page selector inside 'test survey' page causes infinite loop here\r\n //do {\r\n var height = popupContainer.offsetHeight;\r\n var width = popupContainer.offsetWidth;\r\n const pos = PopupUtils.calculatePosition(\r\n rect,\r\n height,\r\n width,\r\n this.model.verticalPosition,\r\n this.model.horizontalPosition,\r\n this.showPointer\r\n );\r\n this.left = pos.left + \"px\";\r\n this.top = pos.top + \"px\";\r\n\r\n if (this.showPointer) {\r\n this.pointerTarget = PopupUtils.calculatePointerTarget(\r\n rect,\r\n pos.top,\r\n pos.left,\r\n this.model.verticalPosition,\r\n this.model.horizontalPosition\r\n );\r\n }\r\n this.pointerTarget.top += \"px\";\r\n this.pointerTarget.left += \"px\";\r\n //} while (\r\n // popupContainer.offsetWidth != width ||\r\n // popupContainer.offsetHeight != height\r\n //);\r\n }\r\n\r\n public clickOutside() {\r\n if (this.isModal) {\r\n return;\r\n }\r\n this.model.isVisible = false;\r\n }\r\n\r\n public cancel() {\r\n this.model.onCancel();\r\n this.model.isVisible = false;\r\n }\r\n\r\n public apply() {\r\n this.model.onApply();\r\n this.model.isVisible = false;\r\n }\r\n\r\n public get cancelButtonText() {\r\n return surveyLocalization.getString(\"modalCancelButtonText\");\r\n }\r\n\r\n public get applyButtonText() {\r\n return surveyLocalization.getString(\"modalApplyButtonText\");\r\n }\r\n\r\n public dispose() {\r\n super.dispose();\r\n this.model.onVisibilityChanged = undefined;\r\n }\r\n\r\n public initializePopupContainer() {\r\n const container: HTMLElement = document.createElement(\"div\");\r\n this.container = container;\r\n document.body.appendChild(this.container);\r\n }\r\n public destroyPopupContainer() {\r\n this.container.remove();\r\n this.container = undefined;\r\n }\r\n}\r\n","import { HashTable, Helpers } from \"./helpers\";\nimport { JsonObject, Serializer, property } from \"./jsonobject\";\nimport {\n SurveyError,\n SurveyElement,\n IElement,\n IQuestion,\n IPanel,\n IConditionRunner,\n ISurveyImpl,\n IPage,\n EventBase,\n ITitleOwner,\n IProgressInfo,\n Base,\n ISurvey,\n} from \"./base\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { AnswerRequiredError, CustomError } from \"./error\";\nimport { SurveyValidator, IValidatorOwner, ValidatorRunner } from \"./validator\";\nimport { TextPreProcessor, TextPreProcessorValue } from \"./textPreProcessor\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { ConditionRunner, ExpressionRunner } from \"./conditions\";\nimport { QuestionCustomWidget } from \"./questionCustomWidgets\";\nimport { CustomWidgetCollection } from \"./questionCustomWidgets\";\nimport { settings } from \"./settings\";\nimport { SurveyModel } from \"./survey\";\nimport { PanelModel } from \"./panel\";\nimport { RendererFactory } from \"./rendererFactory\";\n\nexport interface IConditionObject {\n name: string;\n text: string;\n question: Question;\n}\n\n/**\n * A base class for all questions.\n */\nexport class Question extends SurveyElement\n implements\n IQuestion,\n IConditionRunner,\n ILocalizableOwner,\n IValidatorOwner,\n ITitleOwner {\n [index: string]: any;\n private static TextPreprocessorValuesMap = {\n title: \"processedTitle\",\n require: \"requiredText\",\n };\n private static questionCounter = 100;\n private static getQuestionId(): string {\n return \"sq_\" + Question.questionCounter++;\n }\n private conditionRunner: ConditionRunner = null;\n private isCustomWidgetRequested: boolean = false;\n private customWidgetValue: QuestionCustomWidget;\n customWidgetData = { isNeedRender: true };\n focusCallback: () => void;\n surveyLoadCallback: () => void;\n\n private textPreProcessor: TextPreProcessor;\n private conditionEnabelRunner: ConditionRunner;\n private conditionRequiredRunner: ConditionRunner;\n valueChangedCallback: () => void;\n commentChangedCallback: () => void;\n validateValueCallback: () => SurveyError;\n questionTitleTemplateCallback: () => string;\n afterRenderQuestionCallback: (question: Question, element: any) => any;\n valueFromDataCallback: (val: any) => any;\n valueToDataCallback: (val: any) => any;\n onGetSurvey: () => ISurvey;\n private locProcessedTitle: LocalizableString;\n protected isReadyValue: boolean = true;\n\n /**\n * The event is fired when isReady property of question is changed.\n *
options.question - the question\n *
options.isReady - current value of isReady\n *
options.oldIsReady - old value of isReady\n */\n public onReadyChanged: EventBase = this.addEvent();\n\n public isReadOnlyRenderDiv() {\n return this.isReadOnly && settings.readOnlyCommentRenderMode === \"div\";\n }\n\n constructor(name: string) {\n super(name);\n this.id = Question.getQuestionId();\n this.onCreating();\n this.createNewArray(\"validators\", (validator: any) => {\n validator.errorOwner = this;\n });\n var locTitleValue = this.createLocalizableString(\"title\", this, true);\n locTitleValue.onGetTextCallback = (text: string): string => {\n if (!text) {\n text = this.name;\n }\n if (!this.survey) return text;\n return this.survey.getUpdatedQuestionTitle(this, text);\n };\n this.locProcessedTitle = new LocalizableString(this, true);\n this.locProcessedTitle.sharedData = locTitleValue;\n var locCommentText = this.createLocalizableString(\n \"commentText\",\n this,\n true\n );\n locCommentText.onGetTextCallback = (text: string): string => {\n return !!text ? text : surveyLocalization.getString(\"otherItemText\");\n };\n\n this.createLocalizableString(\"requiredErrorText\", this);\n this.registerFunctionOnPropertyValueChanged(\"width\", () => {\n this.updateQuestionCss();\n if (!!this.parent) {\n this.parent.elementWidthChanged(this);\n }\n });\n this.registerFunctionOnPropertyValueChanged(\"isRequired\", () => {\n this.locTitle.onChanged();\n this.cssClassesValue = undefined;\n });\n this.registerFunctionOnPropertiesValueChanged(\n [\"indent\", \"rightIndent\"],\n () => {\n this.onIndentChanged();\n }\n );\n\n this.registerFunctionOnPropertiesValueChanged(\n [\"hasComment\", \"hasOther\"],\n () => {\n this.initCommentFromSurvey();\n }\n );\n }\n public getSurvey(live: boolean = false): ISurvey {\n if (live) {\n return !!this.parent ? ((this.parent)).getSurvey(live) : null;\n }\n if (!!this.onGetSurvey) return this.onGetSurvey();\n return super.getSurvey();\n }\n public getValueName(): string {\n if (!!this.valueName) return this.valueName.toString();\n return this.name;\n }\n /**\n * Use this property if you want to store the question result in the name different from the question name.\n * Question name should be unique in the survey and valueName could be not unique. It allows to share data between several questions with the same valueName.\n * The library set the value automatically if the question.name property is not valid. For example, if it contains the period '.' symbol.\n * In this case if you set the question.name property to 'x.y' then the valueName becomes 'x y'.\n * Please note, this property is hidden for questions without input, for example html question.\n * @see name\n */\n public get valueName(): string {\n return this.getPropertyValue(\"valueName\", \"\");\n }\n public set valueName(val: string) {\n var oldValueName = this.getValueName();\n this.setPropertyValue(\"valueName\", val);\n this.onValueNameChanged(oldValueName);\n }\n protected onValueNameChanged(oldValue: string) {\n if (!this.survey) return;\n this.survey.questionRenamed(\n this,\n this.name,\n !!oldValue ? oldValue : this.name\n );\n this.initDataFromSurvey();\n }\n protected onNameChanged(oldValue: string) {\n if (!this.survey) return;\n this.survey.questionRenamed(\n this,\n oldValue,\n this.valueName ? this.valueName : oldValue\n );\n }\n public get isReady(): boolean {\n return this.isReadyValue;\n }\n /**\n * Get is question ready to use\n */\n public choicesLoaded(): void {}\n /**\n * Get/set the page where the question is located.\n */\n public get page(): IPage {\n return this.getPage(this.parent);\n }\n public set page(val: IPage) {\n this.setPage(this.parent, val);\n }\n public getPanel(): IPanel {\n return null;\n }\n public delete() {\n if (!!this.parent) {\n this.removeSelfFromList(this.parent.elements);\n }\n }\n public get isFlowLayout(): boolean {\n return this.getLayoutType() === \"flow\";\n }\n public getLayoutType(): string {\n if (!!this.parent) return this.parent.getChildrenLayoutType();\n return \"row\";\n }\n isLayoutTypeSupported(layoutType: string): boolean {\n return layoutType !== \"flow\";\n }\n /**\n * Use it to get/set the question visibility.\n * @see visibleIf\n */\n public get visible(): boolean {\n return this.getPropertyValue(\"visible\", true);\n }\n public set visible(val: boolean) {\n if (val == this.visible) return;\n this.setPropertyValue(\"visible\", val);\n this.onVisibleChanged();\n this.notifySurveyVisibilityChanged();\n }\n protected onVisibleChanged() {\n this.setPropertyValue(\"isVisible\", this.isVisible);\n if (this.isVisible && this.survey && this.survey.isClearValueOnHidden) {\n this.updateValueWithDefaults();\n }\n if (!this.isVisible && this.errors && this.errors.length > 0) {\n this.errors = [];\n }\n }\n /**\n * Use it to choose how other question values will be rendered in title if referenced in {}.\n * Please note, this property is hidden for question without input, for example html question.\n */\n public get useDisplayValuesInTitle(): boolean {\n return this.getPropertyValue(\"useDisplayValuesInTitle\", true);\n }\n public set useDisplayValuesInTitle(val: boolean) {\n this.setPropertyValue(\"useDisplayValuesInTitle\", val);\n }\n /**\n * An expression that returns true or false. If it returns true the Question becomes visible and if it returns false the Question becomes invisible. The library runs the expression on survey start and on changing a question value. If the property is empty then visible property is used.\n * @see visible\n */\n public get visibleIf(): string {\n return this.getPropertyValue(\"visibleIf\", \"\");\n }\n public set visibleIf(val: string) {\n this.setPropertyValue(\"visibleIf\", val);\n this.runConditions();\n }\n /**\n * Returns true if the question is visible or survey is in design mode right now.\n */\n public get isVisible(): boolean {\n if (this.survey && this.survey.areEmptyElementsHidden && this.isEmpty())\n return false;\n return this.visible || this.areInvisibleElementsShowing;\n }\n /**\n * Returns the visible index of the question in the survey. It can be from 0 to all visible questions count - 1\n * The visibleIndex is -1 if the title is 'hidden' or hideNumber is true\n * @see titleLocation\n * @see hideNumber\n */\n public get visibleIndex(): number {\n return this.getPropertyValue(\"visibleIndex\", -1);\n }\n /**\n * Set hideNumber to true to stop showing the number for this question. The question will not be counter\n * @see visibleIndex\n * @see titleLocation\n */\n public get hideNumber(): boolean {\n return this.getPropertyValue(\"hideNumber\", false);\n }\n public set hideNumber(val: boolean) {\n this.setPropertyValue(\"hideNumber\", val);\n this.notifySurveyVisibilityChanged();\n }\n /**\n * Returns true if the question may have a title located on the left\n */\n public get isAllowTitleLeft(): boolean {\n return true;\n }\n /**\n * Returns the type of the object as a string as it represents in the json.\n */\n public getType(): string {\n return \"question\";\n }\n /**\n * Move question to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index,\n * if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel\n * @param container Page or Panel to where a question is relocated.\n * @param insertBefore Use it if you want to set the question to a specific position. You may use a number (use 0 to insert int the beginning) or element, if you want to insert before this element.\n */\n public moveTo(container: IPanel, insertBefore: any = null): boolean {\n return this.moveToBase(this.parent, container, insertBefore);\n }\n public getProgressInfo(): IProgressInfo {\n if (!this.hasInput) return super.getProgressInfo();\n return {\n questionCount: 1,\n answeredQuestionCount: !this.isEmpty() ? 1 : 0,\n requiredQuestionCount: this.isRequired ? 1 : 0,\n requiredAnsweredQuestionCount: !this.isEmpty() && this.isRequired ? 1 : 0,\n };\n }\n private runConditions() {\n if (this.data && !this.isLoadingFromJson && !this.isDesignMode) {\n this.runCondition(\n this.getDataFilteredValues(),\n this.getDataFilteredProperties()\n );\n this.locStrsChanged();\n }\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n if (this.survey) {\n this.survey.questionCreated(this);\n }\n if (this.survey && this.survey.isDesignMode && !this.isDesignMode) {\n this.onVisibleChanged();\n }\n this.runConditions();\n }\n public getDataFilteredValues(): any {\n return !!this.data ? this.data.getFilteredValues() : null;\n }\n public getDataFilteredProperties(): any {\n var props = !!this.data ? this.data.getFilteredProperties() : {};\n props.question = this;\n return props;\n }\n /**\n * A parent element. It can be panel or page.\n */\n public get parent(): IPanel {\n return this.getPropertyValue(\"parent\", null);\n }\n public set parent(val: IPanel) {\n if (this.parent === val) return;\n this.delete();\n this.setPropertyValue(\"parent\", val);\n this.updateQuestionCss();\n this.onParentChanged();\n }\n private parentQuestionValue: Question = null;\n /**\n * A parent question. It can be a dynamic panel or dynamic/dropdown matrices. If the value is a matrix, it means that question is a cell question.\n * This property is null for a stand alone question.\n */\n public get parentQuestion(): Question {\n return this.parentQuestionValue;\n }\n setParentQuestion(val: Question) {\n this.parentQuestionValue = val;\n }\n protected onParentChanged() {}\n /**\n * Returns false if the question doesn't have a title property, for example: QuestionHtmlModel, or titleLocation property equals to \"hidden\"\n * @see titleLocation\n */\n public get hasTitle(): boolean {\n return this.getTitleLocation() !== \"hidden\";\n }\n /**\n * Set this property different from \"default\" to set the specific question title location for this panel/page.\n * Please note, this property is hidden for questions without input, for example html question.\n * @see SurveyModel.questionTitleLocation\n */\n public get titleLocation(): string {\n return this.getPropertyValue(\"titleLocation\");\n }\n public set titleLocation(value: string) {\n var isVisibilityChanged =\n this.titleLocation == \"hidden\" || value == \"hidden\";\n this.setPropertyValue(\"titleLocation\", value.toLowerCase());\n this.updateQuestionCss();\n if (isVisibilityChanged) {\n this.notifySurveyVisibilityChanged();\n }\n }\n private notifySurveyVisibilityChanged() {\n if (!this.survey || this.isLoadingFromJson) return;\n this.survey.questionVisibilityChanged(this, this.isVisible);\n if (this.survey.isClearValueOnHidden && !this.visible) {\n this.clearValue();\n }\n }\n /**\n * Return the title location based on question titleLocation property and QuestionTitleLocation of it's parents\n * @see titleLocation\n * @see PanelModelBase.QuestionTitleLocation\n * @see SurveyModel.QuestionTitleLocation\n */\n public getTitleLocation(): string {\n if (this.isFlowLayout) return \"hidden\";\n var location = this.getTitleLocationCore();\n if (location === \"left\" && !this.isAllowTitleLeft) location = \"top\";\n return location;\n }\n protected getTitleLocationCore(): string {\n if (this.titleLocation !== \"default\") return this.titleLocation;\n if (!!this.parent) return this.parent.getQuestionTitleLocation();\n if (!!this.survey) return this.survey.questionTitleLocation;\n return \"top\";\n }\n get hasTitleOnLeft(): boolean {\n return this.hasTitle && this.getTitleLocation() === \"left\";\n }\n get hasTitleOnTop(): boolean {\n return this.hasTitle && this.getTitleLocation() === \"top\";\n }\n get hasTitleOnBottom(): boolean {\n return this.hasTitle && this.getTitleLocation() === \"bottom\";\n }\n get hasTitleOnLeftTop(): boolean {\n if (!this.hasTitle) return false;\n var location = this.getTitleLocation();\n return location === \"left\" || location === \"top\";\n }\n public get errorLocation(): string {\n return this.survey ? this.survey.questionErrorLocation : \"top\";\n }\n /**\n * Returns false if the question doesn't have an input element, for example: QuestionHtmlModel\n * @see hasSingleInput\n */\n public get hasInput(): boolean {\n return true;\n }\n /**\n * Returns false if the question doesn't have an input element or have multiple inputs: matrices or panel dynamic\n * @see hasInput\n */\n public get hasSingleInput(): boolean {\n return this.hasInput;\n }\n public get inputId(): string {\n return this.id + \"i\";\n }\n /**\n * Question title. Use survey questionTitleTemplate property to change the title question is rendered. If it is empty, then question name property is used.\n * @see SurveyModel.questionTitleTemplate\n */\n public get title(): string {\n return this.getLocalizableStringText(\"title\", this.name);\n }\n public set title(val: string) {\n this.setLocalizableStringText(\"title\", val);\n }\n get locTitle(): LocalizableString {\n return this.getLocalizableString(\"title\");\n }\n /**\n * Question description. It renders under question title by using smaller font. Unlike the title, description can be empty.\n * Please note, this property is hidden for questions without input, for example html question.\n * @see title\n */\n @property({ localizable: true })\n description: string;\n /**\n * Question description location. By default, value is \"default\" and it depends on survey questionDescriptionLocation property\n * You may change it to \"underInput\" to render it under question input or \"underTitle\" to rendered it under title.\n * @see description\n * @see Survey.questionDescriptionLocation\n */\n public get descriptionLocation(): string {\n return this.getPropertyValue(\"descriptionLocation\");\n }\n public set descriptionLocation(val: string) {\n this.setPropertyValue(\"descriptionLocation\", val);\n }\n get hasDescriptionUnderTitle(): boolean {\n return this.getDescriptionLocation() == \"underTitle\";\n }\n get hasDescriptionUnderInput(): boolean {\n return this.getDescriptionLocation() == \"underInput\";\n }\n private getDescriptionLocation() {\n if (this.descriptionLocation !== \"default\") return this.descriptionLocation;\n return !!this.survey\n ? this.survey.questionDescriptionLocation\n : \"underTitle\";\n }\n public get clickTitleFunction(): any {\n if (this.hasInput) {\n var self = this;\n return function() {\n self.focus();\n return true;\n };\n }\n return undefined;\n }\n /**\n * The custom text that will be shown on required error. Use this property, if you do not want to show the default text.\n * Please note, this property is hidden for question without input, for example html question.\n */\n public get requiredErrorText(): string {\n return this.getLocalizableStringText(\"requiredErrorText\");\n }\n public set requiredErrorText(val: string) {\n this.setLocalizableStringText(\"requiredErrorText\", val);\n }\n get locRequiredErrorText(): LocalizableString {\n return this.getLocalizableString(\"requiredErrorText\");\n }\n /**\n * Use it to get or set the comment value.\n */\n public get commentText(): string {\n return this.getLocalizableStringText(\n \"commentText\",\n surveyLocalization.getString(\"otherItemText\")\n );\n }\n public set commentText(val: string) {\n this.setLocalizableStringText(\"commentText\", val);\n }\n get locCommentText(): LocalizableString {\n return this.getLocalizableString(\"commentText\");\n }\n /**\n * Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.\n */\n public getAllErrors(): Array {\n return this.errors.slice();\n }\n public getErrorByType(errorType: string): SurveyError {\n for (var i = 0; i < this.errors.length; i++) {\n if (this.errors[i].getErrorType() === errorType) return this.errors[i];\n }\n return null;\n }\n /**\n * The link to the custom widget.\n */\n public get customWidget(): QuestionCustomWidget {\n if (!this.isCustomWidgetRequested && !this.customWidgetValue) {\n this.isCustomWidgetRequested = true;\n this.updateCustomWidget();\n }\n return this.customWidgetValue;\n }\n public updateCustomWidget() {\n this.customWidgetValue = CustomWidgetCollection.Instance.getCustomWidget(\n this\n );\n }\n public get isCompositeQuestion(): boolean {\n return false;\n }\n public afterRenderQuestionElement(el: HTMLElement) {\n if (!this.survey || !this.hasSingleInput) return;\n this.survey.afterRenderQuestionInput(this, el);\n }\n public afterRender(el: HTMLElement) {\n if (!this.survey) return;\n this.survey.afterRenderQuestion(this, el);\n if (!!this.afterRenderQuestionCallback) {\n this.afterRenderQuestionCallback(this, el);\n }\n }\n public beforeDestroyQuestionElement(el: HTMLElement) {}\n /**\n * Returns the rendred question title.\n */\n public get processedTitle() {\n var res = this.locProcessedTitle.textOrHtml;\n return res ? res : this.name;\n }\n /**\n * Returns the title after processing the question template.\n * @see SurveyModel.questionTitleTemplate\n */\n public get fullTitle(): string {\n return this.locTitle.renderedHtml;\n }\n protected get titlePattern(): string {\n return !!this.survey ? this.survey.questionTitlePattern : \"numTitleRequire\";\n }\n public get isRequireTextOnStart() {\n return this.isRequired && this.titlePattern == \"requireNumTitle\";\n }\n public get isRequireTextBeforeTitle() {\n return this.isRequired && this.titlePattern == \"numRequireTitle\";\n }\n public get isRequireTextAfterTitle() {\n return this.isRequired && this.titlePattern == \"numTitleRequire\";\n }\n /**\n * The Question renders on the new line if the property is true. If the property is false, the question tries to render on the same line/row with a previous question/panel.\n */\n public get startWithNewLine(): boolean {\n return this.getPropertyValue(\"startWithNewLine\", true);\n }\n public set startWithNewLine(val: boolean) {\n if (this.startWithNewLine == val) return;\n this.setPropertyValue(\"startWithNewLine\", val);\n }\n private cssClassesValue: any;\n /**\n * Returns all css classes that used for rendering the question. You may use survey.updateQuestionCssClasses event to override css classes for a question.\n * @see SurveyModel.updateQuestionCssClasses\n */\n public get cssClasses(): any {\n if (!this.survey) return this.calcCssClasses();\n if (!this.cssClassesValue) {\n this.cssClassesValue = this.calcCssClasses();\n this.updateElementCssCore(this.cssClassesValue);\n }\n return this.cssClassesValue;\n }\n private calcCssClasses(): any {\n var css = this.css;\n var classes = { error: {} };\n this.copyCssClasses(classes, css.question);\n this.copyCssClasses(classes.error, css.error);\n this.updateCssClasses(classes, css);\n if (this.survey) {\n this.survey.updateQuestionCssClasses(this, classes);\n }\n return classes;\n }\n public get cssRoot(): string {\n this.ensureElementCss();\n return this.getPropertyValue(\"cssRoot\", \"\");\n }\n protected setCssRoot(val: string) {\n this.setPropertyValue(\"cssRoot\", val);\n }\n protected getCssRoot(cssClasses: any): string {\n var res =\n this.isFlowLayout && !this.isDesignMode\n ? cssClasses.flowRoot\n : cssClasses.mainRoot;\n if (!res) res = \"\";\n if (\n !this.isFlowLayout &&\n this.hasTitleOnLeft &&\n !!cssClasses.titleLeftRoot\n ) {\n res += \" \" + cssClasses.titleLeftRoot;\n }\n if (this.errors.length > 0 && !!cssClasses.hasError) {\n res += \" \" + cssClasses.hasError;\n }\n if (cssClasses.small && !this.width) {\n res += \" \" + cssClasses.small;\n }\n return res;\n }\n public get cssHeader(): string {\n this.ensureElementCss();\n return this.getPropertyValue(\"cssHeader\", \"\");\n }\n protected setCssHeader(val: string) {\n this.setPropertyValue(\"cssHeader\", val);\n }\n protected getCssHeader(cssClasses: any): string {\n var res = cssClasses.header || \"\";\n if (this.hasTitleOnTop && !!cssClasses.headerTop) {\n res += \" \" + cssClasses.headerTop;\n }\n if (this.hasTitleOnLeft && !!cssClasses.headerLeft) {\n res += \" \" + cssClasses.headerLeft;\n }\n if (this.hasTitleOnBottom && !!cssClasses.headerBottom) {\n res += \" \" + cssClasses.headerBottom;\n }\n return res;\n }\n public get cssContent(): string {\n this.ensureElementCss();\n return this.getPropertyValue(\"cssContent\", \"\");\n }\n protected setCssContent(val: string) {\n this.setPropertyValue(\"cssContent\", val);\n }\n protected getCssContent(cssClasses: any): string {\n var res = cssClasses.content || \"\";\n if (this.hasTitleOnLeft && !!cssClasses.contentLeft) {\n res += \" \" + cssClasses.contentLeft;\n }\n return res;\n }\n public get cssTitle(): string {\n this.ensureElementCss();\n return this.getPropertyValue(\"cssTitle\", \"\");\n }\n protected setCssTitle(val: string) {\n this.setPropertyValue(\"cssTitle\", val);\n }\n protected getCssTitle(cssClasses: any): string {\n var result = cssClasses.title;\n\n if (this.isCollapsed || this.isExpanded) {\n result += \" \" + cssClasses.titleExpandable;\n }\n\n if (this.containsErrors) {\n if (!!cssClasses.titleOnError) {\n result += \" \" + cssClasses.titleOnError;\n }\n } else if (this.isAnswered && !!cssClasses.titleOnAnswer) {\n result += \" \" + cssClasses.titleOnAnswer;\n }\n return result;\n }\n public get cssError(): string {\n this.ensureElementCss();\n return this.getPropertyValue(\"cssError\", \"\");\n }\n protected setCssError(val: string) {\n this.setPropertyValue(\"cssError\", val);\n }\n //TODO was not removed from other places\n protected getCssError(cssClasses: any): string {\n var res = cssClasses.error.root || \"\";\n if (this.errorLocation == \"top\") {\n if (!!cssClasses.error.locationTop) {\n res += \" \" + cssClasses.error.locationTop;\n }\n } else if (\n this.errorLocation === \"bottom\" &&\n !!cssClasses.error.locationBottom\n ) {\n res += \" \" + cssClasses.error.locationBottom;\n }\n return res;\n }\n public updateElementCss() {\n this.cssClassesValue = undefined;\n }\n protected updateQuestionCss(reNew?: boolean) {\n if (\n this.isLoadingFromJson ||\n !this.survey ||\n (reNew !== true && !this.cssClassesValue)\n )\n return;\n if (!this.cssClassesValue) {\n this.cssClassesValue = this.calcCssClasses();\n }\n this.updateElementCssCore(this.cssClasses);\n }\n private ensureElementCss() {\n if (!this.cssClassesValue) {\n this.updateQuestionCss(true);\n }\n }\n protected updateElementCssCore(cssClasses: any) {\n this.setCssRoot(this.getCssRoot(cssClasses));\n this.setCssHeader(this.getCssHeader(cssClasses));\n this.setCssContent(this.getCssContent(cssClasses));\n this.setCssTitle(this.getCssTitle(cssClasses));\n this.setCssError(this.getCssError(cssClasses));\n }\n protected updateCssClasses(res: any, css: any) {\n if (!css.question) return;\n if (this.isRequired) {\n if (!!css.question.required) {\n res.root = (res.root ? res.root + \" \" : \"\") + objCss;\n }\n if (css.question.titleRequired) {\n res.title += \" \" + css.question.titleRequired;\n }\n }\n var objCss = css[this.getCssType()];\n if (objCss === undefined || objCss === null) return;\n if (typeof objCss === \"string\" || objCss instanceof String) {\n res.root = (res.root ? res.root + \" \" : \"\") + objCss;\n } else {\n for (var key in objCss) {\n res[key] = objCss[key];\n }\n }\n }\n protected getCssType(): string {\n return this.getType();\n }\n private get css(): any {\n return !!this.survey ? this.survey.getCss() : {};\n }\n /**\n * Use it to set the specific width to the question like css style (%, px, em etc).\n */\n public get width(): string {\n return this.getPropertyValue(\"width\", \"\");\n }\n public set width(val: string) {\n this.setPropertyValue(\"width\", val);\n }\n /**\n * Use it to set the specific minWidth constraint to the question like css style (%, px, em etc).\n */\n public get minWidth(): string {\n return this.getPropertyValue(\"minWidth\", settings.minWidth);\n }\n public set minWidth(val: string) {\n this.setPropertyValue(\"minWidth\", val);\n }\n /**\n * Use it to set the specific maxWidth constraint to the question like css style (%, px, em etc).\n */\n public get maxWidth(): string {\n return this.getPropertyValue(\"maxWidth\", settings.maxWidth);\n }\n public set maxWidth(val: string) {\n this.setPropertyValue(\"maxWidth\", val);\n }\n /**\n * The rendered width of the question.\n */\n public get renderWidth(): string {\n return this.getPropertyValue(\"renderWidth\", \"\");\n }\n public set renderWidth(val: string) {\n this.setPropertyValue(\"renderWidth\", val);\n }\n /**\n * Set it different from 0 to increase the left padding.\n */\n public get indent(): number {\n return this.getPropertyValue(\"indent\", 0);\n }\n public set indent(val: number) {\n this.setPropertyValue(\"indent\", val);\n }\n /**\n * Set it different from 0 to increase the right padding.\n */\n public get rightIndent(): number {\n return this.getPropertyValue(\"rightIndent\", 0);\n }\n public set rightIndent(val: number) {\n this.setPropertyValue(\"rightIndent\", val);\n }\n get paddingLeft(): string {\n return this.getPropertyValue(\"paddintLeft\", \"\");\n }\n set paddingLeft(val: string) {\n this.setPropertyValue(\"paddintLeft\", val);\n }\n get paddingRight(): string {\n return this.getPropertyValue(\"paddingRight\", \"\");\n }\n set paddingRight(val: string) {\n this.setPropertyValue(\"paddingRight\", val);\n }\n private onIndentChanged() {\n this.paddingLeft = this.getIndentSize(this.indent);\n this.paddingRight = this.getIndentSize(this.rightIndent);\n }\n private getIndentSize(indent: number): string {\n if (indent < 1 || !this.getSurvey() || !this.cssClasses) return \"\";\n return indent * this.cssClasses.indent + \"px\";\n }\n /**\n * Move the focus to the input of this question.\n * @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused.\n */\n public focus(onError: boolean = false) {\n if (this.isDesignMode) return;\n\n if (!!this.survey) {\n this.survey.scrollElementToTop(this, this, null, this.id);\n }\n var id = !onError\n ? this.getFirstInputElementId()\n : this.getFirstErrorInputElementId();\n if (SurveyElement.FocusElement(id)) {\n this.fireCallback(this.focusCallback);\n }\n }\n protected fireCallback(callback: () => void) {\n if (callback) callback();\n }\n public getOthersMaxLength(): any {\n if (!this.survey) return null;\n return this.survey.maxOthersLength > 0 ? this.survey.maxOthersLength : null;\n }\n protected onCreating() {}\n protected getFirstInputElementId(): string {\n return this.inputId;\n }\n protected getFirstErrorInputElementId(): string {\n return this.getFirstInputElementId();\n }\n protected getProcessedTextValue(textValue: TextPreProcessorValue) {\n var name = textValue.name.toLocaleLowerCase();\n textValue.isExists =\n Object.keys(Question.TextPreprocessorValuesMap).indexOf(name) !== -1 ||\n (this)[textValue.name] !== undefined;\n textValue.value = (this)[\n (Question.TextPreprocessorValuesMap)[name] || textValue.name\n ];\n }\n public supportComment(): boolean {\n return false;\n }\n public supportOther(): boolean {\n return false;\n }\n /**\n * Set this property to true, to make the question a required. If a user doesn't answer the question then a validation error will be generated.\n * Please note, this property is hidden for question without input, for example html question.\n */\n public get isRequired(): boolean {\n return this.getPropertyValue(\"isRequired\", false);\n }\n public set isRequired(val: boolean) {\n this.setPropertyValue(\"isRequired\", val);\n }\n /**\n * An expression that returns true or false. If it returns true the Question becomes required and an end-user has to answer it.\n * If it returns false the Question then an end-user may not answer it the Question maybe empty.\n * The library runs the expression on survey start and on changing a question value. If the property is empty then isRequired property is used.\n * Please note, this property is hidden for question without input, for example html question.\n * @see isRequired\n */\n public get requiredIf(): string {\n return this.getPropertyValue(\"requiredIf\", \"\");\n }\n public set requiredIf(val: string) {\n this.setPropertyValue(\"requiredIf\", val);\n this.runConditions();\n }\n /**\n * Set it to true, to add a comment for the question.\n */\n public get hasComment(): boolean {\n return this.getPropertyValue(\"hasComment\", false);\n }\n public set hasComment(val: boolean) {\n if (!this.supportComment()) return;\n this.setPropertyValue(\"hasComment\", val);\n if (this.hasComment) this.hasOther = false;\n }\n /**\n * The unique identificator. It is generated automatically.\n */\n public get id(): string {\n return this.getPropertyValue(\"id\");\n }\n public set id(val: string) {\n this.setPropertyValue(\"id\", val);\n }\n public get ariaTitleId(): string {\n return this.id + \"_ariaTitle\";\n }\n public get ariaRole(): string {\n return null;\n }\n public get hasOther(): boolean {\n return this.getPropertyValue(\"hasOther\", false);\n }\n public set hasOther(val: boolean) {\n if (!this.supportOther() || this.hasOther == val) return;\n this.setPropertyValue(\"hasOther\", val);\n if (this.hasOther) this.hasComment = false;\n this.hasOtherChanged();\n }\n protected hasOtherChanged() {}\n public get requireUpdateCommentValue() {\n return this.hasComment || this.hasOther;\n }\n /**\n * Returns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly.\n * @see SurveyModel.model\n * @see readOnly\n */\n public get isReadOnly() {\n var isParentReadOnly = !!this.parent && this.parent.isReadOnly;\n var isSurveyReadOnly = !!this.survey && this.survey.isDisplayMode;\n return this.readOnly || isParentReadOnly || isSurveyReadOnly;\n }\n /**\n * An expression that returns true or false. If it returns false the Question becomes read only and an end-user will not able to answer on the qustion. The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used.\n * Please note, this property is hidden for question without input, for example html question.\n * @see readOnly\n * @see isReadOnly\n */\n public get enableIf(): string {\n return this.getPropertyValue(\"enableIf\", \"\");\n }\n public set enableIf(val: string) {\n this.setPropertyValue(\"enableIf\", val);\n this.runConditions();\n }\n /**\n * Run visibleIf and enableIf expressions. If visibleIf or/and enabledIf are not empty, then the results of performing the expression (true or false) set to the visible/readOnly properties.\n * @param values Typically survey results\n * @see visible\n * @see visibleIf\n * @see readOnly\n * @see enableIf\n */\n public runCondition(values: HashTable, properties: HashTable) {\n if (this.isDesignMode) return;\n if (!properties) properties = {};\n properties[\"question\"] = this;\n if (!this.areInvisibleElementsShowing) {\n this.runVisibleIfCondition(values, properties);\n }\n this.runEnableIfCondition(values, properties);\n this.runRequiredIfCondition(values, properties);\n }\n private runVisibleIfCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.visibleIf) return;\n if (!this.conditionRunner)\n this.conditionRunner = new ConditionRunner(this.visibleIf);\n this.conditionRunner.expression = this.visibleIf;\n this.conditionRunner.onRunComplete = (res: boolean) => {\n this.visible = res;\n };\n this.conditionRunner.run(values, properties);\n }\n private runEnableIfCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.enableIf) return;\n if (!this.conditionEnabelRunner)\n this.conditionEnabelRunner = new ConditionRunner(this.enableIf);\n this.conditionEnabelRunner.expression = this.enableIf;\n this.conditionEnabelRunner.onRunComplete = (res: boolean) => {\n this.readOnly = !res;\n };\n this.conditionEnabelRunner.run(values, properties);\n }\n private runRequiredIfCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.requiredIf) return;\n if (!this.conditionRequiredRunner)\n this.conditionRequiredRunner = new ConditionRunner(this.requiredIf);\n this.conditionRequiredRunner.expression = this.requiredIf;\n this.conditionRequiredRunner.onRunComplete = (res: boolean) => {\n this.isRequired = res;\n };\n this.conditionRequiredRunner.run(values, properties);\n }\n /**\n * The property returns the question number. If question is invisible then it returns empty string.\n * If visibleIndex is 1, then no is 2, or 'B' if survey.questionStartIndex is 'A'.\n * @see SurveyModel.questionStartIndex\n */\n public get no(): string {\n if (!this.hasTitle || this.hideNumber) return \"\";\n var no = Helpers.getNumberByIndex(this.visibleIndex, this.getStartIndex());\n if (!!this.survey) {\n no = this.survey.getUpdatedQuestionNo(this, no);\n }\n return no;\n }\n protected getStartIndex(): string {\n if (!!this.parent) return this.parent.getQuestionStartIndex();\n if (!!this.survey) return this.survey.questionStartIndex;\n return \"\";\n }\n public onSurveyLoad() {\n this.fireCallback(this.surveyLoadCallback);\n this.updateValueWithDefaults();\n }\n protected onSetData() {\n super.onSetData();\n this.initDataFromSurvey();\n this.onSurveyValueChanged(this.value);\n this.updateValueWithDefaults();\n this.onIndentChanged();\n this.updateQuestionCss();\n }\n protected initDataFromSurvey() {\n if (!!this.data) {\n this.updateValueFromSurvey(this.data.getValue(this.getValueName()));\n this.initCommentFromSurvey();\n }\n }\n protected initCommentFromSurvey() {\n if (!!this.data && this.requireUpdateCommentValue) {\n this.updateCommentFromSurvey(this.data.getComment(this.getValueName()));\n } else {\n this.updateCommentFromSurvey(\"\");\n }\n }\n protected runExpression(expression: string): any {\n if (!this.survey || !expression) return undefined;\n return this.survey.runExpression(expression);\n }\n private get questionValue(): any {\n return this.getPropertyValue(\"value\");\n }\n private set questionValue(val: any) {\n this.setPropertyValue(\"value\", val);\n }\n private get questionComment(): string {\n return this.getPropertyValue(\"comment\");\n }\n private set questionComment(val: string) {\n this.setPropertyValue(\"comment\", val);\n this.fireCallback(this.commentChangedCallback);\n }\n /**\n * Get/Set the question value.\n * @see SurveyMode.setValue\n * @see SurveyMode.getValue\n */\n public get value(): any {\n return this.getValueCore();\n }\n public set value(newValue: any) {\n this.setNewValue(newValue);\n }\n public get valueForSurvey(): any {\n if (!!this.valueToDataCallback) {\n return this.valueToDataCallback(this.value);\n }\n return this.value;\n }\n /**\n * Clear the question value. It clears the question comment as well.\n */\n public clearValue() {\n this.value = null;\n this.comment = null;\n }\n public unbindValue() {\n this.clearValue();\n }\n public createValueCopy(): any {\n return this.getUnbindValue(this.value);\n }\n protected isEditingSurveyElement(value: any): boolean {\n return Base.isSurveyElement(value);\n }\n protected getUnbindValue(value: any) {\n if (this.isEditingSurveyElement(value)) return value;\n return Helpers.getUnbindValue(value);\n }\n private canClearValueAsInvisible(): boolean {\n if (this.isVisible && this.isParentVisible) return false;\n if (!!this.page && this.page.isStarted) return false;\n if (!this.survey || !this.valueName) return true;\n return !this.survey.hasVisibleQuestionByValueName(this.valueName);\n }\n private get isParentVisible(): boolean {\n var parent = this.parent;\n while (parent) {\n if (!parent.isVisible) return false;\n parent = parent.parent;\n }\n return true;\n }\n public clearValueIfInvisible() {\n if (this.canClearValueAsInvisible()) {\n this.clearValue();\n }\n }\n public get displayValue(): any {\n if (this.isLoadingFromJson) return \"\";\n return this.getDisplayValue(true);\n }\n /**\n * Return the question value as a display text. For example, for dropdown, it would return the item text instead of item value.\n * @param keysAsText Set this value to true, to return key (in matrices questions) as display text as well.\n * @param value use this parameter, if you want to get display value for this value and not question.value. It is undefined by default.\n */\n public getDisplayValue(keysAsText: boolean, value: any = undefined): any {\n if (this.customWidget) {\n var res = this.customWidget.getDisplayValue(this, value);\n if (res) return res;\n }\n value = value == undefined ? this.createValueCopy() : value;\n if (this.isValueEmpty(value)) return \"\";\n return this.getDisplayValueCore(keysAsText, value);\n }\n protected getDisplayValueCore(keyAsText: boolean, value: any): any {\n return value;\n }\n /**\n * Set the default value to the question. It will be assign to the question on loading the survey from JSON or adding a question to the survey or on setting this property of the value is empty.\n * Please note, this property is hidden for question without input, for example html question.\n */\n public get defaultValue(): any {\n return this.getPropertyValue(\"defaultValue\");\n }\n public set defaultValue(val: any) {\n if (this.isValueExpression(val)) {\n this.defaultValueExpression = val.substr(1);\n return;\n }\n this.setPropertyValue(\"defaultValue\", this.convertDefaultValue(val));\n this.updateValueWithDefaults();\n }\n public get defaultValueExpression(): any {\n return this.getPropertyValue(\"defaultValueExpression\");\n }\n public set defaultValueExpression(val: any) {\n this.setPropertyValue(\"defaultValueExpression\", val);\n this.updateValueWithDefaults();\n }\n /**\n * Returns question answer data as a plain object: with question title, name, value and displayValue.\n * For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)\n * set options.includeEmpty to false if you want to skip empty answers\n */\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n includeQuestionTypes?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n includeQuestionTypes: false,\n }\n ) {\n if (options.includeEmpty || !this.isEmpty()) {\n var questionPlainData = {\n name: this.name,\n title: this.locTitle.renderedHtml,\n value: this.value,\n displayValue: this.displayValue,\n isNode: false,\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n };\n if (options.includeQuestionTypes === true) {\n questionPlainData.questionType = this.getType();\n }\n (options.calculations || []).forEach(calculation => {\n questionPlainData[calculation.propertyName] = this[\n calculation.propertyName\n ];\n });\n if (this.hasComment) {\n questionPlainData.isNode = true;\n questionPlainData.data = [\n {\n name: 0,\n isComment: true,\n title: \"Comment\",\n value: settings.commentPrefix,\n displayValue: this.comment,\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: false,\n },\n ];\n }\n return questionPlainData;\n }\n return undefined;\n }\n /**\n * The correct answer on the question. Set this value if you are doing a quiz.\n * Please note, this property is hidden for question without input, for example html question.\n * @see SurveyModel.correctAnswers\n * @see SurveyModel.inCorrectAnswers\n */\n public get correctAnswer(): any {\n return this.getPropertyValue(\"correctAnswer\");\n }\n public set correctAnswer(val: any) {\n this.setPropertyValue(\"correctAnswer\", this.convertDefaultValue(val));\n }\n protected convertDefaultValue(val: any): any {\n return val;\n }\n /**\n * Returns questions count: 1 for the non-matrix questions and all inner visible questions that has input(s) widgets for question of matrix types.\n * @see getQuizQuestions\n */\n public get quizQuestionCount(): number {\n if (\n this.isVisible &&\n this.hasInput &&\n !this.isValueEmpty(this.correctAnswer)\n )\n return this.getQuizQuestionCount();\n return 0;\n }\n public get correctAnswerCount(): number {\n if (!this.isEmpty() && !this.isValueEmpty(this.correctAnswer))\n return this.getCorrectAnswerCount();\n return 0;\n }\n protected getQuizQuestionCount() {\n return 1;\n }\n protected getCorrectAnswerCount(): number {\n return this.isTwoValueEquals(this.value, this.correctAnswer, true, true)\n ? 1\n : 0;\n }\n public isAnswerCorrect(): boolean {\n return this.correctAnswerCount == this.quizQuestionCount;\n }\n public updateValueWithDefaults() {\n if (\n this.isLoadingFromJson ||\n (!this.isDesignMode && this.isDefaultValueEmpty())\n )\n return;\n if (!this.isDesignMode && !this.isEmpty()) return;\n if (this.isEmpty() && this.isDefaultValueEmpty()) return;\n if (!!this.survey && this.survey.isClearValueOnHidden && !this.isVisible)\n return;\n this.setDefaultValue();\n }\n getQuestionFromArray(name: string, index: number): IQuestion {\n return null;\n }\n public getDefaultValue(): any {\n return this.defaultValue;\n }\n protected isDefaultValueEmpty(): boolean {\n return !this.defaultValueExpression && this.isValueEmpty(this.defaultValue);\n }\n protected setDefaultValue() {\n this.setValueAndRunExpression(\n this.defaultValueExpression,\n this.getUnbindValue(this.defaultValue),\n val => {\n this.value = val;\n }\n );\n }\n protected isValueExpression(val: any) {\n return !!val && typeof val == \"string\" && val.length > 0 && val[0] == \"=\";\n }\n protected setValueAndRunExpression(\n expression: string,\n defaultValue: any,\n setFunc: (val: any) => void,\n values: HashTable = null,\n properties: HashTable = null\n ) {\n var func = (val: any) => {\n if (val instanceof Date) {\n val = val.toISOString().slice(0, 10);\n }\n setFunc(val);\n };\n if (!!expression && !!this.data) {\n if (!values) values = this.data.getFilteredValues();\n if (!properties) properties = this.data.getFilteredProperties();\n var runner = new ExpressionRunner(expression);\n if (runner.canRun) {\n runner.onRunComplete = res => {\n if (res == undefined) res = this.defaultValue;\n func(res);\n };\n runner.run(values, properties);\n }\n } else {\n func(defaultValue);\n }\n }\n /**\n * The question comment value.\n */\n public get comment(): string {\n return this.getQuestionComment();\n }\n public set comment(newValue: string) {\n if (!!newValue) {\n newValue = newValue.toString().trim();\n }\n if (this.comment == newValue) return;\n this.setQuestionComment(newValue);\n }\n protected getQuestionComment(): string {\n return this.questionComment;\n }\n protected setQuestionComment(newValue: string) {\n this.setNewComment(newValue);\n }\n /**\n * Returns true if the question value is empty\n */\n public isEmpty(): boolean {\n return this.isValueEmpty(this.value);\n }\n public get isAnswered(): boolean {\n return this.getPropertyValue(\"isAnswered\");\n }\n public set isAnswered(val: boolean) {\n this.setPropertyValue(\"isAnswered\", val);\n }\n protected updateIsAnswered() {\n this.setPropertyValue(\"isAnswered\", this.getIsAnswered());\n }\n protected getIsAnswered(): boolean {\n return !this.isEmpty();\n }\n /**\n * The list of question validators.\n * Please note, this property is hidden for question without input, for example html question.\n */\n public get validators(): Array {\n return this.getPropertyValue(\"validators\");\n }\n public set validators(val: Array) {\n this.setPropertyValue(\"validators\", val);\n }\n public getValidators(): Array {\n return this.validators;\n }\n public getSupportedValidators(): Array {\n var res: Array = [];\n var className = this.getType();\n while (!!className) {\n var classValidators = (settings.supportedValidators)[className];\n if (!!classValidators) {\n for (var i = classValidators.length - 1; i >= 0; i--) {\n res.splice(0, 0, classValidators[i]);\n }\n }\n var classInfo = Serializer.findClass(className);\n className = classInfo.parentName;\n }\n return res;\n }\n private addSupportedValidators(\n supportedValidators: Array,\n classValidators: Array\n ) {}\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n objects.push({\n name: this.getValueName(),\n text: this.processedTitle,\n question: this,\n });\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n var json = new JsonObject().toJsonObject(this);\n json[\"type\"] = this.getType();\n return json;\n }\n /**\n * Returns true if there is a validation error(s) in the question.\n * @param fireCallback set it to true to show an error in UI.\n */\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n var oldHasErrors = this.errors.length > 0;\n var errors = this.checkForErrors(!!rec && rec.isOnValueChanged === true);\n if (fireCallback) {\n if (!!this.survey) {\n this.survey.beforeSettingQuestionErrors(this, errors);\n }\n this.errors = errors;\n }\n this.updateContainsErrors();\n if (oldHasErrors != errors.length > 0) {\n this.updateQuestionCss();\n }\n if (this.isCollapsed && rec && fireCallback && errors.length > 0) {\n this.expand();\n }\n return errors.length > 0;\n }\n /**\n * Returns the validation errors count.\n */\n public get currentErrorCount(): number {\n return this.errors.length;\n }\n /**\n * Returns the char/string for a required question.\n * @see SurveyModel.requiredText\n */\n public get requiredText(): string {\n return this.survey != null && this.isRequired\n ? this.survey.requiredText\n : \"\";\n }\n /**\n * Add error into the question error list.\n * @param error\n */\n public addError(error: SurveyError | string) {\n if (!error) return;\n let newError: SurveyError = null;\n if (typeof error === \"string\" || error instanceof String) {\n newError = new CustomError(error, this.survey);\n } else {\n newError = error;\n }\n this.errors.push(newError);\n }\n /**\n * Remove a particular error from the question error list.\n * @param error\n */\n public removeError(error: SurveyError) {\n var errors = this.errors;\n var index = errors.indexOf(error);\n if (index !== -1) errors.splice(index, 1);\n }\n private checkForErrors(isOnValueChanged: boolean): Array {\n var qErrors = new Array();\n if (this.isVisible && !this.isReadOnly) {\n this.collectErrors(qErrors, isOnValueChanged);\n }\n return qErrors;\n }\n private collectErrors(\n qErrors: Array,\n isOnValueChanged: boolean\n ) {\n this.onCheckForErrors(qErrors, isOnValueChanged);\n if (qErrors.length > 0 || !this.canRunValidators(isOnValueChanged)) return;\n var errors = this.runValidators();\n if (errors.length > 0) {\n //validators may change the question value.\n qErrors.length = 0;\n for (var i = 0; i < errors.length; i++) {\n qErrors.push(errors[i]);\n }\n }\n if (this.survey && qErrors.length == 0) {\n var error = this.fireSurveyValidation();\n if (error) {\n qErrors.push(error);\n }\n }\n }\n protected canRunValidators(isOnValueChanged: boolean): boolean {\n return true;\n }\n private fireSurveyValidation(): SurveyError {\n if (this.validateValueCallback) return this.validateValueCallback();\n return this.survey ? this.survey.validateQuestion(this) : null;\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n if (!isOnValueChanged && this.hasRequiredError()) {\n errors.push(new AnswerRequiredError(this.requiredErrorText, this));\n }\n }\n protected hasRequiredError(): boolean {\n return this.isRequired && this.isEmpty();\n }\n private validatorRunner: ValidatorRunner;\n private isRunningValidatorsValue = false;\n public onCompletedAsyncValidators: (hasErrors: boolean) => void;\n public get isRunningValidators(): boolean {\n return this.getIsRunningValidators();\n }\n protected getIsRunningValidators(): boolean {\n return this.isRunningValidatorsValue;\n }\n protected runValidators(): Array {\n if (!!this.validatorRunner) {\n this.validatorRunner.onAsyncCompleted = null;\n }\n this.validatorRunner = new ValidatorRunner();\n this.isRunningValidatorsValue = true;\n this.validatorRunner.onAsyncCompleted = (errors: Array) => {\n this.doOnAsyncCompleted(errors);\n };\n return this.validatorRunner.run(this);\n }\n private doOnAsyncCompleted(errors: Array) {\n for (var i = 0; i < errors.length; i++) {\n this.errors.push(errors[i]);\n }\n this.isRunningValidatorsValue = false;\n this.raiseOnCompletedAsyncValidators();\n }\n protected raiseOnCompletedAsyncValidators() {\n if (!!this.onCompletedAsyncValidators && !this.isRunningValidators) {\n this.onCompletedAsyncValidators(this.getAllErrors().length > 0);\n this.onCompletedAsyncValidators = null;\n }\n }\n private isValueChangedInSurvey = false;\n protected allowNotifyValueChanged = true;\n protected setNewValue(newValue: any) {\n var oldAnswered = this.isAnswered;\n this.setNewValueInData(newValue);\n this.allowNotifyValueChanged && this.onValueChanged();\n if (this.isAnswered != oldAnswered) {\n this.updateQuestionCss();\n }\n }\n protected isTextValue(): boolean {\n return false;\n }\n public get isSurveyInputTextUpdate(): boolean {\n return !!this.survey ? this.survey.isUpdateValueTextOnTyping : false;\n }\n private getDataLocNotification(): any {\n return this.isInputTextUpdate ? \"text\" : false;\n }\n public get isInputTextUpdate() {\n return this.isSurveyInputTextUpdate && this.isTextValue();\n }\n protected setNewValueInData(newValue: any) {\n newValue = this.valueToData(newValue);\n if (!this.isValueChangedInSurvey) {\n this.setValueCore(newValue);\n }\n }\n protected getValueCore() {\n return this.questionValue;\n }\n protected setValueCore(newValue: any) {\n this.setQuestionValue(newValue);\n if (this.data != null && this.canSetValueToSurvey()) {\n newValue = this.valueForSurvey;\n this.data.setValue(\n this.getValueName(),\n newValue,\n this.getDataLocNotification(),\n this.allowNotifyValueChanged\n );\n }\n }\n protected canSetValueToSurvey(): boolean {\n return true;\n }\n protected valueFromData(val: any): any {\n return val;\n }\n protected valueToData(val: any): any {\n return val;\n }\n protected onValueChanged() {}\n protected setNewComment(newValue: string) {\n this.questionComment = newValue;\n if (this.data != null) {\n this.data.setComment(\n this.getValueName(),\n newValue,\n this.isSurveyInputTextUpdate ? \"text\" : false\n );\n }\n }\n protected getValidName(name: string): string {\n if (!name) return name;\n return name.trim().replace(/[\\{\\}]+/g, \"\");\n }\n //IQuestion\n updateValueFromSurvey(newValue: any) {\n newValue = this.getUnbindValue(newValue);\n if (!!this.valueFromDataCallback) {\n newValue = this.valueFromDataCallback(newValue);\n }\n this.setQuestionValue(this.valueFromData(newValue));\n }\n updateCommentFromSurvey(newValue: any): any {\n this.questionComment = newValue;\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n this.questionValue = newValue;\n this.allowNotifyValueChanged &&\n this.fireCallback(this.valueChangedCallback);\n if (updateIsAnswered) this.updateIsAnswered();\n }\n onSurveyValueChanged(newValue: any) {}\n public setVisibleIndex(val: number): number {\n if (\n !this.isVisible ||\n (!this.hasTitle && !settings.setQuestionVisibleIndexForHiddenTitle) ||\n (this.hideNumber && !settings.setQuestionVisibleIndexForHiddenNumber)\n ) {\n val = -1;\n }\n this.setPropertyValue(\"visibleIndex\", val);\n return val < 0 ? 0 : 1;\n }\n public removeElement(element: IElement): boolean {\n return false;\n }\n public supportGoNextPageAutomatic() {\n return false;\n }\n public supportGoNextPageError() {\n return true;\n }\n /**\n * Call this function to remove values from the current question, that end-user will not be able to enter.\n * For example the value that doesn't exists in a radigroup/dropdown/checkbox choices or matrix rows/columns.\n */\n public clearIncorrectValues() {}\n public clearOnDeletingContainer() {}\n /**\n * Call this function to clear all errors in the question\n */\n public clearErrors() {\n this.errors = [];\n }\n public clearUnusedValues() {}\n onAnyValueChanged(name: string) {}\n checkBindings(valueName: string, value: any) {\n if (this.bindings.isEmpty() || !this.data) return;\n var props = this.bindings.getPropertiesByValueName(valueName);\n for (var i = 0; i < props.length; i++) {\n this[props[i]] = value;\n }\n }\n //ILocalizableOwner\n locOwner: ILocalizableOwner = null;\n /**\n * Returns the current survey locale\n * @see SurveyModel.locale\n */\n public getLocale(): string {\n return this.survey\n ? ((this.survey)).getLocale()\n : this.locOwner\n ? this.locOwner.getLocale()\n : \"\";\n }\n public getMarkdownHtml(text: string, name: string): string {\n return this.survey\n ? this.survey.getSurveyMarkdownHtml(this, text, name)\n : this.locOwner\n ? this.locOwner.getMarkdownHtml(text, name)\n : null;\n }\n public getRenderer(name: string): string {\n return this.survey && typeof this.survey.getRendererForString === \"function\"\n ? this.survey.getRendererForString(this, name)\n : this.locOwner && typeof this.locOwner.getRenderer === \"function\"\n ? this.locOwner.getRenderer(name)\n : null;\n }\n public getProcessedText(text: string): string {\n if (this.textProcessor)\n return this.textProcessor.processText(text, this.useDisplayValuesInTitle);\n if (this.locOwner) return this.locOwner.getProcessedText(text);\n return text;\n }\n public getComponentName(): string {\n return RendererFactory.Instance.getRendererByQuestion(this);\n }\n\n public getTitleActions(): Array {\n var titleActions = super.getTitleActions();\n this.titleActions = this.survey.getUpdatedQuestionTitleActions(\n this,\n titleActions\n );\n return this.titleActions;\n }\n\n public isDefaultRendering(): boolean {\n return (\n !!this.customWidget ||\n this.renderAs === \"default\" ||\n this.getComponentName() === \"default\"\n );\n }\n\n @property({ defaultValue: \"default\" })\n renderAs: string;\n\n //ISurveyErrorOwner\n getErrorCustomText(text: string, error: SurveyError): string {\n if (!!this.survey) return this.survey.getErrorCustomText(text, error);\n return text;\n }\n //IValidatorOwner\n getValidatorTitle(): string {\n return null;\n }\n get validatedValue(): any {\n return this.value;\n }\n set validatedValue(val: any) {\n this.value = val;\n }\n getAllValues(): any {\n return !!this.data ? this.data.getAllValues() : null;\n }\n}\nSerializer.addClass(\"question\", [\n \"!name\",\n {\n name: \"state\",\n default: \"default\",\n choices: [\"default\", \"collapsed\", \"expanded\"],\n },\n { name: \"visible:switch\", default: true },\n { name: \"useDisplayValuesInTitle:boolean\", default: true, layout: \"row\" },\n \"visibleIf:condition\",\n { name: \"width\" },\n { name: \"minWidth\", default: settings.minWidth },\n { name: \"maxWidth\", default: settings.maxWidth },\n { name: \"startWithNewLine:boolean\", default: true, layout: \"row\" },\n { name: \"indent:number\", default: 0, choices: [0, 1, 2, 3], layout: \"row\" },\n {\n name: \"page\",\n isSerializable: false,\n visibleIf: function(obj: any) {\n var survey = obj ? obj.survey : null;\n return !survey || survey.pages.length > 1;\n },\n choices: function(obj: any) {\n var survey = obj ? obj.survey : null;\n return survey\n ? survey.pages.map((p: any) => {\n return { value: p.name, text: p.title };\n })\n : [];\n },\n },\n { name: \"title:text\", serializationProperty: \"locTitle\", layout: \"row\" },\n {\n name: \"titleLocation\",\n default: \"default\",\n choices: [\"default\", \"top\", \"bottom\", \"left\", \"hidden\"],\n layout: \"row\",\n },\n {\n name: \"description:text\",\n serializationProperty: \"locDescription\",\n layout: \"row\",\n },\n {\n name: \"descriptionLocation\",\n default: \"default\",\n choices: [\"default\", \"underInput\", \"underTitle\"],\n },\n {\n name: \"hideNumber:boolean\",\n dependsOn: \"titleLocation\",\n visibleIf: function(obj: any) {\n if (!obj) {\n return true;\n }\n if ((obj).titleLocation === \"hidden\") {\n return false;\n }\n var parent: PanelModel = obj ? obj.parent : null;\n var numberingAllowedByParent =\n !parent || parent.showQuestionNumbers !== \"off\";\n if (!numberingAllowedByParent) {\n return false;\n }\n var survey: SurveyModel = obj ? obj.survey : null;\n return (\n !survey ||\n survey.showQuestionNumbers !== \"off\" ||\n (!!parent && parent.showQuestionNumbers === \"onpanel\")\n );\n },\n },\n \"valueName\",\n \"enableIf:condition\",\n \"defaultValue:value\",\n {\n name: \"defaultValueExpression:expression\",\n category: \"logic\",\n },\n \"correctAnswer:value\",\n \"isRequired:switch\",\n \"requiredIf:condition\",\n {\n name: \"requiredErrorText:text\",\n serializationProperty: \"locRequiredErrorText\",\n },\n \"readOnly:switch\",\n {\n name: \"validators:validators\",\n baseClassName: \"surveyvalidator\",\n classNamePart: \"validator\",\n },\n {\n name: \"bindings:bindings\",\n serializationProperty: \"bindings\",\n visibleIf: function(obj: any) {\n return obj.bindings.getNames().length > 0;\n },\n },\n { name: \"renderAs\", default: \"default\", visible: false },\n]);\nSerializer.addAlterNativeClassName(\"question\", \"questionbase\");\n","import { Base, IQuestion, Event } from \"./base\";\n\nexport class QuestionCustomWidget {\n public htmlTemplate: string;\n public isFirstRender: boolean = true;\n\n constructor(public name: string, public widgetJson: any) {\n this.htmlTemplate = widgetJson.htmlTemplate ? widgetJson.htmlTemplate : \"\";\n }\n public afterRender(question: IQuestion, el: any) {\n if (this.isFirstRender) {\n this.isFirstRender = false;\n question.survey.onLocaleChangedEvent.add(() => {\n this.widgetJson.willUnmount(question, el);\n this.widgetJson.afterRender(question, el);\n });\n }\n\n if (this.widgetJson.afterRender) this.widgetJson.afterRender(question, el);\n }\n public willUnmount(question: IQuestion, el: any) {\n if (this.widgetJson.willUnmount) this.widgetJson.willUnmount(question, el);\n }\n public getDisplayValue(question: IQuestion, value: any = undefined): string {\n if (this.widgetJson.getDisplayValue)\n return this.widgetJson.getDisplayValue(question, value);\n return null;\n }\n public isFit(question: IQuestion): boolean {\n if (this.isLibraryLoaded() && this.widgetJson.isFit)\n return this.widgetJson.isFit(question);\n return false;\n }\n public init() {\n if (this.widgetJson.init) {\n this.widgetJson.init();\n }\n }\n public activatedByChanged(activatedBy: string) {\n if (this.isLibraryLoaded() && this.widgetJson.activatedByChanged) {\n this.widgetJson.activatedByChanged(activatedBy);\n }\n }\n private isLibraryLoaded(): boolean {\n if (this.widgetJson.widgetIsLoaded)\n return this.widgetJson.widgetIsLoaded() == true;\n return true;\n }\n public get isDefaultRender(): boolean {\n return this.widgetJson.isDefaultRender;\n }\n public get pdfQuestionType(): string {\n return this.widgetJson.pdfQuestionType;\n }\n public get pdfRender() {\n return this.widgetJson.pdfRender;\n }\n}\n\nexport class CustomWidgetCollection {\n public static Instance: CustomWidgetCollection = new CustomWidgetCollection();\n private widgetsValues: Array = [];\n private widgetsActivatedBy = {};\n\n public onCustomWidgetAdded: Event<\n (customWidget: QuestionCustomWidget) => any,\n any\n > = new Event<(customWidget: QuestionCustomWidget) => any, any>();\n\n public get widgets(): Array {\n return this.widgetsValues;\n }\n public add(widgetJson: any, activatedBy: string = \"property\") {\n this.addCustomWidget(widgetJson, activatedBy);\n }\n public addCustomWidget(widgetJson: any, activatedBy: string = \"property\") {\n var name = widgetJson.name;\n if (!name) {\n name = \"widget_\" + this.widgets.length + 1;\n }\n var customWidget = new QuestionCustomWidget(name, widgetJson);\n this.widgetsValues.push(customWidget);\n customWidget.init();\n (this).widgetsActivatedBy[name] = activatedBy;\n customWidget.activatedByChanged(activatedBy);\n this.onCustomWidgetAdded.fire(customWidget, null);\n }\n /**\n * Returns the way the custom wiget is activated. It can be activated by a property (\"property\"), question type (\"type\") or by new/custom question type (\"customtype\").\n * @param widgetName the custom widget name\n * @see setActivatedBy\n */\n public getActivatedBy(widgetName: string): string {\n var res = (this).widgetsActivatedBy[widgetName];\n return res ? res : \"property\";\n }\n /**\n * Sets the way the custom wiget is activated. The activation types are: property (\"property\"), question type (\"type\") or new/custom question type (\"customtype\"). A custom wiget may support all or only some of this activation types.\n * @param widgetName\n * @param activatedBy there are three possible variants: \"property\", \"type\" and \"customtype\"\n */\n public setActivatedBy(widgetName: string, activatedBy: string) {\n if (!widgetName || !activatedBy) return;\n var widget = this.getCustomWidgetByName(widgetName);\n if (!widget) return;\n (this).widgetsActivatedBy[widgetName] = activatedBy;\n widget.activatedByChanged(activatedBy);\n }\n public clear() {\n this.widgetsValues = [];\n }\n public getCustomWidgetByName(name: string): QuestionCustomWidget {\n for (var i = 0; i < this.widgets.length; i++) {\n if (this.widgets[i].name == name) return this.widgets[i];\n }\n return null;\n }\n public getCustomWidget(question: IQuestion): QuestionCustomWidget {\n for (var i = 0; i < this.widgetsValues.length; i++) {\n if (this.widgetsValues[i].isFit(question)) return this.widgetsValues[i];\n }\n return null;\n }\n}\n","import { Serializer } from \"./jsonobject\";\nimport { Question } from \"./question\";\nimport { Base, SurveyError, ISurveyImpl } from \"./base\";\nimport { ItemValue } from \"./itemvalue\";\nimport { Helpers, HashTable } from \"./helpers\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { OtherEmptyError } from \"./error\";\nimport { ChoicesRestful } from \"./choicesRestful\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { ConditionRunner } from \"./conditions\";\nimport { settings } from \"./settings\";\n\n/**\n * It is a base class for checkbox, dropdown and radiogroup questions.\n */\nexport class QuestionSelectBase extends Question {\n public visibleChoicesChangedCallback: () => void;\n private filteredChoicesValue: Array;\n private conditionChoicesVisibleIfRunner: ConditionRunner;\n private conditionChoicesEnableIfRunner: ConditionRunner;\n private commentValue: string;\n private prevCommentValue: string;\n private otherItemValue: ItemValue = new ItemValue(\"other\");\n private choicesFromUrl: Array;\n private cachedValueForUrlRequests: any;\n private isChoicesLoaded: boolean;\n private enableOnLoadingChoices: boolean;\n private dependedQuestions: Array = [];\n private noneItemValue: ItemValue = new ItemValue(\"none\");\n constructor(name: string) {\n super(name);\n var noneItemText = this.createLocalizableString(\"noneText\", this, true);\n noneItemText.onGetTextCallback = function(text) {\n return !!text ? text : surveyLocalization.getString(\"noneItemText\");\n };\n this.noneItemValue.locOwner = this;\n this.noneItemValue.setLocText(noneItemText);\n\n this.createItemValues(\"choices\");\n this.registerFunctionOnPropertyValueChanged(\"choices\", () => {\n if (!this.filterItems()) {\n this.onVisibleChoicesChanged();\n }\n });\n this.registerFunctionOnPropertiesValueChanged(\n [\"choicesFromQuestion\", \"choicesFromQuestionMode\", \"hasNone\"],\n () => {\n this.onVisibleChoicesChanged();\n }\n );\n this.registerFunctionOnPropertyValueChanged(\"hideIfChoicesEmpty\", () => {\n this.updateVisibilityBasedOnChoices();\n });\n this.createNewArray(\"visibleChoices\");\n this.setPropertyValue(\"choicesByUrl\", this.createRestful());\n this.choicesByUrl.owner = this;\n this.choicesByUrl.loadingOwner = this;\n var locOtherText = this.createLocalizableString(\"otherText\", this, true);\n this.createLocalizableString(\"otherErrorText\", this, true);\n this.otherItemValue.locOwner = this;\n this.otherItemValue.setLocText(locOtherText);\n locOtherText.onGetTextCallback = function(text) {\n return !!text ? text : surveyLocalization.getString(\"otherItemText\");\n };\n this.choicesByUrl.beforeSendRequestCallback = (): void => {\n this.onBeforeSendRequest();\n };\n this.choicesByUrl.getResultCallback = (items: Array): void => {\n this.onLoadChoicesFromUrl(items);\n };\n this.choicesByUrl.updateResultCallback = (\n items: Array,\n serverResult: any\n ): Array => {\n if (this.survey) {\n return this.survey.updateChoicesFromServer(this, items, serverResult);\n }\n return items;\n };\n this.createLocalizableString(\"otherPlaceHolder\", this);\n }\n public getType(): string {\n return \"selectbase\";\n }\n public dispose() {\n super.dispose();\n for (var i = 0; i < this.dependedQuestions.length; i++) {\n this.dependedQuestions[i].choicesFromQuestion = \"\";\n }\n this.removeFromDependedQuestion(this.getQuestionWithChoices());\n }\n public supportGoNextPageError() {\n return !this.isOtherSelected || !!this.comment;\n }\n isLayoutTypeSupported(layoutType: string): boolean {\n return true;\n }\n public locStrsChanged() {\n super.locStrsChanged();\n if (!!this.choicesFromUrl) {\n ItemValue.locStrsChanged(this.choicesFromUrl);\n ItemValue.locStrsChanged(this.visibleChoices);\n }\n }\n /**\n * Returns the other item. By using this property, you may change programmatically it's value and text.\n * @see hasOther\n */\n public get otherItem(): ItemValue {\n return this.otherItemValue;\n }\n /**\n * Returns true if a user select the 'other' item.\n */\n public get isOtherSelected(): boolean {\n return this.hasOther && this.getHasOther(this.renderedValue);\n }\n /**\n * Set this property to true, to show the \"None\" item on the bottom. If end-user checks this item, all other items would be unchecked.\n */\n public get hasNone(): boolean {\n return this.getPropertyValue(\"hasNone\", false);\n }\n public set hasNone(val: boolean) {\n this.setPropertyValue(\"hasNone\", val);\n }\n /**\n * Returns the none item. By using this property, you may change programmatically it's value and text.\n * @see hasNone\n */\n public get noneItem(): ItemValue {\n return this.noneItemValue;\n }\n /**\n * Use this property to set the different text for none item.\n */\n public get noneText(): string {\n return this.getLocalizableStringText(\n \"noneText\",\n surveyLocalization.getString(\"noneItemText\")\n );\n }\n public set noneText(val: string) {\n this.setLocalizableStringText(\"noneText\", val);\n }\n get locNoneText(): LocalizableString {\n return this.getLocalizableString(\"noneText\");\n }\n /**\n * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression.\n * @see visibleIf\n * @see choicesEnableIf\n */\n public get choicesVisibleIf(): string {\n return this.getPropertyValue(\"choicesVisibleIf\", \"\");\n }\n public set choicesVisibleIf(val: string) {\n this.setPropertyValue(\"choicesVisibleIf\", val);\n this.filterItems();\n }\n /**\n * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is enabled otherwise the item becomes disabled. Please use {item} to get the current item value in the expression.\n * @see choicesVisibleIf\n */\n public get choicesEnableIf(): string {\n return this.getPropertyValue(\"choicesEnableIf\", \"\");\n }\n public set choicesEnableIf(val: string) {\n this.setPropertyValue(\"choicesEnableIf\", val);\n this.filterItems();\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n this.runItemsEnableCondition(values, properties);\n this.runItemsCondition(values, properties);\n }\n protected isTextValue(): boolean {\n return true; //for comments and others\n }\n private isSettingDefaultValue: boolean = false;\n protected setDefaultValue() {\n this.isSettingDefaultValue =\n !this.isValueEmpty(this.defaultValue) &&\n this.hasUnknownValue(this.defaultValue);\n super.setDefaultValue();\n this.isSettingDefaultValue = false;\n }\n protected getIsMultipleValue(): boolean {\n return false;\n }\n protected convertDefaultValue(val: any): any {\n if (val == null || val == undefined) return val;\n if (this.getIsMultipleValue()) {\n if (!Array.isArray(val)) return [val];\n } else {\n if (Array.isArray(val) && val.length > 0) return val[0];\n }\n return val;\n }\n protected filterItems(): boolean {\n if (\n this.isLoadingFromJson ||\n !this.data ||\n this.areInvisibleElementsShowing\n )\n return false;\n var values = this.getDataFilteredValues();\n var properties = this.getDataFilteredProperties();\n this.runItemsEnableCondition(values, properties);\n return this.runItemsCondition(values, properties);\n }\n protected runItemsCondition(\n values: HashTable,\n properties: HashTable\n ): boolean {\n this.setConditionalChoicesRunner();\n var hasChanges = this.runConditionsForItems(values, properties);\n if (\n !!this.filteredChoicesValue &&\n this.filteredChoicesValue.length === this.activeChoices.length\n ) {\n this.filteredChoicesValue = undefined;\n }\n if (hasChanges) {\n this.onVisibleChoicesChanged();\n this.clearIncorrectValues();\n }\n return hasChanges;\n }\n protected runItemsEnableCondition(\n values: HashTable,\n properties: HashTable\n ): any {\n this.setConditionalEnableChoicesRunner();\n var hasChanged = ItemValue.runEnabledConditionsForItems(\n this.activeChoices,\n this.conditionChoicesEnableIfRunner,\n values,\n properties,\n (item: ItemValue): boolean => {\n return this.onEnableItemCallBack(item);\n }\n );\n if (hasChanged) {\n this.clearDisabledValues();\n }\n this.onAfterRunItemsEnableCondition();\n }\n protected onAfterRunItemsEnableCondition() {}\n protected onEnableItemCallBack(item: ItemValue): boolean {\n return true;\n }\n private setConditionalChoicesRunner() {\n if (this.choicesVisibleIf) {\n if (!this.conditionChoicesVisibleIfRunner) {\n this.conditionChoicesVisibleIfRunner = new ConditionRunner(\n this.choicesVisibleIf\n );\n }\n this.conditionChoicesVisibleIfRunner.expression = this.choicesVisibleIf;\n } else {\n this.conditionChoicesVisibleIfRunner = null;\n }\n }\n private setConditionalEnableChoicesRunner() {\n if (this.choicesEnableIf) {\n if (!this.conditionChoicesEnableIfRunner) {\n this.conditionChoicesEnableIfRunner = new ConditionRunner(\n this.choicesEnableIf\n );\n }\n this.conditionChoicesEnableIfRunner.expression = this.choicesEnableIf;\n } else {\n this.conditionChoicesEnableIfRunner = null;\n }\n }\n private runConditionsForItems(\n values: HashTable,\n properties: HashTable\n ): boolean {\n this.filteredChoicesValue = [];\n return ItemValue.runConditionsForItems(\n this.activeChoices,\n this.getFilteredChoices(),\n this.areInvisibleElementsShowing\n ? null\n : this.conditionChoicesVisibleIfRunner,\n values,\n properties,\n !this.survey || !this.survey.areInvisibleElementsShowing\n );\n }\n protected getHasOther(val: any): boolean {\n return val === this.otherItem.value;\n }\n get validatedValue(): any {\n return this.rendredValueToDataCore(this.value);\n }\n protected createRestful(): ChoicesRestful {\n return new ChoicesRestful();\n }\n protected getQuestionComment(): string {\n if (!!this.commentValue) return this.commentValue;\n if (this.hasComment || this.getStoreOthersAsComment())\n return super.getQuestionComment();\n return this.commentValue;\n }\n private isSettingComment: boolean = false;\n protected setQuestionComment(newValue: string) {\n if (this.hasComment || this.getStoreOthersAsComment())\n super.setQuestionComment(newValue);\n else {\n if (!this.isSettingComment && newValue != this.commentValue) {\n this.isSettingComment = true;\n this.commentValue = newValue;\n if (this.isOtherSelected && !this.isRenderedValueSetting) {\n this.value = this.rendredValueToData(this.renderedValue);\n }\n this.isSettingComment = false;\n }\n }\n }\n public get renderedValue(): any {\n return this.getPropertyValue(\"renderedValue\", null);\n }\n public set renderedValue(val: any) {\n this.setPropertyValue(\"renderedValue\", val);\n this.value = this.rendredValueToData(val);\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n if (\n this.isLoadingFromJson ||\n Helpers.isTwoValueEquals(this.value, newValue)\n )\n return;\n super.setQuestionValue(newValue, updateIsAnswered);\n this.setPropertyValue(\"renderedValue\", this.rendredValueFromData(newValue));\n if (this.hasComment) return;\n var isOtherSel = this.isOtherSelected;\n if (isOtherSel && !!this.prevCommentValue) {\n var oldComment = this.prevCommentValue;\n this.prevCommentValue = \"\";\n this.comment = oldComment;\n }\n if (!isOtherSel && !!this.comment) {\n if (this.getStoreOthersAsComment()) {\n this.prevCommentValue = this.comment;\n }\n this.comment = \"\";\n }\n }\n protected setNewValue(newValue: any) {\n newValue = this.valueFromData(newValue);\n if (\n (!this.choicesByUrl.isRunning &&\n !this.choicesByUrl.isWaitingForParameters) ||\n !this.isValueEmpty(newValue)\n ) {\n this.cachedValueForUrlRequests = newValue;\n }\n super.setNewValue(newValue);\n }\n protected valueFromData(val: any): any {\n let choiceitem = ItemValue.getItemByValue(this.activeChoices, val);\n if (!!choiceitem) {\n return choiceitem.value;\n }\n return super.valueFromData(val);\n }\n protected rendredValueFromData(val: any): any {\n if (this.getStoreOthersAsComment()) return val;\n return this.renderedValueFromDataCore(val);\n }\n protected rendredValueToData(val: any): any {\n if (this.getStoreOthersAsComment()) return val;\n return this.rendredValueToDataCore(val);\n }\n protected renderedValueFromDataCore(val: any): any {\n if (!this.hasUnknownValue(val, true)) return this.valueFromData(val);\n this.comment = val;\n return this.otherItem.value;\n }\n protected rendredValueToDataCore(val: any): any {\n if (val == this.otherItem.value && this.getQuestionComment()) {\n val = this.getQuestionComment();\n }\n return val;\n }\n protected hasUnknownValue(val: any, includeOther: boolean = false): boolean {\n if (this.isValueEmpty(val)) return false;\n if (includeOther && val == this.otherItem.value) return false;\n if (this.hasNone && val == this.noneItem.value) return false;\n return ItemValue.getItemByValue(this.getFilteredChoices(), val) == null;\n }\n protected isValueDisabled(val: any): boolean {\n var itemValue = ItemValue.getItemByValue(this.getFilteredChoices(), val);\n return !!itemValue && !itemValue.isEnabled;\n }\n /**\n * If the clearIncorrectValuesCallback is set, it is used to clear incorrect values instead of default behaviour.\n */\n public clearIncorrectValuesCallback: () => void;\n /**\n * Use this property to fill the choices from a RESTful service.\n * @see choices\n * @see ChoicesRestful\n * @see [Example: RESTful Dropdown](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull)\n * @see [Docs: Fill Choices from a RESTful Service](https://surveyjs.io/Documentation/Library/?id=LibraryOverview#fill-the-choices-from-a-restful-service)\n */\n public get choicesByUrl(): ChoicesRestful {\n return this.getPropertyValue(\"choicesByUrl\");\n }\n /**\n * The list of items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown.\n * @see choicesByUrl\n * @see choicesFromQuestion\n */\n public get choices(): Array {\n return this.getPropertyValue(\"choices\");\n }\n public set choices(newValue: Array) {\n this.setPropertyValue(\"choices\", newValue);\n }\n /**\n * Set this property to get choices from the specified question instead of defining them in the current question. This avoids duplication of choices declaration in your survey definition.\n * By setting this property, the \"choices\", \"choicesVisibleIf\", \"choicesEnableIf\" and \"choicesOrder\" properties become invisible, because these question characteristics depend on actions in another (specified) question.\n * Use the `choicesFromQuestionMode` property to filter choices obtained from the specified question.\n * @see choices\n * @see choicesFromQuestionMode\n */\n public get choicesFromQuestion(): string {\n return this.getPropertyValue(\"choicesFromQuestion\");\n }\n public set choicesFromQuestion(val: string) {\n var question = this.getQuestionWithChoices();\n if (!!question) {\n question.removeFromDependedQuestion(this);\n }\n this.setPropertyValue(\"choicesFromQuestion\", val);\n }\n private addIntoDependedQuestion(question: QuestionSelectBase) {\n if (!question || question.dependedQuestions.indexOf(this) > -1) return;\n question.dependedQuestions.push(this);\n }\n private removeFromDependedQuestion(question: QuestionSelectBase) {\n if (!question) return;\n var index = question.dependedQuestions.indexOf(this);\n if (index > -1) {\n question.dependedQuestions.splice(index, 1);\n }\n }\n /**\n * This property becomes visible when the `choicesFromQuestion` property is selected. The default value is \"all\" (all visible choices from another question are displayed as they are).\n * You can set this property to \"selected\" or \"unselected\" to display only selected or unselected choices from the specified question.\n * @see choicesFromQuestion\n */\n public get choicesFromQuestionMode(): string {\n return this.getPropertyValue(\"choicesFromQuestionMode\");\n }\n public set choicesFromQuestionMode(val: string) {\n this.setPropertyValue(\"choicesFromQuestionMode\", val);\n }\n /**\n * Set this property to true to hide the question if there is no visible choices.\n */\n public get hideIfChoicesEmpty(): boolean {\n return this.getPropertyValue(\"hideIfChoicesEmpty\", false);\n }\n public set hideIfChoicesEmpty(val: boolean) {\n this.setPropertyValue(\"hideIfChoicesEmpty\", val);\n }\n public get keepIncorrectValues(): boolean {\n return this.getPropertyValue(\"keepIncorrectValues\", false);\n }\n public set keepIncorrectValues(val: boolean) {\n this.setPropertyValue(\"keepIncorrectValues\", val);\n }\n\n /**\n * Please use survey.storeOthersAsComment to change the behavior on the survey level. This property is depricated and invisible in Survey Creator.\n * By default the entered text in the others input in the checkbox/radiogroup/dropdown are stored as \"question name \" + \"-Comment\". The value itself is \"question name\": \"others\". Set this property to false, to store the entered text directly in the \"question name\" key.\n * Possible values are: \"default\", true, false\n * @see SurveyModel.storeOthersAsComment\n */\n public get storeOthersAsComment(): any {\n return this.getPropertyValue(\"storeOthersAsComment\", \"default\");\n }\n public set storeOthersAsComment(val: any) {\n this.setPropertyValue(\"storeOthersAsComment\", val);\n }\n protected hasOtherChanged() {\n this.onVisibleChoicesChanged();\n }\n /**\n * Use this property to render items in a specific order: \"asc\", \"desc\", \"random\". Default value is \"none\".\n */\n public get choicesOrder(): string {\n return this.getPropertyValue(\"choicesOrder\");\n }\n public set choicesOrder(val: string) {\n val = val.toLowerCase();\n if (val == this.choicesOrder) return;\n this.setPropertyValue(\"choicesOrder\", val);\n this.onVisibleChoicesChanged();\n }\n /**\n * Use this property to set the different text for other item.\n */\n public get otherText(): string {\n return this.getLocalizableStringText(\n \"otherText\",\n surveyLocalization.getString(\"otherItemText\")\n );\n }\n public set otherText(val: string) {\n this.setLocalizableStringText(\"otherText\", val);\n this.onVisibleChoicesChanged();\n }\n get locOtherText(): LocalizableString {\n return this.getLocalizableString(\"otherText\");\n }\n /**\n * Use this property to set the place holder text for other or comment field .\n */\n public get otherPlaceHolder(): string {\n return this.getLocalizableStringText(\"otherPlaceHolder\");\n }\n public set otherPlaceHolder(val: string) {\n this.setLocalizableStringText(\"otherPlaceHolder\", val);\n }\n get locOtherPlaceHolder(): LocalizableString {\n return this.getLocalizableString(\"otherPlaceHolder\");\n }\n /**\n * The text that shows when the other item is choosed by the other input is empty.\n */\n public get otherErrorText(): string {\n return this.getLocalizableStringText(\n \"otherErrorText\",\n surveyLocalization.getString(\"otherRequiredError\")\n );\n }\n public set otherErrorText(val: string) {\n this.setLocalizableStringText(\"otherErrorText\", val);\n }\n get locOtherErrorText(): LocalizableString {\n return this.getLocalizableString(\"otherErrorText\");\n }\n /**\n * The list of items as they will be rendered. If needed items are sorted and the other item is added.\n * @see hasOther\n * @see choicesOrder\n * @see enabledChoices\n */\n public get visibleChoices(): Array {\n return this.getPropertyValue(\"visibleChoices\", []);\n }\n /**\n * The list of enabled items as they will be rendered. The disabled items are not included\n * @see hasOther\n * @see choicesOrder\n * @see visibleChoices\n */\n public get enabledChoices(): Array {\n var res = [];\n var items = this.visibleChoices;\n for (var i = 0; i < items.length; i++) {\n if (items[i].isEnabled) res.push(items[i]);\n }\n return res;\n }\n protected updateVisibleChoices() {\n if (this.isLoadingFromJson) return;\n var newValue = new Array();\n var calcValue = this.calcVisibleChoices();\n if (!calcValue) calcValue = [];\n for (var i = 0; i < calcValue.length; i++) {\n newValue.push(calcValue[i]);\n }\n this.setPropertyValue(\"visibleChoices\", newValue);\n }\n private calcVisibleChoices(): Array {\n if (this.canUseFilteredChoices()) return this.getFilteredChoices();\n var res = this.sortVisibleChoices(this.getFilteredChoices().slice());\n this.addToVisibleChoices(res);\n return res;\n }\n protected canUseFilteredChoices(): boolean {\n return !this.hasNone && !this.hasOther && this.choicesOrder == \"none\";\n }\n protected addToVisibleChoices(items: Array) {\n if (this.hasOther) {\n items.push(this.otherItem);\n }\n if (this.hasNone) {\n items.push(this.noneItem);\n }\n }\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n includeQuestionTypes?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n includeQuestionTypes: false,\n }\n ) {\n var questionPlainData = super.getPlainData(options);\n if (!!questionPlainData) {\n var values = Array.isArray(this.value) ? this.value : [this.value];\n questionPlainData.isNode = true;\n questionPlainData.data = (questionPlainData.data || []).concat(\n values.map((dataValue, index) => {\n var choice = ItemValue.getItemByValue(this.visibleChoices, dataValue);\n var choiceDataItem = {\n name: index,\n title: \"Choice\",\n value: dataValue,\n displayValue: this.getChoicesDisplayValue(\n this.visibleChoices,\n dataValue\n ),\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: false,\n };\n if (!!choice) {\n (options.calculations || []).forEach(calculation => {\n choiceDataItem[calculation.propertyName] =\n choice[calculation.propertyName];\n });\n }\n if (this.isOtherSelected && this.otherItemValue === choice) {\n choiceDataItem.isOther = true;\n choiceDataItem.displayValue = this.comment;\n }\n return choiceDataItem;\n })\n );\n }\n return questionPlainData;\n }\n\n /**\n * Returns the text for the current value. If the value is null then returns empty string. If 'other' is selected then returns the text for other value.\n */\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n return this.getChoicesDisplayValue(this.visibleChoices, value);\n }\n protected getChoicesDisplayValue(items: ItemValue[], val: any): any {\n if (val == this.otherItemValue.value)\n return this.comment ? this.comment : this.locOtherText.textOrHtml;\n var str = ItemValue.getTextOrHtmlByValue(items, val);\n return str == \"\" && val ? val : str;\n }\n private getFilteredChoices(): Array {\n return this.filteredChoicesValue\n ? this.filteredChoicesValue\n : this.activeChoices;\n }\n private otherQuestionActiveChoices: Array;\n protected get activeChoices(): Array {\n var question = this.getQuestionWithChoices();\n if (!!question) {\n this.addIntoDependedQuestion(question);\n this.otherQuestionActiveChoices = this.getChoicesFromQuestion(question);\n return !!this.otherQuestionActiveChoices\n ? this.otherQuestionActiveChoices\n : question.visibleChoices;\n }\n return this.choicesFromUrl ? this.choicesFromUrl : this.getChoices();\n }\n private getQuestionWithChoices(): QuestionSelectBase {\n if (!this.choicesFromQuestion || !this.survey) return null;\n var res: any = this.survey.getQuestionByName(this.choicesFromQuestion);\n return !!res && !!res.visibleChoices && res !== this ? res : null;\n }\n protected getChoicesFromQuestion(\n question: QuestionSelectBase\n ): Array {\n if (\n this.choicesFromQuestionMode !== \"selected\" &&\n this.choicesFromQuestionMode !== \"unselected\"\n )\n return null;\n var res: Array = [];\n var isSelected = this.choicesFromQuestionMode == \"selected\";\n var choices = question.visibleChoices;\n for (var i = 0; i < choices.length; i++) {\n var itemsSelected = question.isItemSelected(choices[i]);\n if ((itemsSelected && isSelected) || (!itemsSelected && !isSelected)) {\n res.push(choices[i]);\n }\n }\n return res;\n }\n protected getChoices(): Array {\n return this.choices;\n }\n public supportComment(): boolean {\n return true;\n }\n public supportOther(): boolean {\n return true;\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n super.onCheckForErrors(errors, isOnValueChanged);\n if (!this.hasOther || !this.isOtherSelected || this.comment) return;\n errors.push(new OtherEmptyError(this.otherErrorText, this));\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n this.runChoicesByUrl();\n }\n protected getStoreOthersAsComment() {\n if (this.isSettingDefaultValue) return false;\n return (\n this.storeOthersAsComment === true ||\n (this.storeOthersAsComment == \"default\" &&\n (this.survey != null ? this.survey.storeOthersAsComment : true)) ||\n (!this.choicesByUrl.isEmpty && !this.choicesFromUrl)\n );\n }\n onSurveyLoad() {\n super.onSurveyLoad();\n this.runChoicesByUrl();\n this.onVisibleChoicesChanged();\n }\n onAnyValueChanged(name: string) {\n super.onAnyValueChanged(name);\n if (name != this.getValueName()) {\n this.runChoicesByUrl();\n }\n if (!!name && name == this.choicesFromQuestion) {\n this.onVisibleChoicesChanged();\n }\n }\n updateValueFromSurvey(newValue: any) {\n var newComment = \"\";\n if (this.hasOther && this.getStoreOthersAsComment()) {\n if (this.hasUnknownValue(newValue) && !this.getHasOther(newValue)) {\n newComment = this.getCommentFromValue(newValue);\n newValue = this.setOtherValueIntoValue(newValue);\n } else {\n newComment = this.data.getComment(this.getValueName());\n }\n }\n super.updateValueFromSurvey(newValue);\n if (!!newComment) {\n this.setNewComment(newComment);\n }\n }\n protected getCommentFromValue(newValue: any): string {\n return newValue;\n }\n protected setOtherValueIntoValue(newValue: any): any {\n return this.otherItem.value;\n }\n private isRunningChoices: boolean = false;\n private runChoicesByUrl() {\n if (!this.choicesByUrl || this.isLoadingFromJson || this.isRunningChoices)\n return;\n var processor = this.surveyImpl\n ? this.surveyImpl.getTextProcessor()\n : this.textProcessor;\n if (!processor) processor = this.survey;\n if (!processor) return;\n this.isReadyValue = this.isChoicesLoaded || this.choicesByUrl.isEmpty;\n this.isRunningChoices = true;\n this.choicesByUrl.run(processor);\n this.isRunningChoices = false;\n }\n private isFirstLoadChoicesFromUrl = true;\n protected onBeforeSendRequest() {\n if (settings.disableOnGettingChoicesFromWeb === true && !this.isReadOnly) {\n this.enableOnLoadingChoices = true;\n this.readOnly = true;\n }\n }\n protected onLoadChoicesFromUrl(array: Array) {\n if (this.enableOnLoadingChoices) {\n this.readOnly = false;\n }\n if (!this.isReadOnly) {\n var errors = [];\n if (this.choicesByUrl && this.choicesByUrl.error) {\n errors.push(this.choicesByUrl.error);\n }\n this.errors = errors;\n }\n var newChoices = null;\n var checkCachedValuesOnExisting = true;\n if (\n this.isFirstLoadChoicesFromUrl &&\n !this.cachedValueForUrlRequests &&\n this.defaultValue\n ) {\n this.cachedValueForUrlRequests = this.defaultValue;\n checkCachedValuesOnExisting = false;\n }\n if (this.isValueEmpty(this.cachedValueForUrlRequests)) {\n this.cachedValueForUrlRequests = this.value;\n }\n this.isFirstLoadChoicesFromUrl = false;\n var cachedValues = this.createCachedValueForUrlRequests(\n this.cachedValueForUrlRequests,\n checkCachedValuesOnExisting\n );\n if (array && array.length > 0) {\n newChoices = new Array();\n ItemValue.setData(newChoices, array);\n }\n if (!!newChoices) {\n for (var i = 0; i < newChoices.length; i++) {\n newChoices[i].locOwner = this;\n }\n }\n this.choicesFromUrl = newChoices;\n this.filterItems();\n this.onVisibleChoicesChanged();\n if (newChoices) {\n var newValue = this.updateCachedValueForUrlRequests(\n cachedValues,\n newChoices\n );\n if (!!newValue && !this.isReadOnly) {\n var hasChanged = !Helpers.isTwoValueEquals(this.value, newValue.value);\n try {\n if (!this.isValueEmpty(newValue.value)) {\n this.allowNotifyValueChanged = false;\n this.setQuestionValue(undefined);\n }\n this.allowNotifyValueChanged = hasChanged;\n if (hasChanged) {\n this.value = newValue.value;\n } else {\n this.setQuestionValue(newValue.value);\n }\n } finally {\n this.allowNotifyValueChanged = true;\n }\n }\n }\n this.choicesLoaded();\n }\n private createCachedValueForUrlRequests(\n val: any,\n checkOnExisting: boolean\n ): any {\n if (this.isValueEmpty(val)) return null;\n if (Array.isArray(val)) {\n var res = [];\n for (var i = 0; i < val.length; i++) {\n res.push(this.createCachedValueForUrlRequests(val[i], true));\n }\n return res;\n }\n var isExists = checkOnExisting ? !this.hasUnknownValue(val) : true;\n return { value: val, isExists: isExists };\n }\n private updateCachedValueForUrlRequests(\n val: any,\n newChoices: Array\n ): any {\n if (this.isValueEmpty(val)) return null;\n if (Array.isArray(val)) {\n var res = [];\n for (var i = 0; i < val.length; i++) {\n var updatedValue = this.updateCachedValueForUrlRequests(\n val[i],\n newChoices\n );\n if (updatedValue && !this.isValueEmpty(updatedValue.value)) {\n var newValue = updatedValue.value;\n var item = ItemValue.getItemByValue(newChoices, updatedValue.value);\n if (!!item) {\n newValue = item.value;\n }\n res.push(newValue);\n }\n }\n return { value: res };\n }\n var value =\n val.isExists && this.hasUnknownValue(val.value) ? null : val.value;\n var item = ItemValue.getItemByValue(newChoices, value);\n if (!!item) {\n value = item.value;\n }\n return { value: value };\n }\n private isUpdatingChoicesDependedQuestions = false;\n protected updateChoicesDependedQuestions() {\n if (this.isUpdatingChoicesDependedQuestions) return;\n this.isUpdatingChoicesDependedQuestions = true;\n for (var i = 0; i < this.dependedQuestions.length; i++) {\n this.dependedQuestions[i].onVisibleChoicesChanged();\n this.dependedQuestions[i].updateChoicesDependedQuestions();\n }\n this.isUpdatingChoicesDependedQuestions = false;\n }\n onSurveyValueChanged(newValue: any) {\n super.onSurveyValueChanged(newValue);\n if (this.isLoadingFromJson) return;\n this.updateChoicesDependedQuestions();\n }\n protected onVisibleChoicesChanged() {\n if (this.isLoadingFromJson) return;\n this.updateVisibleChoices();\n this.updateVisibilityBasedOnChoices();\n if (!!this.visibleChoicesChangedCallback) {\n this.visibleChoicesChangedCallback();\n }\n this.updateChoicesDependedQuestions();\n }\n private updateVisibilityBasedOnChoices() {\n if (this.hideIfChoicesEmpty) {\n var filteredChoices = this.getFilteredChoices();\n this.visible = !filteredChoices || filteredChoices.length > 0;\n }\n }\n private sortVisibleChoices(array: Array): Array {\n var order = this.choicesOrder.toLowerCase();\n if (order == \"asc\") return this.sortArray(array, 1);\n if (order == \"desc\") return this.sortArray(array, -1);\n if (order == \"random\") return this.randomizeArray(array);\n return array;\n }\n private sortArray(array: Array, mult: number): Array {\n return array.sort(function(a, b) {\n if (a.calculatedText < b.calculatedText) return -1 * mult;\n if (a.calculatedText > b.calculatedText) return 1 * mult;\n return 0;\n });\n }\n private randomizeArray(array: Array): Array {\n return Helpers.randomizeArray(array);\n }\n public clearIncorrectValues() {\n if (this.keepIncorrectValues) return;\n if (\n !!this.survey &&\n this.survey.questionCountByValueName(this.getValueName()) > 1\n )\n return;\n if (!!this.choicesByUrl && !this.choicesByUrl.isEmpty) return;\n if (this.clearIncorrectValuesCallback) {\n this.clearIncorrectValuesCallback();\n } else {\n this.clearIncorrectValuesCore();\n }\n }\n public clearValueIfInvisible() {\n super.clearValueIfInvisible();\n this.clearIncorrectValues();\n }\n /**\n * Returns true if item is selected\n * @param item checkbox or radio item value\n */\n public isItemSelected(item: ItemValue): boolean {\n return item.value === this.value;\n }\n private clearDisabledValues() {\n if (!this.survey || !this.survey.clearValueOnDisableItems) return;\n this.clearDisabledValuesCore();\n }\n protected clearIncorrectValuesCore() {\n var val = this.value;\n if (this.canClearValueAnUnknow(val)) {\n this.clearValue();\n }\n }\n protected canClearValueAnUnknow(val: any): boolean {\n if (!this.getStoreOthersAsComment() && this.isOtherSelected) return false;\n return this.hasUnknownValue(val, true);\n }\n protected clearDisabledValuesCore() {\n if (this.isValueDisabled(this.value)) {\n this.clearValue();\n }\n }\n clearUnusedValues() {\n super.clearUnusedValues();\n if (!this.isOtherSelected && !this.hasComment) {\n this.comment = \"\";\n }\n }\n getColumnClass() {\n var columnClass = this.cssClasses.column;\n if (this.hasColumns) {\n columnClass += \" sv-q-column-\" + this.colCount;\n }\n return columnClass;\n }\n getLabelClass(item: ItemValue) {\n var labelClass = this.cssClasses.label;\n if (this.isItemSelected(item)) {\n labelClass += \" \" + this.cssClasses.labelChecked;\n }\n return labelClass;\n }\n getControlLabelClass(item: ItemValue) {\n var controlLabelClass = this.cssClasses.controlLabel;\n if (this.isItemSelected(item)) {\n controlLabelClass += \" \" + this.cssClasses.controlLabelChecked;\n }\n return controlLabelClass;\n }\n get columns() {\n var columns = [];\n var colCount = this.colCount;\n if (this.hasColumns && this.visibleChoices.length > 0) {\n if (settings.showItemsInOrder == \"column\") {\n var prevIndex = 0;\n var leftElementsCount = this.visibleChoices.length % colCount;\n for (var i = 0; i < colCount; i++) {\n var column = [];\n for (\n var j = prevIndex;\n j < prevIndex + Math.floor(this.visibleChoices.length / colCount);\n j++\n ) {\n column.push(this.visibleChoices[j]);\n }\n if (leftElementsCount > 0) {\n leftElementsCount--;\n column.push(this.visibleChoices[j]);\n j++;\n }\n prevIndex = j;\n columns.push(column);\n }\n } else {\n for (var i = 0; i < colCount; i++) {\n var column = [];\n for (var j = i; j < this.visibleChoices.length; j += colCount) {\n column.push(this.visibleChoices[j]);\n }\n columns.push(column);\n }\n }\n }\n return columns;\n }\n get hasColumns() {\n return this.colCount > 1;\n }\n public choicesLoaded(): void {\n this.isChoicesLoaded = true;\n let oldIsReady: boolean = this.isReadyValue;\n this.isReadyValue = true;\n this.onReadyChanged &&\n this.onReadyChanged.fire(this, {\n question: this,\n isReady: true,\n oldIsReady: oldIsReady,\n });\n }\n}\n/**\n * A base class for checkbox and radiogroup questions. It introduced a colCount property.\n */\nexport class QuestionCheckboxBase extends QuestionSelectBase {\n colCountChangedCallback: () => void;\n constructor(name: string) {\n super(name);\n }\n /**\n * The number of columns for radiogroup and checkbox questions. Items are rendred in one line if the value is 0.\n */\n public get colCount(): number {\n return this.getPropertyValue(\"colCount\", this.isFlowLayout ? 0 : 1);\n }\n public set colCount(value: number) {\n if (value < 0 || value > 5 || this.isFlowLayout) return;\n this.setPropertyValue(\"colCount\", value);\n this.fireCallback(this.colCountChangedCallback);\n }\n getItemIndex(item: any) {\n return this.visibleChoices.indexOf(item);\n }\n protected onParentChanged() {\n super.onParentChanged();\n if (this.isFlowLayout) {\n this.setPropertyValue(\"colCount\", null);\n }\n }\n}\nSerializer.addClass(\n \"selectbase\",\n [\n { name: \"hasComment:switch\", layout: \"row\" },\n {\n name: \"commentText\",\n dependsOn: \"hasComment\",\n visibleIf: function(obj: any) {\n return obj.hasComment;\n },\n serializationProperty: \"locCommentText\",\n layout: \"row\",\n },\n \"choicesFromQuestion:question_selectbase\",\n {\n name: \"choices:itemvalue[]\",\n baseValue: function() {\n return surveyLocalization.getString(\"choices_Item\");\n },\n dependsOn: \"choicesFromQuestion\",\n visibleIf: (obj: any) => {\n return !obj.choicesFromQuestion;\n },\n },\n {\n name: \"choicesFromQuestionMode\",\n default: \"all\",\n choices: [\"all\", \"selected\", \"unselected\"],\n dependsOn: \"choicesFromQuestion\",\n visibleIf: (obj: any) => {\n return !!obj.choicesFromQuestion;\n },\n },\n {\n name: \"choicesOrder\",\n default: \"none\",\n choices: [\"none\", \"asc\", \"desc\", \"random\"],\n dependsOn: \"choicesFromQuestion\",\n visibleIf: (obj: any) => {\n return !obj.choicesFromQuestion;\n },\n },\n {\n name: \"choicesByUrl:restfull\",\n className: \"ChoicesRestful\",\n onGetValue: function(obj: any) {\n return obj.choicesByUrl.getData();\n },\n onSetValue: function(obj: any, value: any) {\n obj.choicesByUrl.setData(value);\n },\n },\n \"hideIfChoicesEmpty:boolean\",\n {\n name: \"choicesVisibleIf:condition\",\n dependsOn: \"choicesFromQuestion\",\n visibleIf: (obj: any) => {\n return !obj.choicesFromQuestion;\n },\n },\n {\n name: \"choicesEnableIf:condition\",\n dependsOn: \"choicesFromQuestion\",\n visibleIf: (obj: any) => {\n return !obj.choicesFromQuestion;\n },\n },\n \"hasOther:boolean\",\n \"hasNone:boolean\",\n {\n name: \"otherPlaceHolder\",\n serializationProperty: \"locOtherPlaceHolder\",\n dependsOn: \"hasOther\",\n visibleIf: function(obj: any) {\n return obj.hasOther;\n },\n },\n {\n name: \"noneText\",\n serializationProperty: \"locNoneText\",\n dependsOn: \"hasNone\",\n visibleIf: function(obj: any) {\n return obj.hasNone;\n },\n },\n {\n name: \"otherText\",\n serializationProperty: \"locOtherText\",\n dependsOn: \"hasOther\",\n visibleIf: function(obj: any) {\n return obj.hasOther;\n },\n },\n {\n name: \"otherErrorText\",\n serializationProperty: \"locOtherErrorText\",\n dependsOn: \"hasOther\",\n visibleIf: function(obj: any) {\n return obj.hasOther;\n },\n },\n {\n name: \"storeOthersAsComment\",\n default: \"default\",\n choices: [\"default\", true, false],\n visible: false,\n },\n ],\n null,\n \"question\"\n);\n\nSerializer.addClass(\n \"checkboxbase\",\n [\n {\n name: \"colCount:number\",\n default: 1,\n choices: [0, 1, 2, 3, 4, 5],\n layout: \"row\",\n },\n ],\n null,\n \"selectbase\"\n);\n","import { QuestionFactory } from \"./questionfactory\";\nimport { property, Serializer } from \"./jsonobject\";\nimport { Question } from \"./question\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { surveyLocalization } from \"./surveyStrings\";\n\n/**\n * A Model for a boolean question.\n */\nexport class QuestionBooleanModel extends Question {\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"labelFalse\", this, true);\n this.createLocalizableString(\"labelTrue\", this, true);\n this.locLabelFalse.onGetTextCallback = (text: string): string => {\n return !!text\n ? text\n : surveyLocalization.getString(\"booleanUncheckedLabel\");\n };\n this.locLabelTrue.onGetTextCallback = (text: string): string => {\n return !!text\n ? text\n : surveyLocalization.getString(\"booleanCheckedLabel\");\n };\n }\n public getType(): string {\n return \"boolean\";\n }\n isLayoutTypeSupported(layoutType: string): boolean {\n return true;\n }\n /**\n * Returns true if the question check will be rendered in indeterminate mode. value is empty.\n */\n public get isIndeterminate(): boolean {\n return this.isEmpty();\n }\n public get hasTitle(): boolean {\n return true;\n }\n /**\n * Get/set question value in 3 modes: indeterminate (value is empty), true (check is set) and false (check is unset).\n * @see valueTrue\n * @see valueFalse\n */\n public get checkedValue(): any {\n if (this.isEmpty()) return null;\n return this.value == this.getValueTrue();\n }\n public set checkedValue(val: any) {\n if (this.isReadOnly) {\n return;\n }\n if (this.isValueEmpty(val)) {\n this.value = null;\n } else {\n this.value = val == true ? this.getValueTrue() : this.getValueFalse();\n }\n }\n /**\n * Set the default state of the check: \"indeterminate\" - default (value is empty/null), \"true\" - value equals valueTrue or true, \"false\" - value equals valueFalse or false.\n */\n public get defaultValue(): any {\n return this.getPropertyValue(\"defaultValue\");\n }\n public set defaultValue(val: any) {\n if (val === true) val = \"true\";\n if (val === false) val = \"false\";\n this.setPropertyValue(\"defaultValue\", val);\n this.updateValueWithDefaults();\n }\n public getDefaultValue(): any {\n if (this.defaultValue == \"indeterminate\") return null;\n if (this.defaultValue === undefined) return null;\n return this.defaultValue == \"true\"\n ? this.getValueTrue()\n : this.getValueFalse();\n }\n public get locTitle(): LocalizableString {\n return this.showTitle || this.isValueEmpty(this.locLabel.text)\n ? this.getLocalizableString(\"title\")\n : this.locLabel;\n }\n /**\n * The checkbox label. If it is empty and showTitle is false then title is rendered\n * @see showTitle\n * @see title\n */\n @property({ localizable: true })\n label: string;\n\n get locDisplayLabel(): LocalizableString {\n if (this.locLabel.text) return this.locLabel;\n return this.showTitle ? this.locLabel : this.locTitle;\n }\n\n /**\n * Set this property, if you want to have a different label for state when check is set.\n */\n public get labelTrue(): any {\n return this.getLocalizableStringText(\"labelTrue\");\n }\n public set labelTrue(val: any) {\n this.setLocalizableStringText(\"labelTrue\", val);\n }\n get locLabelTrue(): LocalizableString {\n return this.getLocalizableString(\"labelTrue\");\n }\n\n /**\n * Set this property, if you want to have a different label for state when check is unset.\n */\n public get labelFalse(): any {\n return this.getLocalizableStringText(\"labelFalse\");\n }\n public set labelFalse(val: any) {\n this.setLocalizableStringText(\"labelFalse\", val);\n }\n get locLabelFalse(): LocalizableString {\n return this.getLocalizableString(\"labelFalse\");\n }\n\n /**\n * Set this property to true to show the question title. It is hidden by default.\n */\n @property()\n showTitle: boolean;\n\n /**\n * Set this property, if you want to have a different value from true when check is set.\n */\n @property()\n valueTrue: any;\n /**\n * Set this property, if you want to have a different value from false when check is unset.\n */\n @property()\n valueFalse: any;\n\n private getValueTrue(): any {\n return this.valueTrue ? this.valueTrue : true;\n }\n private getValueFalse(): any {\n return this.valueFalse ? this.valueFalse : false;\n }\n protected setDefaultValue() {\n if (this.defaultValue == \"true\") this.checkedValue = true;\n if (this.defaultValue == \"false\") this.checkedValue = false;\n if (this.defaultValue == \"indeterminate\") this.value = null;\n }\n}\n\nSerializer.addClass(\n \"boolean\",\n [\n { name: \"label:text\", serializationProperty: \"locLabel\" },\n {\n name: \"labelTrue:text\",\n serializationProperty: \"locLabelTrue\",\n },\n {\n name: \"labelFalse:text\",\n serializationProperty: \"locLabelFalse\",\n },\n \"showTitle:boolean\",\n \"valueTrue\",\n \"valueFalse\",\n { name: \"renderAs\", default: \"default\", visible: false },\n ],\n function () {\n return new QuestionBooleanModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"boolean\", (name) => {\n return new QuestionBooleanModel(name);\n});\n","import { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionCheckboxBase } from \"./question_baseselect\";\nimport { Helpers } from \"./helpers\";\nimport { ItemValue } from \"./itemvalue\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { LocalizableString } from \"./localizablestring\";\n\n/**\n * A Model for a checkbox question\n */\nexport class QuestionCheckboxModel extends QuestionCheckboxBase {\n private selectAllItemValue: ItemValue = new ItemValue(\"selectall\");\n private invisibleOldValues: any = {};\n constructor(name: string) {\n super(name);\n var selectAllItemText = this.createLocalizableString(\n \"selectAllText\",\n this,\n true\n );\n selectAllItemText.onGetTextCallback = function(text) {\n return !!text ? text : surveyLocalization.getString(\"selectAllItemText\");\n };\n this.selectAllItem.locOwner = this;\n this.selectAllItem.setLocText(selectAllItemText);\n\n this.registerFunctionOnPropertiesValueChanged(\n [\"hasSelectAll\", \"selectAllText\"],\n () => {\n this.onVisibleChoicesChanged();\n }\n );\n }\n public get ariaRole(): string {\n return \"group\";\n }\n public getType(): string {\n return \"checkbox\";\n }\n protected onCreating() {\n super.onCreating();\n this.createNewArray(\"renderedValue\");\n this.createNewArray(\"value\");\n }\n protected getFirstInputElementId(): string {\n return this.inputId + \"_0\";\n }\n /**\n * Returns the select all item. By using this property, you may change programmatically it's value and text.\n * @see hasSelectAll\n */\n public get selectAllItem(): ItemValue {\n return this.selectAllItemValue;\n }\n /**\n * Use this property to set the different text for Select All item.\n */\n public get selectAllText(): string {\n return this.getLocalizableStringText(\n \"selectAllText\",\n surveyLocalization.getString(\"selectAllItemText\")\n );\n }\n public set selectAllText(val: string) {\n this.setLocalizableStringText(\"selectAllText\", val);\n }\n get locSelectAllText(): LocalizableString {\n return this.getLocalizableString(\"selectAllText\");\n }\n /**\n * Set this property to true, to show the \"Select All\" item on the top. If end-user checks this item, then all items are checked.\n */\n public get hasSelectAll(): boolean {\n return this.getPropertyValue(\"hasSelectAll\", false);\n }\n public set hasSelectAll(val: boolean) {\n this.setPropertyValue(\"hasSelectAll\", val);\n }\n /**\n * Returns true if all items are selected\n * @see toggleSelectAll\n */\n public get isAllSelected(): boolean {\n var val = this.value;\n if (!val || !Array.isArray(val)) return false;\n if (this.isItemSelected(this.noneItem)) return false;\n var allItemCount = this.visibleChoices.length;\n if (this.hasOther) allItemCount--;\n if (this.hasNone) allItemCount--;\n if (this.hasSelectAll) allItemCount--;\n var selectedCount = val.length;\n if (this.isItemSelected(this.otherItem)) selectedCount--;\n return selectedCount === allItemCount;\n }\n public set isAllSelected(val: boolean) {\n if (val) {\n this.selectAll();\n } else {\n this.clearValue();\n }\n }\n /**\n * It will select all items, except other and none. If all items have been already selected then it will clear the value\n * @see isAllSelected\n * @see selectAll\n */\n public toggleSelectAll() {\n this.isAllSelected = !this.isAllSelected;\n }\n /**\n * Select all items, except other and none.\n */\n public selectAll() {\n var val = [];\n for (var i = 0; i < this.visibleChoices.length; i++) {\n var item = this.visibleChoices[i];\n if (\n item === this.noneItem ||\n item === this.otherItem ||\n item === this.selectAllItem\n )\n continue;\n val.push(item.value);\n }\n this.value = val;\n }\n /**\n * Returns true if item is checked\n * @param item checkbox item value\n */\n public isItemSelected(item: ItemValue): boolean {\n if (item === this.selectAllItem) return this.isAllSelected;\n var val = this.renderedValue;\n if (!val || !Array.isArray(val)) return false;\n for (var i = 0; i < val.length; i++) {\n if (Helpers.isTwoValueEquals(val[i], item.value)) return true;\n }\n return false;\n }\n /**\n * Set this property different to 0 to limit the number of selected choices in the checkbox.\n */\n public get maxSelectedChoices(): number {\n return this.getPropertyValue(\"maxSelectedChoices\", 0);\n }\n public set maxSelectedChoices(val: number) {\n if (val < 0) val = 0;\n this.setPropertyValue(\"maxSelectedChoices\", val);\n }\n protected onEnableItemCallBack(item: ItemValue): boolean {\n if (!this.shouldCheckMaxSelectedChoices()) return true;\n return this.isItemSelected(item);\n }\n protected onAfterRunItemsEnableCondition() {\n if (this.maxSelectedChoices < 1) return;\n if (this.hasSelectAll) {\n this.selectAllItem.setIsEnabled(\n this.maxSelectedChoices >= this.activeChoices.length\n );\n }\n if (this.hasOther) {\n this.otherItem.setIsEnabled(\n !this.shouldCheckMaxSelectedChoices() || this.isOtherSelected\n );\n }\n }\n private shouldCheckMaxSelectedChoices(): boolean {\n if (this.maxSelectedChoices < 1) return false;\n var val = this.value;\n var len = !Array.isArray(val) ? 0 : val.length;\n return len >= this.maxSelectedChoices;\n }\n getItemClass(item: any) {\n var val = this.value; //trigger dependencies from koValue for knockout\n var isChecked = this.isItemSelected(item);\n var isDisabled = this.isReadOnly || !item.isEnabled;\n var allowHover = !isChecked && !isDisabled;\n var isSelectAll = item === this.selectAllItem;\n var isNone = item === this.noneItem;\n var itemClass = this.cssClasses.item;\n if (!this.hasColumns) {\n itemClass +=\n this.colCount === 0\n ? \" \" + this.cssClasses.itemInline\n : \" sv-q-col-\" + this.colCount;\n }\n if (isDisabled && !!this.cssClasses.itemDisabled)\n itemClass += \" \" + this.cssClasses.itemDisabled;\n if (isChecked && !!this.cssClasses.itemChecked)\n itemClass += \" \" + this.cssClasses.itemChecked;\n if (allowHover && !!this.cssClasses.itemHover)\n itemClass += \" \" + this.cssClasses.itemHover;\n if (isSelectAll && !!this.cssClasses.itemSelectAll)\n itemClass += \" \" + this.cssClasses.itemSelectAll;\n if (isNone && !!this.cssClasses.itemNone)\n itemClass += \" \" + this.cssClasses.itemNone;\n return itemClass;\n }\n protected setNewValue(newValue: any) {\n if (!this.isChangingValueOnClearIncorrect) {\n this.invisibleOldValues = [];\n }\n newValue = this.valueFromData(newValue);\n var value = this.value;\n if (!newValue) newValue = [];\n if (!value) value = [];\n if (Helpers.isTwoValueEquals(value, newValue)) return;\n if (this.hasNone) {\n var prevNoneIndex = this.noneIndexInArray(value);\n var newNoneIndex = this.noneIndexInArray(newValue);\n if (prevNoneIndex > -1) {\n if (newNoneIndex > -1 && newValue.length > 1) {\n newValue.splice(newNoneIndex, 1);\n }\n } else {\n if (newNoneIndex > -1) {\n newValue.splice(0, newValue.length);\n newValue.push(this.noneItem.value);\n }\n }\n }\n super.setNewValue(this.rendredValueToData(newValue));\n }\n protected getIsMultipleValue(): boolean {\n return true;\n }\n protected getCommentFromValue(newValue: any): string {\n var ind = this.getFirstUnknownIndex(newValue);\n if (ind < 0) return \"\";\n return newValue[ind];\n }\n protected setOtherValueIntoValue(newValue: any): any {\n var ind = this.getFirstUnknownIndex(newValue);\n if (ind < 0) return newValue;\n newValue.splice(ind, 1, this.otherItem.value);\n return newValue;\n }\n private getFirstUnknownIndex(newValue: any): number {\n if (!Array.isArray(newValue)) return -1;\n for (var i = 0; i < newValue.length; i++) {\n if (this.hasUnknownValue(newValue[i])) return i;\n }\n return -1;\n }\n private noneIndexInArray(val: any) {\n if (!val || !Array.isArray(val)) return -1;\n var noneValue = this.noneItem.value;\n for (var i = 0; i < val.length; i++) {\n if (val[i] == noneValue) return i;\n }\n return -1;\n }\n protected canUseFilteredChoices(): boolean {\n return !this.hasSelectAll && super.canUseFilteredChoices();\n }\n protected addToVisibleChoices(items: Array) {\n if (this.hasSelectAll) {\n items.unshift(this.selectAllItem);\n }\n super.addToVisibleChoices(items);\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n if (!Array.isArray(value))\n return super.getDisplayValueCore(keysAsText, value);\n var items = this.visibleChoices;\n var str = \"\";\n for (var i = 0; i < value.length; i++) {\n var valStr = this.getChoicesDisplayValue(items, value[i]);\n if (valStr) {\n if (str) str += \", \";\n str += valStr;\n }\n }\n return str;\n }\n protected clearIncorrectValuesCore() {\n this.clearIncorrectAndDisabledValues(false);\n }\n protected clearDisabledValuesCore() {\n this.clearIncorrectAndDisabledValues(true);\n }\n private isChangingValueOnClearIncorrect: boolean = false;\n private clearIncorrectAndDisabledValues(clearDisabled: boolean) {\n var val = this.value;\n var hasChanged = false;\n var restoredValues = this.restoreValuesFromInvisible();\n if (!val && restoredValues.length == 0) return;\n if (!Array.isArray(val) || val.length == 0) {\n this.isChangingValueOnClearIncorrect = true;\n if (!clearDisabled) {\n if (this.hasComment) {\n this.value = null;\n } else {\n this.clearValue();\n }\n }\n this.isChangingValueOnClearIncorrect = false;\n if (restoredValues.length == 0) return;\n val = [];\n }\n var newValue = [];\n for (var i = 0; i < val.length; i++) {\n var isUnkown = this.canClearValueAnUnknow(val[i]);\n if (\n (!clearDisabled && !isUnkown) ||\n (clearDisabled && !this.isValueDisabled(val[i]))\n ) {\n newValue.push(val[i]);\n } else {\n hasChanged = true;\n if (isUnkown) {\n this.invisibleOldValues[val[i]] = true;\n }\n }\n }\n for (var i = 0; i < restoredValues.length; i++) {\n newValue.push(restoredValues[i]);\n hasChanged = true;\n }\n if (!hasChanged) return;\n this.isChangingValueOnClearIncorrect = true;\n if (newValue.length == 0) {\n this.clearValue();\n } else {\n this.value = newValue;\n }\n this.isChangingValueOnClearIncorrect = false;\n }\n private restoreValuesFromInvisible(): Array {\n var res = [];\n var visItems = this.visibleChoices;\n for (var i = 0; i < visItems.length; i++) {\n var val = visItems[i].value;\n if (this.invisibleOldValues[val]) {\n res.push(val);\n delete this.invisibleOldValues[val];\n }\n }\n return res;\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n var json = super.getConditionJson();\n if (operator == \"contains\" || operator == \"notcontains\") {\n json[\"type\"] = \"radiogroup\";\n }\n return json;\n }\n public isAnswerCorrect(): boolean {\n return Helpers.isArrayContainsEqual(this.value, this.correctAnswer);\n }\n protected setDefaultValueWithOthers() {\n this.value = this.renderedValueFromDataCore(this.defaultValue);\n }\n protected getHasOther(val: any): boolean {\n if (!val || !Array.isArray(val)) return false;\n return val.indexOf(this.otherItem.value) >= 0;\n }\n protected valueFromData(val: any): any {\n if (!val) return val;\n if (!Array.isArray(val)) return [super.valueFromData(val)];\n let value = [];\n for (let i = 0; i < val.length; i++) {\n let choiceitem = ItemValue.getItemByValue(this.activeChoices, val[i]);\n if (!!choiceitem) {\n value.push(choiceitem.value);\n } else {\n value.push(val[i]);\n }\n }\n return value;\n }\n protected renderedValueFromDataCore(val: any): any {\n if (!val || !Array.isArray(val)) val = [];\n for (var i = 0; i < val.length; i++) {\n if (val[i] == this.otherItem.value) return val;\n if (this.hasUnknownValue(val[i])) {\n this.comment = val[i];\n var newVal = val.slice();\n newVal[i] = this.otherItem.value;\n return newVal;\n }\n }\n return val;\n }\n protected rendredValueToDataCore(val: any): any {\n if (!val || !val.length) return val;\n for (var i = 0; i < val.length; i++) {\n if (val[i] == this.otherItem.value) {\n if (this.getQuestionComment()) {\n var newVal = val.slice();\n newVal[i] = this.getQuestionComment();\n return newVal;\n }\n }\n }\n return val;\n }\n}\nSerializer.addClass(\n \"checkbox\",\n [\n \"hasSelectAll:boolean\",\n { name: \"maxSelectedChoices:number\", default: 0 },\n { name: \"selectAllText\", serializationProperty: \"locSelectAllText\" },\n ],\n function() {\n return new QuestionCheckboxModel(\"\");\n },\n \"checkboxbase\"\n);\nQuestionFactory.Instance.registerQuestion(\"checkbox\", name => {\n var q = new QuestionCheckboxModel(name);\n q.choices = QuestionFactory.DefaultChoices;\n return q;\n});\n","import { Question } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { Helpers } from \"./helpers\";\n\n/**\n * A Model for a comment question\n */\nexport class QuestionCommentModel extends Question {\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"placeHolder\", this);\n }\n protected isTextValue(): boolean {\n return true;\n }\n /**\n * The maximum text length. If it is -1, defaul value, then the survey maxTextLength property will be used.\n * If it is 0, then the value is unlimited\n * @see SurveyModel.maxTextLength\n */\n public get maxLength(): number {\n return this.getPropertyValue(\"maxLength\");\n }\n public set maxLength(val: number) {\n this.setPropertyValue(\"maxLength\", val);\n }\n public getMaxLength(): any {\n return Helpers.getMaxLength(\n this.maxLength,\n this.survey ? this.survey.maxTextLength : -1\n );\n }\n /**\n * Use this property to set the input place holder.\n */\n public get placeHolder(): string {\n return this.getLocalizableStringText(\"placeHolder\");\n }\n public set placeHolder(val: string) {\n this.setLocalizableStringText(\"placeHolder\", val);\n }\n get locPlaceHolder(): LocalizableString {\n return this.getLocalizableString(\"placeHolder\");\n }\n /**\n * The html rows attribute.\n */\n public get rows(): number {\n return this.getPropertyValue(\"rows\");\n }\n public set rows(val: number) {\n this.setPropertyValue(\"rows\", val);\n }\n /**\n * The html cols attribute.\n */\n public get cols(): number {\n return this.getPropertyValue(\"cols\");\n }\n public set cols(val: number) {\n this.setPropertyValue(\"cols\", val);\n }\n public getType(): string {\n return \"comment\";\n }\n isEmpty(): boolean {\n return super.isEmpty() || this.value === \"\";\n }\n /**\n * Gets or sets a value that specifies how the question updates it's value.\n *\n * The following options are available:\n * - `default` - get the value from survey.textUpdateMode\n * - `onBlur` - the value is updated after an input loses the focus.\n * - `onTyping` - update the value of text questions, \"text\" and \"comment\", on every key press.\n *\n * Note, that setting to \"onTyping\" may lead to a performance degradation, in case you have many expressions in the survey.\n * @see survey.textUpdateMode\n */\n public get textUpdateMode(): string {\n return this.getPropertyValue(\"textUpdateMode\");\n }\n public set textUpdateMode(val: string) {\n this.setPropertyValue(\"textUpdateMode\", val);\n }\n public get isSurveyInputTextUpdate(): boolean {\n if (this.textUpdateMode == \"default\")\n return !!this.survey ? this.survey.isUpdateValueTextOnTyping : false;\n return this.textUpdateMode == \"onTyping\";\n }\n}\nSerializer.addClass(\n \"comment\",\n [\n { name: \"maxLength:number\", default: -1 },\n { name: \"cols:number\", default: 50 },\n { name: \"rows:number\", default: 4 },\n { name: \"placeHolder\", serializationProperty: \"locPlaceHolder\" },\n {\n name: \"textUpdateMode\",\n default: \"default\",\n choices: [\"default\", \"onBlur\", \"onTyping\"],\n },\n ],\n function () {\n return new QuestionCommentModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"comment\", (name) => {\n return new QuestionCommentModel(name);\n});\n","import { Question, IConditionObject } from \"./question\";\nimport { Serializer, CustomPropertiesCollection } from \"./jsonobject\";\nimport {\n ISurveyImpl,\n ISurveyData,\n ISurvey,\n ITextProcessor,\n IPanel,\n IElement,\n SurveyElement,\n IConditionRunner,\n} from \"./base\";\nimport { PanelModel } from \"./panel\";\nimport { Helpers, HashTable } from \"./helpers\";\nimport { ItemValue } from \"./itemvalue\";\nimport { QuestionTextProcessor } from \"./textPreProcessor\";\n\nexport class ComponentQuestionJSON {\n public constructor(public name: string, public json: any) {\n var self = this;\n Serializer.addClass(\n name,\n [],\n function(json: any) {\n return ComponentCollection.Instance.createQuestion(\n !!json ? json.name : \"\",\n self\n );\n },\n \"question\"\n );\n this.onInit();\n }\n public onInit() {\n if (!this.json.onInit) return;\n this.json.onInit();\n }\n public onCreated(question: Question) {\n if (!this.json.onCreated) return;\n this.json.onCreated(question);\n }\n public onLoaded(question: Question) {\n if (!this.json.onLoaded) return;\n this.json.onLoaded(question);\n }\n public onAfterRender(question: Question, htmlElement: any) {\n if (!this.json.onAfterRender) return;\n this.json.onAfterRender(question, htmlElement);\n }\n public onAfterRenderContentElement(\n question: Question,\n element: Question,\n htmlElement: any\n ) {\n if (!this.json.onAfterRenderContentElement) return;\n this.json.onAfterRenderContentElement(question, element, htmlElement);\n }\n public onPropertyChanged(\n question: Question,\n propertyName: string,\n newValue: any\n ) {\n if (!this.json.onPropertyChanged) return;\n this.json.onPropertyChanged(question, propertyName, newValue);\n }\n public onValueChanged(question: Question, name: string, newValue: any) {\n if (!this.json.onValueChanged) return;\n this.json.onValueChanged(question, name, newValue);\n }\n public onItemValuePropertyChanged(\n question: Question,\n item: ItemValue,\n propertyName: string,\n name: string,\n newValue: any\n ) {\n if (!this.json.onItemValuePropertyChanged) return;\n this.json.onItemValuePropertyChanged(question, {\n obj: item,\n propertyName: propertyName,\n name: name,\n newValue: newValue,\n });\n }\n public get isComposite() {\n return !!this.json.elementsJSON || !!this.json.createElements;\n }\n}\n\nexport class ComponentCollection {\n public static Instance: ComponentCollection = new ComponentCollection();\n private customQuestionValues: Array = [];\n public onCreateComposite: (\n name: string,\n questionJSON: ComponentQuestionJSON\n ) => QuestionCompositeModel;\n public onCreateCustom: (\n name: string,\n questionJSON: ComponentQuestionJSON\n ) => QuestionCustomModel;\n public onAddingJson: (name: string, isComposite: boolean) => void;\n public add(json: any) {\n if (!json) return;\n let name = json.name;\n if (!name) {\n throw \"Attribute name is missed\";\n }\n name = name.toLowerCase();\n if (!!this.getCustomQuestionByName(name)) {\n throw \"There is already registered custom question with name '\" +\n name +\n \"'\";\n }\n if (!!Serializer.findClass(name)) {\n throw \"There is already class with name '\" + name + \"'\";\n }\n var customQuestion = new ComponentQuestionJSON(name, json);\n if (!!this.onAddingJson)\n this.onAddingJson(name, customQuestion.isComposite);\n this.customQuestionValues.push(customQuestion);\n }\n public get items(): Array {\n return this.customQuestionValues;\n }\n public getCustomQuestionByName(name: string): ComponentQuestionJSON {\n for (var i = 0; i < this.customQuestionValues.length; i++) {\n if (this.customQuestionValues[i].name == name)\n return this.customQuestionValues[i];\n }\n return null;\n }\n public clear() {\n for (var i = 0; i < this.customQuestionValues.length; i++) {\n Serializer.removeClass(this.customQuestionValues[i].name);\n }\n this.customQuestionValues = [];\n }\n public createQuestion(\n name: string,\n questionJSON: ComponentQuestionJSON\n ): Question {\n if (!!questionJSON.isComposite)\n return this.createCompositeModel(name, questionJSON);\n return this.createCustomModel(name, questionJSON);\n }\n protected createCompositeModel(\n name: string,\n questionJSON: ComponentQuestionJSON\n ): QuestionCompositeModel {\n if (!!this.onCreateComposite)\n return this.onCreateComposite(name, questionJSON);\n return new QuestionCompositeModel(name, questionJSON);\n }\n protected createCustomModel(\n name: string,\n questionJSON: ComponentQuestionJSON\n ): QuestionCustomModel {\n if (!!this.onCreateCustom) return this.onCreateCustom(name, questionJSON);\n return new QuestionCustomModel(name, questionJSON);\n }\n}\n\nexport abstract class QuestionCustomModelBase extends Question\n implements ISurveyImpl, ISurveyData, IPanel {\n constructor(name: string, public customQuestion: ComponentQuestionJSON) {\n super(name);\n CustomPropertiesCollection.createProperties(this);\n SurveyElement.CreateDisabledDesignElements = true;\n this.createWrapper();\n SurveyElement.CreateDisabledDesignElements = false;\n if (!!this.customQuestion) {\n this.customQuestion.onCreated(this);\n }\n }\n public getType(): string {\n return !!this.customQuestion ? this.customQuestion.name : \"custom\";\n }\n public locStrsChanged() {\n super.locStrsChanged();\n if (!!this.getElement()) {\n this.getElement().locStrsChanged();\n }\n }\n protected createWrapper() {}\n protected onPropertyValueChanged(name: string, oldValue: any, newValue: any) {\n super.onPropertyValueChanged(name, oldValue, newValue);\n if (!!this.customQuestion && !this.isLoadingFromJson) {\n this.customQuestion.onPropertyChanged(this, name, newValue);\n }\n }\n public itemValuePropertyChanged(\n item: ItemValue,\n name: string,\n oldValue: any,\n newValue: any\n ) {\n super.itemValuePropertyChanged(item, name, oldValue, newValue);\n if (!!this.customQuestion && !this.isLoadingFromJson) {\n this.customQuestion.onItemValuePropertyChanged(\n this,\n item,\n item.ownerPropertyName,\n name,\n newValue\n );\n }\n }\n public onFirstRendering() {\n var el = this.getElement();\n if (!!el) {\n el.onFirstRendering();\n }\n super.onFirstRendering();\n }\n protected abstract getElement(): SurveyElement;\n protected initElement(el: SurveyElement) {\n if (!el) return;\n el.setSurveyImpl(this);\n el.disableDesignActions = true;\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n this.initElement(this.getElement());\n }\n public onSurveyLoad() {\n super.onSurveyLoad();\n if (!!this.getElement()) {\n this.getElement().onSurveyLoad();\n this.customQuestion.onLoaded(this);\n }\n }\n public afterRenderQuestionElement(el: HTMLElement) {\n //Do nothing\n }\n public afterRender(el: any) {\n super.afterRender(el);\n if (!!this.customQuestion) {\n this.customQuestion.onAfterRender(this, el);\n }\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, updateIsAnswered);\n this.updateElementCss();\n }\n protected setNewValue(newValue: any) {\n super.setNewValue(newValue);\n this.updateElementCss();\n }\n //ISurveyImpl\n getSurveyData(): ISurveyData {\n return this;\n }\n // getSurvey(): ISurvey {\n // return this.survey;\n // }\n getTextProcessor(): ITextProcessor {\n return this.textProcessor;\n }\n //ISurveyData\n getValue(name: string): any {\n return this.value;\n }\n setValue(\n name: string,\n newValue: any,\n locNotification: any,\n allowNotifyValueChanged?: boolean\n ): any {\n if (!this.data) return;\n var newName = this.convertDataName(name);\n this.data.setValue(\n newName,\n this.convertDataValue(name, newValue),\n locNotification,\n allowNotifyValueChanged\n );\n this.updateIsAnswered();\n this.updateElementCss();\n if (!!this.customQuestion) {\n this.customQuestion.onValueChanged(this, name, newValue);\n }\n }\n protected convertDataName(name: string): string {\n return this.getValueName();\n }\n protected convertDataValue(name: string, newValue: any): any {\n return newValue;\n }\n getVariable(name: string): any {\n return !!this.data ? this.data.getVariable(name) : null;\n }\n setVariable(name: string, newValue: any): void {\n if (!this.data) return;\n this.data.setVariable(name, newValue);\n }\n getComment(name: string): string {\n return !!this.data ? this.data.getComment(this.getValueName()) : \"\";\n }\n setComment(name: string, newValue: string, locNotification: any): any {\n if (!this.data) return;\n this.data.setComment(this.getValueName(), newValue, locNotification);\n }\n getAllValues(): any {\n return !!this.data ? this.data.getAllValues() : {};\n }\n getFilteredValues(): any {\n return !!this.data ? this.data.getFilteredValues() : {};\n }\n getFilteredProperties(): any {\n return !!this.data ? this.data.getFilteredProperties() : {};\n }\n //IPanel\n addElement(element: IElement, index: number) {}\n removeElement(element: IElement): boolean {\n return false;\n }\n getQuestionTitleLocation(): string {\n return \"left\";\n }\n getQuestionStartIndex(): string {\n return this.getStartIndex();\n }\n getChildrenLayoutType(): string {\n return \"row\";\n }\n elementWidthChanged(el: IElement) {}\n get elements(): Array {\n return [];\n }\n indexOf(el: IElement): number {\n return -1;\n }\n ensureRowsVisibility(): void {\n // do nothing\n }\n}\n\nexport class QuestionCustomModel extends QuestionCustomModelBase {\n private questionWrapper: Question;\n public getTemplate(): string {\n return \"custom\";\n }\n protected createWrapper() {\n this.questionWrapper = this.createQuestion();\n }\n protected getElement(): SurveyElement {\n return this.contentQuestion;\n }\n onAnyValueChanged(name: string) {\n super.onAnyValueChanged(name);\n if (!!this.contentQuestion) {\n this.contentQuestion.onAnyValueChanged(name);\n }\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n if (!this.contentQuestion) return false;\n var res = this.contentQuestion.hasErrors(fireCallback, rec);\n this.errors = [];\n for (var i = 0; i < this.contentQuestion.errors.length; i++) {\n this.errors.push(this.contentQuestion.errors[i]);\n }\n if (!res) {\n res = super.hasErrors(fireCallback, rec);\n }\n this.updateElementCss();\n return res;\n }\n public focus(onError: boolean = false) {\n if (!!this.contentQuestion) {\n this.contentQuestion.focus(onError);\n } else {\n super.focus(onError);\n }\n }\n public get contentQuestion(): Question {\n return this.questionWrapper;\n }\n protected createQuestion(): Question {\n var json = this.customQuestion.json;\n var res = null;\n if (!!json.questionJSON) {\n var qType = json.questionJSON.type;\n if (!qType || !Serializer.findClass(qType))\n throw \"type attribute in questionJSON is empty or incorrect\";\n res = Serializer.createClass(qType);\n this.initElement(res);\n res.fromJSON(json.questionJSON);\n } else {\n if (!!json.createQuestion) {\n res = json.createQuestion();\n this.initElement(res);\n }\n }\n if (!!res && !res.name) {\n res.name = \"question\";\n }\n return res;\n }\n public onSurveyLoad() {\n super.onSurveyLoad();\n if (!this.contentQuestion) return;\n if (this.isEmpty() && !this.contentQuestion.isEmpty()) {\n this.value = this.contentQuestion.value;\n }\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n if (!!this.contentQuestion) {\n this.contentQuestion.runCondition(values, properties);\n }\n }\n protected convertDataName(name: string): string {\n if (!this.contentQuestion) return super.convertDataName(name);\n var newName = name.replace(\n this.contentQuestion.getValueName(),\n this.getValueName()\n );\n return newName.indexOf(this.getValueName()) == 0\n ? newName\n : super.convertDataName(name);\n }\n protected convertDataValue(name: string, newValue: any): any {\n return this.convertDataName(name) == super.convertDataName(name)\n ? this.contentQuestion.value\n : newValue;\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, updateIsAnswered);\n if (\n !!this.contentQuestion &&\n !Helpers.isTwoValueEquals(this.contentQuestion.value, newValue)\n ) {\n this.contentQuestion.value = newValue;\n }\n }\n onSurveyValueChanged(newValue: any) {\n super.onSurveyValueChanged(newValue);\n if (!!this.contentQuestion) {\n this.contentQuestion.onSurveyValueChanged(newValue);\n }\n }\n protected getValueCore() {\n if (!!this.contentQuestion) return this.contentQuestion.value;\n return super.getValueCore();\n }\n protected initElement(el: SurveyElement) {\n super.initElement(el);\n if (!!el) {\n (el).parent = this;\n (el).afterRenderQuestionCallback = (\n question: Question,\n element: any\n ) => {\n if (!!this.customQuestion) {\n this.customQuestion.onAfterRenderContentElement(\n this,\n question,\n element\n );\n }\n };\n }\n }\n protected updateElementCssCore(cssClasses: any) {\n if (!!this.contentQuestion) {\n cssClasses = this.contentQuestion.cssClasses;\n }\n super.updateElementCssCore(cssClasses);\n }\n protected getDisplayValueCore(keyAsText: boolean, value: any): any {\n return !!this.contentQuestion\n ? this.contentQuestion.getDisplayValue(keyAsText, value)\n : super.getDisplayValueCore(keyAsText, value);\n }\n}\n\nclass QuestionCompositeTextProcessor extends QuestionTextProcessor {\n constructor(\n protected composite: QuestionCompositeModel,\n protected variableName: string\n ) {\n super(variableName);\n }\n protected get survey(): ISurvey {\n return this.composite.survey;\n }\n protected get panel(): PanelModel {\n return this.composite.contentPanel;\n }\n}\n\nexport class QuestionCompositeModel extends QuestionCustomModelBase {\n public static ItemVariableName = \"composite\";\n private panelWrapper: PanelModel;\n private textProcessing: QuestionCompositeTextProcessor;\n constructor(name: string, public customQuestion: ComponentQuestionJSON) {\n super(name, customQuestion);\n this.textProcessing = new QuestionCompositeTextProcessor(\n this,\n QuestionCompositeModel.ItemVariableName\n );\n }\n protected createWrapper() {\n this.panelWrapper = this.createPanel();\n }\n public getTemplate(): string {\n return \"composite\";\n }\n protected getCssType(): string {\n return \"composite\";\n }\n protected getElement(): SurveyElement {\n return this.contentPanel;\n }\n public get contentPanel(): PanelModel {\n return this.panelWrapper;\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n var res = super.hasErrors(fireCallback, rec);\n if (!this.contentPanel) return res;\n return this.contentPanel.hasErrors(fireCallback, false, rec) || res;\n }\n public updateElementCss() {\n super.updateElementCss();\n if (this.contentPanel) {\n this.contentPanel.updateElementCss();\n }\n }\n getTextProcessor(): ITextProcessor {\n return this.textProcessing;\n }\n clearValueIfInvisible() {\n super.clearValueIfInvisible();\n var questions = this.contentPanel.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].clearValueIfInvisible();\n }\n }\n onAnyValueChanged(name: string) {\n super.onAnyValueChanged(name);\n var questions = this.contentPanel.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].onAnyValueChanged(name);\n }\n }\n protected createPanel(): PanelModel {\n var res = Serializer.createClass(\"panel\");\n res.showQuestionNumbers = \"off\";\n res.renderWidth = \"100%\";\n var json = this.customQuestion.json;\n if (!!json.elementsJSON) {\n res.fromJSON({ elements: json.elementsJSON });\n }\n if (!!json.createElements) {\n json.createElements(res, this);\n }\n this.initElement(res);\n res.readOnly = this.isReadOnly;\n this.setAfterRenderCallbacks(res);\n return res;\n }\n protected onReadOnlyChanged() {\n if (!!this.contentPanel) {\n this.contentPanel.readOnly = this.isReadOnly;\n }\n super.onReadOnlyChanged();\n }\n public onSurveyLoad() {\n if (!!this.contentPanel) {\n this.contentPanel.readOnly = this.isReadOnly;\n this.setIsContentElement(this.contentPanel);\n }\n super.onSurveyLoad();\n }\n private setIsContentElement(panel: PanelModel) {\n panel.isContentElement = true;\n var elements = panel.elements;\n for (var i = 0; i < elements.length; i++) {\n var el = elements[i];\n if (el.isPanel) {\n this.setIsContentElement(el);\n } else {\n (el).isContentElement = true;\n }\n }\n }\n public setVisibleIndex(val: number): number {\n var res = super.setVisibleIndex(val);\n if (this.isVisible && !!this.contentPanel) {\n res += this.contentPanel.setVisibleIndex(val);\n }\n return res;\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n if (!!this.contentPanel) {\n var oldComposite = values[QuestionCompositeModel.ItemVariableName];\n values[\n QuestionCompositeModel.ItemVariableName\n ] = this.contentPanel.getValue();\n this.contentPanel.runCondition(values, properties);\n delete values[QuestionCompositeModel.ItemVariableName];\n if (!!oldComposite) {\n values[QuestionCompositeModel.ItemVariableName] = oldComposite;\n }\n }\n }\n getValue(name: string): any {\n var val = this.value;\n return !!val ? val[name] : null;\n }\n private settingNewValue: boolean = false;\n setValue(\n name: string,\n newValue: any,\n locNotification: any,\n allowNotifyValueChanged?: boolean\n ): any {\n if (this.settingNewValue) return;\n super.setValue(name, newValue, locNotification, allowNotifyValueChanged);\n if (!this.contentPanel) return;\n var q = this.contentPanel.getQuestionByName(name);\n if (!!q && !Helpers.isTwoValueEquals(newValue, q.value)) {\n this.settingNewValue = true;\n q.value = newValue;\n this.settingNewValue = false;\n }\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n if (!this.contentPanel) return;\n var questions = this.contentPanel.questions;\n var prefixName = this.name;\n var prefixText = this.title;\n for (var i = 0; i < questions.length; i++) {\n objects.push({\n name: prefixName + \".\" + questions[i].name,\n text: prefixText + \".\" + questions[i].title,\n question: questions[i],\n });\n }\n }\n protected convertDataValue(name: string, newValue: any): any {\n var val = this.value;\n if (!val) val = {};\n if (this.isValueEmpty(newValue) && !this.isEditingSurveyElement(val)) {\n delete val[name];\n } else {\n val[name] = newValue;\n }\n return val;\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, updateIsAnswered);\n this.settingNewValue = true;\n var questions = this.contentPanel.questions;\n for (var i = 0; i < questions.length; i++) {\n var key = questions[i].getValueName();\n questions[i].value = !!newValue ? newValue[key] : undefined;\n }\n this.settingNewValue = false;\n }\n protected getDisplayValueCore(keyAsText: boolean, value: any): any {\n return !!this.contentPanel\n ? this.contentPanel.getDisplayValue(keyAsText)\n : super.getDisplayValueCore(keyAsText, value);\n }\n private setAfterRenderCallbacks(panel: PanelModel) {\n if (!panel || !this.customQuestion) return;\n var questions = panel.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].afterRenderQuestionCallback = (\n question: Question,\n element: any\n ) => {\n this.customQuestion.onAfterRenderContentElement(\n this,\n question,\n element\n );\n };\n }\n }\n}\n","import { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionSelectBase } from \"./question_baseselect\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { ItemValue } from \"./itemvalue\";\n\n/**\n * A Model for a dropdown question\n */\nexport class QuestionDropdownModel extends QuestionSelectBase {\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"optionsCaption\", this);\n var self = this;\n this.registerFunctionOnPropertiesValueChanged(\n [\"choicesMin\", \"choicesMax\", \"choicesStep\"],\n function () {\n self.onVisibleChoicesChanged();\n }\n );\n }\n /**\n * This flag controls whether to show options caption item ('Choose...').\n */\n public get showOptionsCaption(): boolean {\n return this.getPropertyValue(\"showOptionsCaption\", true);\n }\n public set showOptionsCaption(val: boolean) {\n this.setPropertyValue(\"showOptionsCaption\", val);\n }\n /**\n * Use this property to set the options caption different from the default value. The default value is taken from localization strings.\n */\n public get optionsCaption() {\n return this.getLocalizableStringText(\n \"optionsCaption\",\n surveyLocalization.getString(\"optionsCaption\")\n );\n }\n public set optionsCaption(val: string) {\n this.setLocalizableStringText(\"optionsCaption\", val);\n }\n get locOptionsCaption(): LocalizableString {\n return this.getLocalizableString(\"optionsCaption\");\n }\n public getType(): string {\n return \"dropdown\";\n }\n public get selectedItem(): ItemValue {\n if (this.isEmpty()) return null;\n return ItemValue.getItemByValue(this.visibleChoices, this.value);\n }\n supportGoNextPageAutomatic() {\n return true;\n }\n private minMaxChoices = >[];\n protected getChoices(): Array {\n var items = super.getChoices();\n if (this.choicesMax <= this.choicesMin) return items;\n var res = [];\n for (var i = 0; i < items.length; i++) {\n res.push(items[i]);\n }\n if (\n this.minMaxChoices.length === 0 ||\n this.minMaxChoices.length !==\n (this.choicesMax - this.choicesMin) / this.choicesStep + 1\n ) {\n this.minMaxChoices = [];\n for (\n var i = this.choicesMin;\n i <= this.choicesMax;\n i += this.choicesStep\n ) {\n this.minMaxChoices.push(new ItemValue(i));\n }\n }\n res = res.concat(this.minMaxChoices);\n return res;\n }\n /**\n * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10.\n * @see choicesMax\n * @see choicesStep\n */\n public get choicesMin(): number {\n return this.getPropertyValue(\"choicesMin\", 0);\n }\n public set choicesMin(val: number) {\n this.setPropertyValue(\"choicesMin\", val);\n }\n /**\n * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10.\n * @see choicesMin\n * @see choicesStep\n */\n public get choicesMax(): number {\n return this.getPropertyValue(\"choicesMax\", 0);\n }\n public set choicesMax(val: number) {\n this.setPropertyValue(\"choicesMax\", val);\n }\n /**\n * The default value is 1. It tells the value of the iterator between choicesMin and choicesMax properties.\n * If choicesMin = 10, choicesMax = 30 and choicesStep = 10 then you will have only three additional choices: [10, 20, 30].\n * @see choicesMin\n * @see choicesMax\n */\n public get choicesStep(): number {\n return this.getPropertyValue(\"choicesStep\", 1);\n }\n public set choicesStep(val: number) {\n if (val < 1) val = 1;\n this.setPropertyValue(\"choicesStep\", val);\n }\n}\nSerializer.addClass(\n \"dropdown\",\n [\n { name: \"optionsCaption\", serializationProperty: \"locOptionsCaption\" },\n { name: \"showOptionsCaption:boolean\", default: true },\n { name: \"choicesMin:number\", default: 0 },\n { name: \"choicesMax:number\", default: 0 },\n { name: \"choicesStep:number\", default: 1, minValue: 1 },\n ],\n function () {\n return new QuestionDropdownModel(\"\");\n },\n \"selectbase\"\n);\nQuestionFactory.Instance.registerQuestion(\"dropdown\", (name) => {\n var q = new QuestionDropdownModel(name);\n q.choices = QuestionFactory.DefaultChoices;\n return q;\n});\n","import { Serializer } from \"./jsonobject\";\nimport { Question } from \"./question\";\n\n/**\n * A Model for an question that renders empty \"div\" tag. It used as a base class for some custom widgets\n */\nexport class QuestionEmptyModel extends Question {\n constructor(name: string) {\n super(name);\n }\n public getType(): string {\n return \"empty\";\n }\n}\n\nSerializer.addClass(\n \"empty\",\n [],\n function () {\n return new QuestionEmptyModel(\"\");\n },\n \"question\"\n);\n","import { HashTable, Helpers } from \"./helpers\";\nimport { Question } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { ExpressionRunner } from \"./conditions\";\nimport { SurveyError } from \"./base\";\n\n/**\n * A Model for expression question. It is a read-only question. It calculates value based on epxression property.\n */\nexport class QuestionExpressionModel extends Question {\n private expressionIsRunning: boolean;\n private expressionRunner: ExpressionRunner;\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"format\", this);\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"expression\", function () {\n if (self.expressionRunner) {\n self.expressionRunner = new ExpressionRunner(self.expression);\n }\n });\n }\n public getType(): string {\n return \"expression\";\n }\n public get hasInput(): boolean {\n return false;\n }\n /**\n * Use this property to display the value in your own format. Make sure you have \"{0}\" substring in your string, to display the actual value.\n */\n public get format(): string {\n return this.getLocalizableStringText(\"format\", \"\");\n }\n public set format(val: string) {\n this.setLocalizableStringText(\"format\", val);\n }\n get locFormat(): LocalizableString {\n return this.getLocalizableString(\"format\");\n }\n /**\n * The Expression that used to calculate the question value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}.\n *
Example: \"({quantity} * {price}) * (100 - {discount}) / 100\"\n */\n public get expression(): string {\n return this.getPropertyValue(\"expression\", \"\");\n }\n public set expression(val: string) {\n this.setPropertyValue(\"expression\", val);\n }\n public locCalculation() {\n this.expressionIsRunning = true;\n }\n public unlocCalculation() {\n this.expressionIsRunning = false;\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n if (!this.expression || this.expressionIsRunning) return;\n this.locCalculation();\n if (!this.expressionRunner) {\n this.expressionRunner = new ExpressionRunner(this.expression);\n }\n this.expressionRunner.onRunComplete = (newValue) => {\n if (!Helpers.isTwoValueEquals(newValue, this.value)) {\n this.value = newValue;\n }\n this.unlocCalculation();\n };\n this.expressionRunner.run(values, properties);\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n return false;\n }\n public getAllErrors(): Array {\n return [];\n }\n /**\n * The maximum number of fraction digits to use if displayStyle is not \"none\". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used.\n */\n public get maximumFractionDigits(): number {\n return this.getPropertyValue(\"maximumFractionDigits\", -1);\n }\n public set maximumFractionDigits(val: number) {\n if (val < -1 || val > 20) return;\n this.setPropertyValue(\"maximumFractionDigits\", val);\n }\n /**\n * The minimum number of fraction digits to use if displayStyle is not \"none\". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used.\n */\n public get minimumFractionDigits(): number {\n return this.getPropertyValue(\"minimumFractionDigits\", -1);\n }\n public set minimumFractionDigits(val: number) {\n if (val < -1 || val > 20) return;\n this.setPropertyValue(\"minimumFractionDigits\", val);\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var val = this.isValueEmpty(value) ? this.defaultValue : value;\n if (this.isValueEmpty(val)) return \"\";\n var str = this.getValueAsStr(val);\n if (!this.format) return str;\n return (this.format)[\"format\"](str);\n }\n /**\n * You may set this property to \"decimal\", \"currency\", \"percent\" or \"date\". If you set it to \"currency\", you may use the currency property to display the value in currency different from USD.\n * @see currency\n */\n public get displayStyle(): string {\n return this.getPropertyValue(\"displayStyle\");\n }\n public set displayStyle(val: string) {\n this.setPropertyValue(\"displayStyle\", val);\n }\n /**\n * Use it to display the value in the currency differen from USD. The displayStype should be set to \"currency\".\n * @see displayStyle\n */\n public get currency(): string {\n return this.getPropertyValue(\"currency\");\n }\n public set currency(val: string) {\n if (getCurrecyCodes().indexOf(val) < 0) return;\n this.setPropertyValue(\"currency\", val);\n }\n /**\n * \tDetermines whether to display grouping separators. The default value is true.\n */\n public get useGrouping(): boolean {\n return this.getPropertyValue(\"useGrouping\", true);\n }\n public set useGrouping(val: boolean) {\n this.setPropertyValue(\"useGrouping\", val);\n }\n protected getValueAsStr(val: any): string {\n if (this.displayStyle == \"date\") {\n var d = new Date(val);\n if (!!d && !!d.toLocaleDateString) return d.toLocaleDateString();\n }\n if (this.displayStyle != \"none\" && Helpers.isNumber(val)) {\n var locale = this.getLocale();\n if (!locale) locale = \"en\";\n var options = {\n style: this.displayStyle,\n currency: this.currency,\n useGrouping: this.useGrouping,\n };\n if (this.maximumFractionDigits > -1) {\n (options)[\"maximumFractionDigits\"] = this.maximumFractionDigits;\n }\n if (this.minimumFractionDigits > -1) {\n (options)[\"minimumFractionDigits\"] = this.minimumFractionDigits;\n }\n return val.toLocaleString(locale, options);\n }\n return val.toString();\n }\n}\n\nexport function getCurrecyCodes(): Array {\n return [\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYN\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XSU\",\n \"XTS\",\n \"XUA\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMW\",\n \"ZWL\",\n ];\n}\n\nSerializer.addClass(\n \"expression\",\n [\n \"expression:expression\",\n { name: \"format\", serializationProperty: \"locFormat\" },\n {\n name: \"displayStyle\",\n default: \"none\",\n choices: [\"none\", \"decimal\", \"currency\", \"percent\", \"date\"],\n },\n {\n name: \"currency\",\n choices: () => {\n return getCurrecyCodes();\n },\n default: \"USD\",\n },\n { name: \"maximumFractionDigits:number\", default: -1 },\n { name: \"minimumFractionDigits:number\", default: -1 },\n { name: \"useGrouping:boolean\", default: true },\n { name: \"enableIf\", visible: false },\n { name: \"isRequired\", visible: false },\n { name: \"readOnly\", visible: false },\n { name: \"requiredErrorText\", visible: false },\n { name: \"validators\", visible: false },\n { name: \"defaultValue\", visible: false },\n { name: \"correctAnswer\", visible: false },\n { name: \"requiredIf\", visible: false },\n ],\n function () {\n return new QuestionExpressionModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"expression\", (name) => {\n return new QuestionExpressionModel(name);\n});\n","import { Question } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { SurveyError, EventBase } from \"./base\";\nimport { UploadingFileError, ExceedSizeError } from \"./error\";\nimport { surveyLocalization } from \"./surveyStrings\";\n\n/**\n * A Model for a file question\n */\nexport class QuestionFileModel extends Question {\n private isUploading: boolean = false;\n /**\n * The event is fired after question state has been changed.\n *
sender the question object that fires the event\n *
options.state new question state value.\n */\n public onStateChanged: EventBase = this.addEvent<\n QuestionFileModel\n >();\n public previewValue: any[] = [];\n public currentState = \"empty\";\n constructor(name: string) {\n super(name);\n }\n public getType(): string {\n return \"file\";\n }\n public clearOnDeletingContainer() {\n this.survey.clearFiles(this, this.name, this.value, null, () => {});\n }\n /**\n * Set it to true, to show the preview for the image files.\n */\n public get showPreview() {\n return this.getPropertyValue(\"showPreview\");\n }\n public set showPreview(val: boolean) {\n this.setPropertyValue(\"showPreview\", val);\n }\n /**\n * Set it to true, to allow select multiple files.\n */\n public get allowMultiple() {\n return this.getPropertyValue(\"allowMultiple\", false);\n }\n public set allowMultiple(val: boolean) {\n this.setPropertyValue(\"allowMultiple\", val);\n }\n /**\n * The image height.\n */\n public get imageHeight(): string {\n return this.getPropertyValue(\"imageHeight\");\n }\n public set imageHeight(val: string) {\n this.setPropertyValue(\"imageHeight\", val);\n }\n /**\n * The image width.\n */\n public get imageWidth(): string {\n return this.getPropertyValue(\"imageWidth\");\n }\n public set imageWidth(val: string) {\n this.setPropertyValue(\"imageWidth\", val);\n }\n /**\n * Accepted file types. Passed to the 'accept' attribute of the file input tag. See https://www.w3schools.com/tags/att_input_accept.asp for more details.\n */\n public get acceptedTypes(): string {\n return this.getPropertyValue(\"acceptedTypes\");\n }\n public set acceptedTypes(val: string) {\n this.setPropertyValue(\"acceptedTypes\", val);\n }\n /**\n * Set it to false if you do not want to serialize file content as text in the survey.data.\n * In this case, you have to write the code onUploadFiles event to store the file content.\n * @see SurveyModel.onUploadFiles\n */\n public get storeDataAsText(): boolean {\n return this.getPropertyValue(\"storeDataAsText\");\n }\n public set storeDataAsText(val: boolean) {\n this.setPropertyValue(\"storeDataAsText\", val);\n }\n /**\n * Set it to true if you want to wait until files will be uploaded to your server.\n */\n public get waitForUpload(): boolean {\n return this.getPropertyValue(\"waitForUpload\", false);\n }\n public set waitForUpload(val: boolean) {\n this.setPropertyValue(\"waitForUpload\", val);\n }\n /**\n * Set it to false if you want to disable images preview.\n */\n public get allowImagesPreview(): boolean {\n return this.getPropertyValue(\"allowImagesPreview\");\n }\n public set allowImagesPreview(val: boolean) {\n this.setPropertyValue(\"allowImagesPreview\", val);\n }\n /**\n * Use this property to setup the maximum allowed file size.\n */\n public get maxSize(): number {\n return this.getPropertyValue(\"maxSize\", 0);\n }\n public set maxSize(val: number) {\n this.setPropertyValue(\"maxSize\", val);\n }\n /**\n * Use this property to setup confirmation to remove file.\n */\n public get needConfirmRemoveFile(): boolean {\n return this.getPropertyValue(\"needConfirmRemoveFile\");\n }\n public set needConfirmRemoveFile(val: boolean) {\n this.setPropertyValue(\"needConfirmRemoveFile\", val);\n }\n /**\n * The remove file confirmation message.\n */\n public getConfirmRemoveMessage(fileName: string): string {\n return surveyLocalization\n .getString(\"confirmRemoveFile\")\n [\"format\"](fileName);\n }\n /**\n * The remove all files confirmation message.\n */\n get confirmRemoveAllMessage(): string {\n return surveyLocalization.getString(\"confirmRemoveAllFiles\");\n }\n /**\n * The no file chosen caption for modern theme.\n */\n get noFileChosenCaption(): string {\n return surveyLocalization.getString(\"noFileChosen\");\n }\n /**\n * The choose files button caption for modern theme.\n */\n get chooseButtonCaption(): string {\n return surveyLocalization.getString(\"chooseFileCaption\");\n }\n /**\n * The clean files button caption.\n */\n get cleanButtonCaption(): string {\n return surveyLocalization.getString(\"cleanCaption\");\n }\n /**\n * The remove file button caption.\n */\n get removeFileCaption(): string {\n return surveyLocalization.getString(\"removeFileCaption\");\n }\n /**\n * The input title value.\n */\n get inputTitle(): string {\n if (this.isUploading) return surveyLocalization.getString(\"loadingFile\");\n if (this.isEmpty()) return surveyLocalization.getString(\"chooseFile\");\n return \" \";\n }\n /**\n * Clear value programmatically.\n */\n public clear(doneCallback?: () => void) {\n this.survey.clearFiles(\n this,\n this.name,\n this.value,\n null,\n (status, data) => {\n if (status === \"success\") {\n this.value = undefined;\n this.errors = [];\n !!doneCallback && doneCallback();\n }\n }\n );\n }\n /**\n * Remove file item programmatically.\n */\n public removeFile(content: { name: string }) {\n this.survey.clearFiles(\n this,\n this.name,\n this.value,\n content.name,\n (status, data) => {\n if (status === \"success\") {\n var oldValue = this.value;\n if (Array.isArray(oldValue)) {\n this.value = oldValue.filter(f => f.name !== content.name);\n } else {\n this.value = undefined;\n }\n }\n }\n );\n }\n /**\n * Load multiple files programmatically.\n * @param files\n */\n public loadFiles(files: File[]) {\n if (!this.survey) {\n return;\n }\n this.errors = [];\n if (!this.allFilesOk(files)) {\n return;\n }\n\n this.stateChanged(\"loading\");\n\n var loadFilesProc = () => {\n var content = >[];\n if (this.storeDataAsText) {\n files.forEach(file => {\n let fileReader = new FileReader();\n fileReader.onload = e => {\n content = content.concat([\n { name: file.name, type: file.type, content: fileReader.result },\n ]);\n if (content.length === files.length) {\n this.value = (this.value || []).concat(content);\n }\n };\n fileReader.readAsDataURL(file);\n });\n } else {\n this.survey.uploadFiles(this, this.name, files, (status, data) => {\n if (status === \"error\") {\n this.stateChanged(\"error\");\n }\n if (status === \"success\") {\n this.value = (this.value || []).concat(\n data.map((r: any) => {\n return {\n name: r.file.name,\n type: r.file.type,\n content: r.content,\n };\n })\n );\n }\n });\n }\n };\n if (this.allowMultiple) {\n loadFilesProc();\n } else {\n this.clear(loadFilesProc);\n }\n }\n public canPreviewImage(fileItem: any): boolean {\n return this.allowImagesPreview && !!fileItem && this.isFileImage(fileItem);\n }\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, updateIsAnswered);\n this.previewValue = [];\n var state =\n (!Array.isArray(newValue) && !!newValue) ||\n (Array.isArray(newValue) && newValue.length > 0)\n ? this.showPreview\n ? \"loading\"\n : \"loaded\"\n : \"empty\";\n this.stateChanged(state);\n if (!this.showPreview || !newValue) return;\n var newValues = Array.isArray(newValue)\n ? newValue\n : !!newValue\n ? [newValue]\n : [];\n\n if (this.storeDataAsText) {\n newValues.forEach(value => {\n var content = value.content || value;\n this.previewValue = this.previewValue.concat([\n {\n name: value.name,\n type: value.type,\n content: content,\n },\n ]);\n });\n if (state === \"loading\") this.stateChanged(\"loaded\");\n } else {\n newValues.forEach(value => {\n var content = value.content || value;\n this.survey.downloadFile(this.name, value, (status, data) => {\n if (status === \"success\") {\n this.previewValue = this.previewValue.concat([\n {\n content: data,\n name: value.name,\n type: value.type,\n },\n ]);\n if (this.previewValue.length === newValues.length) {\n this.stateChanged(\"loaded\");\n }\n } else {\n this.stateChanged(\"error\");\n }\n });\n });\n }\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n super.onCheckForErrors(errors, isOnValueChanged);\n if (this.isUploading && this.waitForUpload) {\n errors.push(\n new UploadingFileError(\n surveyLocalization.getString(\"uploadingFile\"),\n this\n )\n );\n }\n }\n protected stateChanged(state: string) {\n if (state === \"loading\") {\n this.isUploading = true;\n }\n if (state === \"loaded\") {\n this.isUploading = false;\n }\n if (state === \"error\") {\n this.isUploading = false;\n }\n this.currentState = state;\n this.onStateChanged.fire(this, { state: state });\n }\n private allFilesOk(files: File[]): boolean {\n var errorLength = this.errors ? this.errors.length : 0;\n (files || []).forEach(file => {\n if (this.maxSize > 0 && file.size > this.maxSize) {\n this.errors.push(new ExceedSizeError(this.maxSize, this));\n }\n });\n return errorLength === this.errors.length;\n }\n private isFileImage(file: {\n content: string;\n name?: string;\n type?: string;\n }): boolean {\n if (!file) return false;\n const imagePrefix = \"data:image\";\n var subStr = file.content && file.content.substr(0, imagePrefix.length);\n subStr = subStr && subStr.toLowerCase();\n var result =\n subStr === imagePrefix ||\n (!!file.type && file.type.toLowerCase().indexOf(\"image/\") === 0);\n return result;\n }\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n }\n ) {\n var questionPlainData = super.getPlainData(options);\n if (!!questionPlainData && !this.isEmpty()) {\n questionPlainData.isNode = false;\n var values = Array.isArray(this.value) ? this.value : [this.value];\n questionPlainData.data = values.map((dataValue, index) => {\n return {\n name: index,\n title: \"File\",\n value: (dataValue.content && dataValue.content) || dataValue,\n displayValue: (dataValue.name && dataValue.name) || dataValue,\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: false,\n };\n });\n }\n return questionPlainData;\n }\n public supportComment(): boolean {\n return true;\n }\n}\nSerializer.addClass(\n \"file\",\n [\n { name: \"hasComment:switch\", layout: \"row\" },\n {\n name: \"commentText\",\n dependsOn: \"hasComment\",\n visibleIf: function(obj: any) {\n return obj.hasComment;\n },\n serializationProperty: \"locCommentText\",\n layout: \"row\",\n },\n { name: \"showPreview:boolean\", default: true },\n \"allowMultiple:boolean\",\n { name: \"allowImagesPreview:boolean\", default: true },\n \"imageHeight\",\n \"imageWidth\",\n \"acceptedTypes\",\n { name: \"storeDataAsText:boolean\", default: true },\n { name: \"waitForUpload:boolean\", default: false },\n \"maxSize:number\",\n { name: \"defaultValue\", visible: false },\n { name: \"correctAnswer\", visible: false },\n { name: \"validators\", visible: false },\n { name: \"needConfirmRemoveFile:boolean\", visible: true, default: false },\n ],\n function() {\n return new QuestionFileModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"file\", name => {\n return new QuestionFileModel(name);\n});\n","import { QuestionNonValue } from \"./questionnonvalue\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\n\n/**\n * A Model for html question. Unlike other questions it doesn't have value and title.\n */\nexport class QuestionHtmlModel extends QuestionNonValue {\n public ignoreHtmlProgressing: boolean;\n constructor(name: string) {\n super(name);\n var locHtml = this.createLocalizableString(\"html\", this);\n locHtml.onGetTextCallback = (str: string): string => {\n return !!this.survey && !this.ignoreHtmlProgressing\n ? this.survey.processHtml(str)\n : str;\n };\n }\n public getType(): string {\n return \"html\";\n }\n public get isCompositeQuestion(): boolean {\n return true;\n }\n public getProcessedText(text: string): string {\n if (this.ignoreHtmlProgressing) return text;\n return super.getProcessedText(text);\n }\n /**\n * Set html to display it\n */\n public get html(): string {\n return this.getLocalizableStringText(\"html\", \"\");\n }\n public set html(val: string) {\n this.setLocalizableStringText(\"html\", val);\n }\n get locHtml(): LocalizableString {\n return this.getLocalizableString(\"html\");\n }\n public get processedHtml() {\n return this.survey ? this.survey.processHtml(this.html) : this.html;\n }\n}\nSerializer.addClass(\n \"html\",\n [{ name: \"html:html\", serializationProperty: \"locHtml\" }],\n function() {\n return new QuestionHtmlModel(\"\");\n },\n \"nonvalue\"\n);\nQuestionFactory.Instance.registerQuestion(\"html\", name => {\n return new QuestionHtmlModel(name);\n});\n","import { QuestionNonValue } from \"./questionnonvalue\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\n\n/**\n * A Model for image question. This question hasn't any functionality and can be used to improve the appearance of the survey.\n */\nexport class QuestionImageModel extends QuestionNonValue {\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"imageLink\", this, false);\n this.createLocalizableString(\"text\", this, false);\n }\n public getType(): string {\n return \"image\";\n }\n public get isCompositeQuestion(): boolean {\n return false;\n }\n /**\n * The image URL.\n */\n public get imageLink(): string {\n return this.getLocalizableStringText(\"imageLink\");\n }\n public set imageLink(val: string) {\n this.setLocalizableStringText(\"imageLink\", val);\n }\n get locImageLink(): LocalizableString {\n return this.getLocalizableString(\"imageLink\");\n }\n /**\n * The image alt text.\n */\n public get text(): string {\n return this.getLocalizableStringText(\"text\");\n }\n public set text(val: string) {\n this.setLocalizableStringText(\"text\", val);\n }\n get locText(): LocalizableString {\n return this.getLocalizableString(\"text\");\n }\n /**\n * The image height.\n */\n public get imageHeight(): string {\n return this.getPropertyValue(\"imageHeight\");\n }\n public set imageHeight(val: string) {\n this.setPropertyValue(\"imageHeight\", val);\n }\n /**\n * The image width.\n */\n public get imageWidth(): string {\n return this.getPropertyValue(\"imageWidth\");\n }\n public set imageWidth(val: string) {\n this.setPropertyValue(\"imageWidth\", val);\n }\n /**\n * The image fit mode.\n */\n public get imageFit(): string {\n return this.getPropertyValue(\"imageFit\");\n }\n public set imageFit(val: string) {\n this.setPropertyValue(\"imageFit\", val);\n }\n /**\n * The content mode.\n */\n public get contentMode(): string {\n return this.getPropertyValue(\"contentMode\");\n }\n public set contentMode(val: string) {\n this.setPropertyValue(\"contentMode\", val);\n if (val === \"video\") {\n this.showLabel = true;\n }\n }\n}\n\nSerializer.addClass(\n \"image\",\n [\n { name: \"imageLink\", serializationProperty: \"locImageLink\" },\n { name: \"text\", serializationProperty: \"locText\" },\n {\n name: \"contentMode\",\n default: \"image\",\n choices: [\"image\", \"video\"],\n },\n {\n name: \"imageFit\",\n default: \"contain\",\n choices: [\"none\", \"contain\", \"cover\", \"fill\"],\n },\n { name: \"imageHeight:number\", default: 150, minValue: 0 },\n { name: \"imageWidth:number\", default: 200, minValue: 0 },\n ],\n function () {\n return new QuestionImageModel(\"\");\n },\n \"nonvalue\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"image\", (name) => {\n return new QuestionImageModel(name);\n});\n","import { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionCheckboxBase } from \"./question_baseselect\";\nimport { ItemValue } from \"./itemvalue\";\nimport { Helpers } from \"./helpers\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\n\nexport class ImageItemValue extends ItemValue implements ILocalizableOwner {\n constructor(\n value: any,\n text: string = null,\n protected typeName = \"imageitemvalue\"\n ) {\n super(value, text, typeName);\n this.createLocalizableString(\"imageLink\", this, false);\n }\n public getType(): string {\n return !!this.typeName ? this.typeName : \"itemvalue\";\n }\n /**\n * The image or video link property.\n */\n public get imageLink(): string {\n return this.getLocalizableStringText(\"imageLink\");\n }\n public set imageLink(val: string) {\n this.setLocalizableStringText(\"imageLink\", val);\n }\n get locImageLink(): LocalizableString {\n return this.getLocalizableString(\"imageLink\");\n }\n getLocale(): string {\n return !!this.locOwner ? this.locOwner.getLocale() : \"\";\n }\n getMarkdownHtml(text: string, name: string): string {\n return !!this.locOwner ? this.locOwner.getMarkdownHtml(text, name) : text;\n }\n getRenderer(name: string): string {\n return !!this.locOwner ? this.locOwner.getRenderer(name) : null;\n }\n getProcessedText(text: string): string {\n return !!this.locOwner ? this.locOwner.getProcessedText(text) : text;\n }\n}\n\n/**\n * A Model for a select image question.\n */\nexport class QuestionImagePickerModel extends QuestionCheckboxBase {\n constructor(name: string) {\n super(name);\n this.colCount = 0;\n }\n public getType(): string {\n return \"imagepicker\";\n }\n supportGoNextPageAutomatic() {\n return true;\n }\n public get hasSingleInput(): boolean {\n return false;\n }\n protected getItemValueType() {\n return \"imageitemvalue\";\n }\n public get isCompositeQuestion(): boolean {\n return true;\n }\n public supportOther(): boolean {\n return false;\n }\n /**\n * Multi select option. If set to true, then allows to select multiple images.\n */\n public get multiSelect(): boolean {\n return this.getPropertyValue(\"multiSelect\", false);\n }\n public set multiSelect(newValue: boolean) {\n this.setPropertyValue(\"multiSelect\", newValue);\n }\n /**\n * Returns true if item is checked\n * @param item image picker item value\n */\n public isItemSelected(item: ItemValue): boolean {\n var val = this.value;\n if (this.isValueEmpty(val)) return false;\n if (!this.multiSelect) return Helpers.isTwoValueEquals(val, item.value);\n if (!Array.isArray(val)) return false;\n for (var i = 0; i < val.length; i++) {\n if (Helpers.isTwoValueEquals(val[i], item.value)) return true;\n }\n return false;\n }\n public clearIncorrectValues() {\n if (this.multiSelect) {\n var val = this.value;\n if (!val) return;\n if (!Array.isArray(val) || val.length == 0) {\n this.clearValue();\n return;\n }\n var newValue = [];\n for (var i = 0; i < val.length; i++) {\n if (!this.hasUnknownValue(val[i], true)) {\n newValue.push(val[i]);\n }\n }\n if (newValue.length == val.length) return;\n if (newValue.length == 0) {\n this.clearValue();\n } else {\n this.value = newValue;\n }\n } else {\n super.clearIncorrectValues();\n }\n }\n\n /**\n * Show label under the image.\n */\n public get showLabel(): boolean {\n return this.getPropertyValue(\"showLabel\", false);\n }\n public set showLabel(newValue: boolean) {\n this.setPropertyValue(\"showLabel\", newValue);\n }\n endLoadingFromJson() {\n super.endLoadingFromJson();\n if (!this.isDesignMode && this.multiSelect) {\n this.createNewArray(\"renderedValue\");\n this.createNewArray(\"value\");\n }\n }\n protected getValueCore() {\n var value = super.getValueCore();\n if (value !== undefined) {\n return value;\n }\n if (this.multiSelect) {\n return [];\n }\n return value;\n }\n private convertValToArrayForMultSelect(val: any): any {\n if (!this.multiSelect) return val;\n if (this.isValueEmpty(val) || Array.isArray(val)) return val;\n return [val];\n }\n protected renderedValueFromDataCore(val: any): any {\n return this.convertValToArrayForMultSelect(val);\n }\n protected rendredValueToDataCore(val: any): any {\n return this.convertValToArrayForMultSelect(val);\n }\n /**\n * The image height.\n */\n public get imageHeight(): string {\n return this.getPropertyValue(\"imageHeight\");\n }\n public set imageHeight(val: string) {\n this.setPropertyValue(\"imageHeight\", val);\n }\n /**\n * The image width.\n */\n public get imageWidth(): string {\n return this.getPropertyValue(\"imageWidth\");\n }\n public set imageWidth(val: string) {\n this.setPropertyValue(\"imageWidth\", val);\n }\n /**\n * The image fit mode.\n */\n public get imageFit(): string {\n return this.getPropertyValue(\"imageFit\");\n }\n public set imageFit(val: string) {\n this.setPropertyValue(\"imageFit\", val);\n }\n /**\n * The content mode.\n */\n public get contentMode(): string {\n return this.getPropertyValue(\"contentMode\");\n }\n public set contentMode(val: string) {\n this.setPropertyValue(\"contentMode\", val);\n if (val === \"video\") {\n this.showLabel = true;\n }\n }\n getItemClass(item: any) {\n var itemClass =\n this.cssClasses.item +\n (this.colCount === 0\n ? \" \" + this.cssClasses.itemInline\n : \" sv-q-col-\" + this.colCount);\n var isChecked = this.isItemSelected(item);\n var isDisabled = this.isReadOnly || !item.isEnabled;\n var allowHover = !isChecked && !isDisabled;\n if (isChecked && !!this.cssClasses.itemChecked) {\n itemClass += \" \" + this.cssClasses.itemChecked;\n }\n if (isDisabled && !!this.cssClasses.itemDisabled) {\n itemClass += \" \" + this.cssClasses.itemDisabled;\n }\n if (allowHover && !!this.cssClasses.itemHover) {\n itemClass += \" \" + this.cssClasses.itemHover;\n }\n return itemClass;\n }\n protected convertDefaultValue(val: any): any {\n return val;\n }\n}\n\nSerializer.addClass(\n \"imageitemvalue\",\n [],\n (value: any) => new ImageItemValue(value),\n \"itemvalue\"\n);\nSerializer.addProperty(\"imageitemvalue\", {\n name: \"imageLink\",\n serializationProperty: \"locImageLink\",\n});\n\nSerializer.addClass(\n \"imagepicker\",\n [\n { name: \"hasOther\", visible: false },\n { name: \"otherText\", visible: false },\n { name: \"hasNone\", visible: false },\n { name: \"noneText\", visible: false },\n { name: \"optionsCaption\", visible: false },\n { name: \"otherErrorText\", visible: false },\n { name: \"storeOthersAsComment\", visible: false },\n {\n name: \"contentMode\",\n default: \"image\",\n choices: [\"image\", \"video\"],\n },\n {\n name: \"imageFit\",\n default: \"contain\",\n choices: [\"none\", \"contain\", \"cover\", \"fill\"],\n },\n { name: \"imageHeight:number\", default: 150, minValue: 0 },\n { name: \"imageWidth:number\", default: 200, minValue: 0 },\n ],\n function() {\n return new QuestionImagePickerModel(\"\");\n },\n \"checkboxbase\"\n);\nSerializer.addProperty(\"imagepicker\", {\n name: \"showLabel:boolean\",\n default: false,\n});\nSerializer.addProperty(\"imagepicker\", {\n name: \"colCount:number\",\n default: 0,\n choices: [0, 1, 2, 3, 4, 5],\n});\nSerializer.addProperty(\"imagepicker\", {\n name: \"multiSelect:boolean\",\n default: false,\n});\nSerializer.addProperty(\"imagepicker\", {\n name: \"choices:imageitemvalue[]\",\n});\n\nQuestionFactory.Instance.registerQuestion(\"imagepicker\", name => {\n var q = new QuestionImagePickerModel(name);\n //q.choices = QuestionFactory.DefaultChoices;\n return q;\n});\n","import { Helpers } from \"./helpers\";\nimport { ItemValue } from \"./itemvalue\";\nimport { QuestionMatrixBaseModel } from \"./martixBase\";\nimport { JsonObject, Serializer } from \"./jsonobject\";\nimport { SurveyError, Base } from \"./base\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { RequiredInAllRowsError } from \"./error\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString, ILocalizableOwner } from \"./localizablestring\";\nimport { QuestionDropdownModel } from \"./question_dropdown\";\nimport { IConditionObject } from \"./question\";\nimport { settings } from \"./settings\";\n\nexport interface IMatrixData {\n onMatrixRowChanged(row: MatrixRowModel): void;\n getCorrectedRowValue(value: any): any;\n}\n\nexport class MatrixRowModel extends Base {\n private data: IMatrixData;\n private item: ItemValue;\n public cellClick: any;\n\n constructor(\n item: ItemValue,\n public fullName: string,\n data: IMatrixData,\n value: any\n ) {\n super();\n this.item = item;\n this.data = data;\n this.value = value;\n this.cellClick = (column: any) => {\n this.value = column.value;\n };\n this.registerFunctionOnPropertyValueChanged(\"value\", () => {\n if (this.data) this.data.onMatrixRowChanged(this);\n });\n }\n public get name(): string {\n return this.item.value;\n }\n public get text(): string {\n return this.item.text;\n }\n public get locText(): LocalizableString {\n return this.item.locText;\n }\n public get value() {\n return this.getPropertyValue(\"value\");\n }\n public set value(newValue: any) {\n newValue = this.data.getCorrectedRowValue(newValue);\n this.setPropertyValue(\"value\", newValue);\n }\n public get rowClasses(): string {\n var cssClasses = (this.data).cssClasses;\n var rowClass = !!cssClasses.row ? cssClasses.row : \"\";\n var rowErrorClass = !!cssClasses.rowError ? cssClasses.rowError : \"\";\n var hasError = !!(this.data).getErrorByType(\"requiredinallrowserror\");\n\n var classes = rowClass;\n if (!!rowErrorClass && hasError && this.isValueEmpty(this.value)) {\n if (!!classes) classes += \" \";\n classes += rowErrorClass;\n }\n return classes;\n }\n}\n\nexport interface IMatrixCellsOwner extends ILocalizableOwner {\n getRows(): Array;\n getColumns(): Array;\n}\n\nexport class MatrixCells {\n private values: { [index: string]: any } = {};\n public constructor(public cellsOwner: IMatrixCellsOwner) {}\n public get isEmpty(): boolean {\n return Object.keys(this.values).length == 0;\n }\n public setCellText(row: any, column: any, val: string) {\n row = this.getCellRowColumnValue(row, this.rows);\n column = this.getCellRowColumnValue(column, this.columns);\n if (!row || !column) return;\n if (val) {\n if (!this.values[row]) this.values[row] = {};\n if (!this.values[row][column])\n this.values[row][column] = this.createString();\n this.values[row][column].text = val;\n } else {\n if (this.values[row] && this.values[row][column]) {\n var loc = this.values[row][column];\n loc.text = \"\";\n if (loc.isEmpty) {\n delete this.values[row][column];\n if (Object.keys(this.values[row]).length == 0) {\n delete this.values[row];\n }\n }\n }\n }\n }\n public setDefaultCellText(column: any, val: string) {\n this.setCellText(settings.matrixDefaultRowName, column, val);\n }\n public getCellLocText(row: any, column: any): LocalizableString {\n row = this.getCellRowColumnValue(row, this.rows);\n column = this.getCellRowColumnValue(column, this.columns);\n if (!row || !column) return null;\n if (!this.values[row]) return null;\n if (!this.values[row][column]) return null;\n return this.values[row][column];\n }\n public getDefaultCellLocText(column: any, val: string): LocalizableString {\n return this.getCellLocText(settings.matrixDefaultRowName, column);\n }\n public getCellDisplayLocText(row: any, column: any): LocalizableString {\n var cellText = this.getCellLocText(row, column);\n if (cellText && !cellText.isEmpty) return cellText;\n cellText = this.getCellLocText(settings.matrixDefaultRowName, column);\n if (cellText && !cellText.isEmpty) return cellText;\n if (typeof column == \"number\") {\n column =\n column >= 0 && column < this.columns.length\n ? this.columns[column]\n : null;\n }\n if (column && column.locText) return column.locText;\n return null;\n }\n public getCellText(row: any, column: any): string {\n var loc = this.getCellLocText(row, column);\n return loc ? loc.calculatedText : null;\n }\n public getDefaultCellText(column: any): string {\n var loc = this.getCellLocText(settings.matrixDefaultRowName, column);\n return loc ? loc.calculatedText : null;\n }\n public getCellDisplayText(row: any, column: any): string {\n var loc = this.getCellDisplayLocText(row, column);\n return loc ? loc.calculatedText : null;\n }\n public get rows(): Array {\n return this.cellsOwner ? this.cellsOwner.getRows() : [];\n }\n public get columns(): Array {\n return this.cellsOwner ? this.cellsOwner.getColumns() : [];\n }\n private getCellRowColumnValue(val: any, values: Array): any {\n if (val === null || val === undefined) return null;\n if (typeof val == \"number\") {\n if (val < 0 || val >= values.length) return null;\n val = values[val].value;\n }\n if (val.value) return val.value;\n return val;\n }\n public getJson(): any {\n if (this.isEmpty) return null;\n var res: { [index: string]: any } = {};\n for (var row in this.values) {\n var resRow: { [index: string]: any } = {};\n var rowValues = this.values[row];\n for (var col in rowValues) {\n resRow[col] = rowValues[col].getJson();\n }\n res[row] = resRow;\n }\n return res;\n }\n public setJson(value: any) {\n this.values = {};\n if (!value) return;\n for (var row in value) {\n if (row == \"pos\") continue;\n var rowValues = value[row];\n this.values[row] = {};\n for (var col in rowValues) {\n if (col == \"pos\") continue;\n var loc = this.createString();\n loc.setJson(rowValues[col]);\n this.values[row][col] = loc;\n }\n }\n }\n protected createString(): LocalizableString {\n return new LocalizableString(this.cellsOwner, true);\n }\n}\n\n/**\n * A Model for a simple matrix question.\n */\nexport class QuestionMatrixModel\n extends QuestionMatrixBaseModel\n implements IMatrixData, IMatrixCellsOwner {\n private isRowChanging = false;\n private cellsValue: MatrixCells;\n\n constructor(name: string) {\n super(name);\n this.cellsValue = new MatrixCells(this);\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"columns\", function () {\n self.onColumnsChanged();\n });\n this.registerFunctionOnPropertyValueChanged(\"rows\", function () {\n if (!self.filterItems()) {\n self.onRowsChanged();\n }\n });\n this.registerFunctionOnPropertyValueChanged(\"hideIfRowsEmpty\", function () {\n self.updateVisibilityBasedOnRows();\n });\n }\n public getType(): string {\n return \"matrix\";\n }\n public get hasSingleInput(): boolean {\n return false;\n }\n /**\n * Set this property to true, if you want a user to answer all rows.\n */\n public get isAllRowRequired(): boolean {\n return this.getPropertyValue(\"isAllRowRequired\", false);\n }\n public set isAllRowRequired(val: boolean) {\n this.setPropertyValue(\"isAllRowRequired\", val);\n }\n /**\n * Returns true, if there is at least one row.\n */\n public get hasRows(): boolean {\n return this.rows.length > 0;\n }\n /**\n * Use this property to render items in a specific order: \"random\" or \"initial\". Default is \"initial\".\n */\n public get rowsOrder(): string {\n return this.getPropertyValue(\"rowsOrder\");\n }\n public set rowsOrder(val: string) {\n val = val.toLowerCase();\n if (val == this.rowsOrder) return;\n this.setPropertyValue(\"rowsOrder\", val);\n this.onRowsChanged();\n }\n /**\n * Set this property to true to hide the question if there is no visible rows in the matrix.\n */\n public get hideIfRowsEmpty(): boolean {\n return this.getPropertyValue(\"hideIfRowsEmpty\", false);\n }\n public set hideIfRowsEmpty(val: boolean) {\n this.setPropertyValue(\"hideIfRowsEmpty\", val);\n }\n getRows(): Array {\n return this.rows;\n }\n getColumns(): Array {\n return this.visibleColumns;\n }\n public getItemClass(row: any, column: any) {\n var isChecked = row.value == column.value;\n var isDisabled = this.isReadOnly;\n var allowHover = !isChecked && !isDisabled;\n var cellDisabledClass = this.hasCellText\n ? this.cssClasses.cellTextDisabled\n : this.cssClasses.itemDisabled;\n\n var cellSelectedClass = this.hasCellText\n ? this.cssClasses.cellTextSelected\n : this.cssClasses.itemChecked;\n\n var itemHoverClass = !this.hasCellText ? this.cssClasses.itemHover : \"\";\n\n var cellClass = this.hasCellText\n ? this.cssClasses.cellText\n : this.cssClasses.label;\n\n let itemClass =\n this.hasCellText && !!this.cssClasses.cell\n ? this.cssClasses.cell + \" \"\n : \"\";\n itemClass +=\n cellClass +\n (isChecked ? \" \" + cellSelectedClass : \"\") +\n (isDisabled ? \" \" + cellDisabledClass : \"\") +\n (allowHover ? \" \" + itemHoverClass : \"\");\n return itemClass;\n }\n\n protected getQuizQuestionCount() {\n var res = 0;\n for (var i = 0; i < this.rows.length; i++) {\n if (!this.isValueEmpty(this.correctAnswer[this.rows[i].value])) res++;\n }\n return res;\n }\n protected getCorrectAnswerCount(): number {\n var res = 0;\n var value = this.value;\n for (var i = 0; i < this.rows.length; i++) {\n var row = this.rows[i].value;\n if (\n !this.isValueEmpty(value[row]) &&\n Helpers.isTwoValueEquals(this.correctAnswer[row], value[row])\n )\n res++;\n }\n return res;\n }\n\n protected getVisibleRows(): Array {\n var result = new Array();\n var val = this.value;\n if (!val) val = {};\n var rows = !!this.filteredRows ? this.filteredRows : this.rows;\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n if (this.isValueEmpty(row.value)) continue;\n result.push(\n this.createMatrixRow(\n row,\n this.id + \"_\" + row.value.toString().replace(/\\s/g, \"_\"),\n val[row.value]\n )\n );\n }\n if (result.length == 0 && !this.filteredRows) {\n result.push(\n this.createMatrixRow(\n new ItemValue(null),\n this.name.replace(/\\s/g, \"_\"),\n val\n )\n );\n }\n this.generatedVisibleRows = result;\n return result;\n }\n protected sortVisibleRows(\n array: Array\n ): Array {\n var order = this.rowsOrder.toLowerCase();\n if (order === \"random\")\n return Helpers.randomizeArray(array);\n return array;\n }\n endLoadingFromJson() {\n super.endLoadingFromJson();\n this.rows = this.sortVisibleRows(this.rows);\n this.updateVisibilityBasedOnRows();\n }\n protected processRowsOnSet(newRows: Array) {\n return this.sortVisibleRows(newRows);\n }\n\n /**\n * Returns the list of visible rows as model objects.\n * @see rowsVisibleIf\n */\n public get visibleRows(): Array {\n return this.getVisibleRows();\n }\n public get cells(): MatrixCells {\n return this.cellsValue;\n }\n public set cells(value: MatrixCells) {\n this.cells.setJson(value && value.getJson ? value.getJson() : null);\n }\n public get hasCellText(): boolean {\n return !this.cells.isEmpty;\n }\n public setCellText(row: any, column: any, val: string) {\n this.cells.setCellText(row, column, val);\n }\n public getCellText(row: any, column: any): string {\n return this.cells.getCellText(row, column);\n }\n public setDefaultCellText(column: any, val: string) {\n this.cells.setDefaultCellText(column, val);\n }\n public getDefaultCellText(column: any): string {\n return this.cells.getDefaultCellText(column);\n }\n public getCellDisplayText(row: any, column: any): string {\n return this.cells.getCellDisplayText(row, column);\n }\n private emptyLocalizableString = new LocalizableString(this);\n public getCellDisplayLocText(row: any, column: any): LocalizableString {\n var loc = this.cells.getCellDisplayLocText(row, column);\n return loc ? loc : this.emptyLocalizableString;\n }\n supportGoNextPageAutomatic() {\n return this.hasValuesInAllRows();\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n super.onCheckForErrors(errors, isOnValueChanged);\n if (\n (!isOnValueChanged || this.errors.length > 0) &&\n this.hasErrorInRows()\n ) {\n errors.push(new RequiredInAllRowsError(null, this));\n }\n }\n private hasErrorInRows(): boolean {\n if (!this.isAllRowRequired) return false;\n return !this.hasValuesInAllRows();\n }\n private hasValuesInAllRows(): boolean {\n var rows = this.generatedVisibleRows;\n if (!rows) rows = this.visibleRows;\n if (!rows) return true;\n for (var i = 0; i < rows.length; i++) {\n if (this.isValueEmpty(rows[i].value)) return false;\n }\n return true;\n }\n protected getIsAnswered(): boolean {\n return super.getIsAnswered() && this.hasValuesInAllRows();\n }\n private createMatrixRow(\n item: ItemValue,\n fullName: string,\n value: any\n ): MatrixRowModel {\n var row = new MatrixRowModel(item, fullName, this, value);\n this.onMatrixRowCreated(row);\n return row;\n }\n protected onMatrixRowCreated(row: MatrixRowModel) {}\n protected setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, this.isRowChanging || updateIsAnswered);\n if (!this.generatedVisibleRows || this.generatedVisibleRows.length == 0)\n return;\n this.isRowChanging = true;\n var val = this.value;\n if (!val) val = {};\n if (this.rows.length == 0) {\n this.generatedVisibleRows[0].value = val;\n } else {\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var row = this.generatedVisibleRows[i];\n var rowVal = val[row.name];\n if (this.isValueEmpty(rowVal)) rowVal = null;\n this.generatedVisibleRows[i].value = rowVal;\n }\n }\n this.updateIsAnswered();\n this.isRowChanging = false;\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var res: { [index: string]: any } = {};\n for (var key in value) {\n var newKey = keysAsText\n ? ItemValue.getTextOrHtmlByValue(this.rows, key)\n : key;\n if (!newKey) newKey = key;\n var newValue = ItemValue.getTextOrHtmlByValue(this.columns, value[key]);\n if (!newValue) newValue = value[key];\n res[newKey] = newValue;\n }\n return res;\n }\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n }\n ) {\n var questionPlainData = super.getPlainData(options);\n if (!!questionPlainData) {\n var values = this.createValueCopy();\n questionPlainData.isNode = true;\n questionPlainData.data = Object.keys(values || {}).map((rowName) => {\n var row = this.rows.filter(\n (r: MatrixRowModel) => r.value === rowName\n )[0];\n var rowDataItem = {\n name: rowName,\n title: !!row ? row.text : \"row\",\n value: values[rowName],\n displayValue: ItemValue.getTextOrHtmlByValue(\n this.visibleColumns,\n values[rowName]\n ),\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: false,\n };\n var item = ItemValue.getItemByValue(\n this.visibleColumns,\n values[rowName]\n );\n if (!!item) {\n (options.calculations || []).forEach((calculation) => {\n rowDataItem[calculation.propertyName] =\n item[calculation.propertyName];\n });\n }\n return rowDataItem;\n });\n }\n return questionPlainData;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n for (var i = 0; i < this.rows.length; i++) {\n var row = this.rows[i];\n if (!!row.value) {\n objects.push({\n name: this.getValueName() + \".\" + row.value,\n text: this.processedTitle + \".\" + row.calculatedText,\n question: this,\n });\n }\n }\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n if (!path) return super.getConditionJson();\n var question = new QuestionDropdownModel(path);\n question.choices = this.columns;\n var json = new JsonObject().toJsonObject(question);\n json[\"type\"] = question.getType();\n return json;\n }\n public clearValueIfInvisible() {\n super.clearValueIfInvisible();\n if (this.hasRows) {\n this.clearInvisibleValuesInRows();\n }\n }\n protected getFirstInputElementId(): string {\n var rows = this.generatedVisibleRows;\n if (!rows) rows = this.visibleRows;\n if (rows.length > 0 && this.visibleColumns.length > 0) {\n return this.inputId + \"_\" + rows[0].name + \"_\" + 0;\n }\n return super.getFirstInputElementId();\n }\n protected onRowsChanged() {\n this.updateVisibilityBasedOnRows();\n super.onRowsChanged();\n }\n private updateVisibilityBasedOnRows() {\n if (this.hideIfRowsEmpty) {\n this.visible =\n this.rows.length > 0 &&\n (!this.filteredRows || this.filteredRows.length > 0);\n }\n }\n //IMatrixData\n onMatrixRowChanged(row: MatrixRowModel) {\n if (this.isRowChanging) return;\n this.isRowChanging = true;\n if (!this.hasRows) {\n this.setNewValue(row.value);\n } else {\n var newValue = this.value;\n if (!newValue) {\n newValue = {};\n }\n newValue[row.name] = row.value;\n this.setNewValue(newValue);\n }\n this.isRowChanging = false;\n }\n getCorrectedRowValue(value: any): any {\n for (var i = 0; i < this.columns.length; i++) {\n if (value === this.columns[i].value) return value;\n }\n for (var i = 0; i < this.columns.length; i++) {\n if (Helpers.isTwoValueEquals(value, this.columns[i].value))\n return this.columns[i].value;\n }\n return value;\n }\n}\n\nSerializer.addClass(\n \"matrix\",\n [\n {\n name: \"columns:itemvalue[]\",\n baseValue: function () {\n return surveyLocalization.getString(\"matrix_column\");\n },\n },\n {\n name: \"rows:itemvalue[]\",\n baseValue: function () {\n return surveyLocalization.getString(\"matrix_row\");\n },\n },\n { name: \"cells:cells\", serializationProperty: \"cells\" },\n {\n name: \"rowsOrder\",\n default: \"initial\",\n choices: [\"initial\", \"random\"],\n },\n \"isAllRowRequired:boolean\",\n \"hideIfRowsEmpty:boolean\",\n ],\n function () {\n return new QuestionMatrixModel(\"\");\n },\n \"matrixbase\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"matrix\", (name) => {\n var q = new QuestionMatrixModel(name);\n q.rows = QuestionFactory.DefaultRows;\n q.columns = QuestionFactory.DefaultColums;\n return q;\n});\n","import {\n QuestionMatrixDropdownModelBase,\n MatrixDropdownRowModelBase,\n IMatrixDropdownData,\n} from \"./question_matrixdropdownbase\";\nimport { Serializer } from \"./jsonobject\";\nimport { ItemValue } from \"./itemvalue\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { IConditionObject } from \"./question\";\n\nexport class MatrixDropdownRowModel extends MatrixDropdownRowModelBase {\n private item: ItemValue;\n constructor(\n public name: string,\n item: ItemValue,\n data: IMatrixDropdownData,\n value: any\n ) {\n super(data, value);\n this.item = item;\n this.buildCells(value);\n }\n public get rowName(): string {\n return this.name;\n }\n public get text(): string {\n return this.item.text;\n }\n public get locText(): LocalizableString {\n return this.item.locText;\n }\n}\n/**\n * A Model for a matrix dropdown question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.\n */\nexport class QuestionMatrixDropdownModel\n extends QuestionMatrixDropdownModelBase\n implements IMatrixDropdownData {\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"totalText\", this, true);\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"rows\", function () {\n self.clearGeneratedRows();\n self.resetRenderedTable();\n self.filterItems();\n });\n }\n public getType(): string {\n return \"matrixdropdown\";\n }\n /**\n * Set this property to show it on the first column for the total row.\n */\n public get totalText() {\n return this.getLocalizableStringText(\"totalText\", \"\");\n }\n public set totalText(val: string) {\n this.setLocalizableStringText(\"totalText\", val);\n }\n public get locTotalText(): LocalizableString {\n return this.getLocalizableString(\"totalText\");\n }\n public getFooterText(): LocalizableString {\n return this.locTotalText;\n }\n /**\n * The column width for the first column, row title column.\n */\n public get rowTitleWidth(): string {\n return this.getPropertyValue(\"rowTitleWidth\", \"\");\n }\n public set rowTitleWidth(val: string) {\n this.setPropertyValue(\"rowTitleWidth\", val);\n }\n public getRowTitleWidth(): string {\n return this.rowTitleWidth;\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var values = this.createValueCopy();\n if (!values) return values;\n var rows = this.visibleRows;\n var res = {};\n for (var i = 0; i < rows.length; i++) {\n var rowValue = this.rows[i].value;\n var val = values[rowValue];\n if (!val) continue;\n if (keysAsText) {\n var displayRowValue = ItemValue.getTextOrHtmlByValue(\n this.rows,\n rowValue\n );\n if (!!displayRowValue) {\n rowValue = displayRowValue;\n }\n }\n (res)[rowValue] = this.getRowDisplayValue(rows[i], val);\n }\n return values;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n var hasContext = !!context ? this.columns.indexOf(context) > -1 : false;\n for (var i = 0; i < this.rows.length; i++) {\n var row = this.rows[i];\n if (!row.value) continue;\n var prefixName = this.getValueName() + \".\" + row.value + \".\";\n var prefixTitle = this.processedTitle + \".\" + row.calculatedText + \".\";\n for (var j = 0; j < this.columns.length; j++) {\n var column = this.columns[j];\n objects.push({\n name: prefixName + column.name,\n text: prefixTitle + column.fullTitle,\n question: this,\n });\n }\n }\n if (hasContext) {\n for (var i = 0; i < this.columns.length; i++) {\n var column = this.columns[i];\n if (column == context) continue;\n objects.push({\n name: \"row.\" + column.name,\n text: \"row.\" + column.fullTitle,\n question: this,\n });\n }\n }\n }\n public clearIncorrectValues() {\n var val = this.value;\n if (!val) return;\n var newVal = null;\n var isChanged = false;\n var rows = !!this.filteredRows ? this.filteredRows : this.rows;\n for (var key in val) {\n if (ItemValue.getItemByValue(rows, key)) {\n if (newVal == null) newVal = {};\n (newVal)[key] = val[key];\n } else {\n isChanged = true;\n }\n }\n if (isChanged) {\n this.value = newVal;\n }\n super.clearIncorrectValues();\n }\n public clearValueIfInvisible() {\n super.clearValueIfInvisible();\n this.clearInvisibleValuesInRows();\n }\n protected generateRows(): Array {\n var result = new Array();\n var rows = !!this.filteredRows ? this.filteredRows : this.rows;\n if (!rows || rows.length === 0) return result;\n var val = this.value;\n if (!val) val = {};\n for (var i = 0; i < rows.length; i++) {\n if (!rows[i].value) continue;\n result.push(this.createMatrixRow(rows[i], val[rows[i].value]));\n }\n return result;\n }\n protected createMatrixRow(\n item: ItemValue,\n value: any\n ): MatrixDropdownRowModel {\n return new MatrixDropdownRowModel(item.value, item, this, value);\n }\n}\n\nSerializer.addClass(\n \"matrixdropdown\",\n [\n {\n name: \"rows:itemvalue[]\",\n },\n \"rowsVisibleIf:condition\",\n \"rowTitleWidth\",\n { name: \"totalText\", serializationProperty: \"locTotalText\" },\n ],\n function () {\n return new QuestionMatrixDropdownModel(\"\");\n },\n \"matrixdropdownbase\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"matrixdropdown\", (name) => {\n var q = new QuestionMatrixDropdownModel(name);\n q.choices = [1, 2, 3, 4, 5];\n q.rows = QuestionFactory.DefaultColums;\n QuestionMatrixDropdownModelBase.addDefaultColumns(q);\n return q;\n});\n","import {\n JsonObject,\n CustomPropertiesCollection,\n JsonObjectProperty,\n Serializer,\n} from \"./jsonobject\";\nimport { QuestionMatrixBaseModel } from \"./martixBase\";\nimport { Question } from \"./question\";\nimport { HashTable, Helpers } from \"./helpers\";\nimport {\n Base,\n IElement,\n IQuestion,\n ISurveyData,\n ISurvey,\n ISurveyImpl,\n ITextProcessor,\n SurveyError,\n IProgressInfo,\n SurveyElement,\n IPanel,\n IWrapperObject,\n} from \"./base\";\nimport {\n TextPreProcessorValue,\n QuestionTextProcessor,\n} from \"./textPreProcessor\";\nimport { ItemValue } from \"./itemvalue\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { QuestionSelectBase } from \"./question_baseselect\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { SurveyValidator } from \"./validator\";\nimport { getCurrecyCodes } from \"./question_expression\";\nimport { FunctionFactory } from \"./functionsfactory\";\nimport { PanelModel } from \"./panel\";\nimport { settings } from \"./settings\";\nimport { KeyDuplicationError } from \"./error\";\nimport { ActionBarItem, IActionBarItem } from \"./action-bar\";\n\nexport interface IMatrixDropdownData {\n value: any;\n onRowChanged(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n newRowValue: any,\n isDeletingValue: boolean\n ): void;\n onRowChanging(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ): any;\n isValidateOnValueChanging: boolean;\n getRowIndex(row: MatrixDropdownRowModelBase): number;\n getRowValue(rowIndex: number): any;\n checkIfValueInRowDuplicated(\n checkedRow: MatrixDropdownRowModelBase,\n cellQuestion: Question\n ): boolean;\n hasDetailPanel(row: MatrixDropdownRowModelBase): boolean;\n getIsDetailPanelShowing(row: MatrixDropdownRowModelBase): boolean;\n setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;\n createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;\n validateCell(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ): SurveyError;\n columns: Array;\n createQuestion(\n row: MatrixDropdownRowModelBase,\n column: MatrixDropdownColumn\n ): Question;\n getLocale(): string;\n getMarkdownHtml(text: string, name: string): string;\n getRenderer(name: string): string;\n getProcessedText(text: string): string;\n getSharedQuestionByName(\n columnName: string,\n row: MatrixDropdownRowModelBase\n ): Question;\n onTotalValueChanged(): any;\n getSurvey(): ISurvey;\n}\n\nexport interface IMatrixColumnOwner extends ILocalizableOwner {\n getRequiredText(): string;\n onColumnPropertyChanged(\n column: MatrixDropdownColumn,\n name: string,\n newValue: any\n ): void;\n onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;\n getCellType(): string;\n onColumnCellTypeChanged(column: MatrixDropdownColumn): void;\n}\n\nfunction onUpdateSelectBaseCellQuestion(\n cellQuestion: QuestionSelectBase,\n column: MatrixDropdownColumn,\n question: QuestionMatrixDropdownModelBase,\n data: any\n) {\n cellQuestion.storeOthersAsComment = !!question\n ? question.storeOthersAsComment\n : false;\n if (\n (!cellQuestion.choices || cellQuestion.choices.length == 0) &&\n cellQuestion.choicesByUrl.isEmpty\n ) {\n cellQuestion.choices = question.choices;\n }\n if (!cellQuestion.choicesByUrl.isEmpty) {\n cellQuestion.choicesByUrl.run(data.getTextProcessor());\n }\n}\nexport var matrixDropdownColumnTypes = {\n dropdown: {\n properties: [\n \"choices\",\n \"choicesOrder\",\n \"choicesByUrl\",\n \"optionsCaption\",\n \"otherText\",\n \"choicesVisibleIf\",\n ],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {\n onUpdateSelectBaseCellQuestion(cellQuestion, column, question, data);\n if (\n !!cellQuestion.locOptionsCaption &&\n cellQuestion.locOptionsCaption.isEmpty &&\n !question.locOptionsCaption.isEmpty\n ) {\n cellQuestion.optionsCaption = question.optionsCaption;\n }\n },\n },\n checkbox: {\n properties: [\n \"choices\",\n \"choicesOrder\",\n \"choicesByUrl\",\n \"otherText\",\n \"choicesVisibleIf\",\n \"hasSelectAll\",\n \"hasNone\",\n ],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {\n onUpdateSelectBaseCellQuestion(cellQuestion, column, question, data);\n cellQuestion.colCount =\n column.colCount > -1 ? column.colCount : question.columnColCount;\n },\n },\n radiogroup: {\n properties: [\n \"choices\",\n \"choicesOrder\",\n \"choicesByUrl\",\n \"otherText\",\n \"choicesVisibleIf\",\n ],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {\n onUpdateSelectBaseCellQuestion(cellQuestion, column, question, data);\n cellQuestion.colCount =\n column.colCount > -1 ? column.colCount : question.columnColCount;\n },\n },\n text: {\n properties: [\"placeHolder\", \"inputType\", \"maxLength\", \"min\", \"max\", \"step\"],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {},\n },\n comment: {\n properties: [\"placeHolder\", \"rows\", \"maxLength\"],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {},\n },\n boolean: {\n properties: [\"renderAs\", \"defaultValue\"],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {\n cellQuestion.showTitle = true;\n cellQuestion.renderAs = column.renderAs;\n },\n },\n expression: {\n properties: [\"expression\", \"displayStyle\", \"currency\"],\n onCellQuestionUpdate: (\n cellQuestion: any,\n column: any,\n question: any,\n data: any\n ) => {},\n },\n rating: {\n properties: [\"rateValues\"],\n },\n};\n\nexport class MatrixDropdownColumn extends Base\n implements ILocalizableOwner, IWrapperObject {\n public static getColumnTypes(): Array {\n var res = [];\n for (var key in matrixDropdownColumnTypes) {\n res.push(key);\n }\n return res;\n }\n private templateQuestionValue: Question;\n private colOwnerValue: IMatrixColumnOwner = null;\n private indexValue = -1;\n private _isVisible = true;\n private _hasVisibleCell = true;\n\n constructor(name: string, title: string = null) {\n super();\n var self = this;\n this.createLocalizableString(\"totalFormat\", this);\n this.registerFunctionOnPropertyValueChanged(\n \"showInMultipleColumns\",\n function() {\n self.doShowInMultipleColumnsChanged();\n }\n );\n this.updateTemplateQuestion();\n this.name = name;\n if (title) this.title = title;\n }\n public getOriginalObj(): Base {\n return this.templateQuestion;\n }\n getClassNameProperty(): string {\n return \"cellType\";\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.colOwner ? (this.colOwner).survey : null;\n }\n endLoadingFromJson() {\n super.endLoadingFromJson();\n this.templateQuestion.endLoadingFromJson();\n this.templateQuestion.onGetSurvey = () => {\n return this.getSurvey();\n };\n }\n getDynamicPropertyName(): string {\n return \"cellType\";\n }\n getDynamicType(): string {\n return this.calcCellQuestionType();\n }\n public get colOwner(): IMatrixColumnOwner {\n return this.colOwnerValue;\n }\n public set colOwner(value: IMatrixColumnOwner) {\n this.colOwnerValue = value;\n if (!!value) {\n this.updateTemplateQuestion();\n }\n }\n public locStrsChanged() {\n super.locStrsChanged();\n this.locTitle.strChanged();\n }\n public addUsedLocales(locales: Array) {\n super.addUsedLocales(locales);\n this.templateQuestion.addUsedLocales(locales);\n }\n public get index() {\n return this.indexValue;\n }\n public setIndex(val: number) {\n this.indexValue = val;\n }\n public getType() {\n return \"matrixdropdowncolumn\";\n }\n public get cellType(): string {\n return this.getPropertyValue(\"cellType\");\n }\n public set cellType(val: string) {\n val = val.toLocaleLowerCase();\n this.setPropertyValue(\"cellType\", val);\n this.updateTemplateQuestion();\n if (!!this.colOwner) {\n this.colOwner.onColumnCellTypeChanged(this);\n }\n }\n public get templateQuestion() {\n return this.templateQuestionValue;\n }\n public get value() {\n return this.templateQuestion.name;\n }\n public get isVisible() {\n return this._isVisible;\n }\n public setIsVisible(newVal: boolean) {\n this._isVisible = newVal;\n }\n public get hasVisibleCell() {\n return this._hasVisibleCell;\n }\n public set hasVisibleCell(newVal: boolean) {\n this._hasVisibleCell = newVal;\n }\n public get name() {\n return this.templateQuestion.name;\n }\n public set name(val: string) {\n this.templateQuestion.name = val;\n }\n public get title(): string {\n return this.templateQuestion.title;\n }\n public set title(val: string) {\n this.templateQuestion.title = val;\n }\n public get locTitle() {\n return this.templateQuestion.locTitle;\n }\n public get fullTitle(): string {\n return this.locTitle.textOrHtml;\n }\n public get isRequired(): boolean {\n return this.templateQuestion.isRequired;\n }\n public set isRequired(val: boolean) {\n this.templateQuestion.isRequired = val;\n }\n public get requiredText(): string {\n return this.templateQuestion.requiredText;\n }\n public get requiredErrorText(): string {\n return this.templateQuestion.requiredErrorText;\n }\n public set requiredErrorText(val: string) {\n this.templateQuestion.requiredErrorText = val;\n }\n get locRequiredErrorText(): LocalizableString {\n return this.templateQuestion.locRequiredErrorText;\n }\n public get readOnly(): boolean {\n return this.templateQuestion.readOnly;\n }\n public set readOnly(val: boolean) {\n this.templateQuestion.readOnly = val;\n }\n public get hasOther(): boolean {\n return this.templateQuestion.hasOther;\n }\n public set hasOther(val: boolean) {\n this.templateQuestion.hasOther = val;\n }\n public get visibleIf(): string {\n return this.templateQuestion.visibleIf;\n }\n public set visibleIf(val: string) {\n this.templateQuestion.visibleIf = val;\n }\n public get enableIf(): string {\n return this.templateQuestion.enableIf;\n }\n public set enableIf(val: string) {\n this.templateQuestion.enableIf = val;\n }\n public get requiredIf(): string {\n return this.templateQuestion.requiredIf;\n }\n public set requiredIf(val: string) {\n this.templateQuestion.requiredIf = val;\n }\n public get isUnique(): boolean {\n return this.getPropertyValue(\"isUnique\");\n }\n public set isUnique(val: boolean) {\n this.setPropertyValue(\"isUnique\", val);\n }\n public get showInMultipleColumns(): boolean {\n return this.getPropertyValue(\"showInMultipleColumns\", false);\n }\n public set showInMultipleColumns(val: boolean) {\n this.setPropertyValue(\"showInMultipleColumns\", val);\n }\n public get isSupportMultipleColumns(): boolean {\n return [\"checkbox\", \"radiogroup\"].indexOf(this.cellType) > -1;\n }\n public get isShowInMultipleColumns(): boolean {\n return this.showInMultipleColumns && this.isSupportMultipleColumns;\n }\n public get validators(): Array {\n return this.templateQuestion.validators;\n }\n public set validators(val: Array) {\n this.templateQuestion.validators = val;\n }\n public get totalType(): string {\n return this.getPropertyValue(\"totalType\", \"none\");\n }\n public set totalType(val: string) {\n this.setPropertyValue(\"totalType\", val);\n }\n public get totalExpression(): string {\n return this.getPropertyValue(\"totalExpression\");\n }\n public set totalExpression(val: string) {\n this.setPropertyValue(\"totalExpression\", val);\n }\n public get hasTotal(): boolean {\n return this.totalType != \"none\" || !!this.totalExpression;\n }\n public get totalFormat(): string {\n return this.getLocalizableStringText(\"totalFormat\", \"\");\n }\n public set totalFormat(val: string) {\n this.setLocalizableStringText(\"totalFormat\", val);\n }\n get locTotalFormat(): LocalizableString {\n return this.getLocalizableString(\"totalFormat\");\n }\n public get renderAs(): string {\n return this.getPropertyValue(\"renderAs\");\n }\n public set renderAs(val: string) {\n this.setPropertyValue(\"renderAs\", val);\n }\n public get totalMaximumFractionDigits(): number {\n return this.getPropertyValue(\"totalMaximumFractionDigits\", -1);\n }\n public set totalMaximumFractionDigits(val: number) {\n if (val < -1 || val > 20) return;\n this.setPropertyValue(\"totalMaximumFractionDigits\", val);\n }\n public get totalMinimumFractionDigits(): number {\n return this.getPropertyValue(\"totalMinimumFractionDigits\", -1);\n }\n public set totalMinimumFractionDigits(val: number) {\n if (val < -1 || val > 20) return;\n this.setPropertyValue(\"totalMinimumFractionDigits\", val);\n }\n public get totalDisplayStyle(): string {\n return this.getPropertyValue(\"totalDisplayStyle\");\n }\n public set totalDisplayStyle(val: string) {\n this.setPropertyValue(\"totalDisplayStyle\", val);\n }\n public get totalCurrency(): string {\n return this.getPropertyValue(\"totalCurrency\");\n }\n public set totalCurrency(val: string) {\n if (getCurrecyCodes().indexOf(val) < 0) return;\n this.setPropertyValue(\"totalCurrency\", val);\n }\n public get minWidth(): string {\n return this.getPropertyValue(\"minWidth\", \"\");\n }\n public set minWidth(val: string) {\n this.setPropertyValue(\"minWidth\", val);\n }\n public get width(): string {\n return this.getPropertyValue(\"width\", \"\");\n }\n public set width(val: string) {\n this.setPropertyValue(\"width\", val);\n }\n public get colCount(): number {\n return this.getPropertyValue(\"colCount\", -1);\n }\n public set colCount(val: number) {\n if (val < -1 || val > 4) return;\n this.setPropertyValue(\"colCount\", val);\n }\n public getLocale(): string {\n return this.colOwner ? this.colOwner.getLocale() : \"\";\n }\n public getMarkdownHtml(text: string, name: string): string {\n return this.colOwner ? this.colOwner.getMarkdownHtml(text, name) : null;\n }\n public getRenderer(name: string): string {\n return !!this.colOwner ? this.colOwner.getRenderer(name) : null;\n }\n public getProcessedText(text: string): string {\n return this.colOwner ? this.colOwner.getProcessedText(text) : text;\n }\n public createCellQuestion(data: any): Question {\n var qType = this.calcCellQuestionType();\n var cellQuestion = this.createNewQuestion(qType);\n this.callOnCellQuestionUpdate(cellQuestion, data);\n return cellQuestion;\n }\n public updateCellQuestion(\n cellQuestion: Question,\n data: any,\n onUpdateJson: (json: any) => any = null\n ) {\n this.setQuestionProperties(cellQuestion, onUpdateJson);\n this.callOnCellQuestionUpdate(cellQuestion, data);\n }\n private callOnCellQuestionUpdate(cellQuestion: Question, data: any) {\n var qType = cellQuestion.getType();\n var qDefinition = (matrixDropdownColumnTypes)[qType];\n if (qDefinition && qDefinition[\"onCellQuestionUpdate\"]) {\n qDefinition[\"onCellQuestionUpdate\"](\n cellQuestion,\n this,\n this.colOwner,\n data\n );\n }\n }\n defaultCellTypeChanged() {\n this.updateTemplateQuestion();\n }\n protected calcCellQuestionType(): string {\n if (this.cellType !== \"default\") return this.cellType;\n if (this.colOwner) return this.colOwner.getCellType();\n return settings.matrixDefaultCellType;\n }\n protected updateTemplateQuestion() {\n var prevCellType = this.templateQuestion\n ? this.templateQuestion.getType()\n : \"\";\n var curCellType = this.calcCellQuestionType();\n if (curCellType === prevCellType) return;\n if (this.templateQuestion) {\n this.removeProperties(prevCellType);\n }\n this.templateQuestionValue = this.createNewQuestion(curCellType);\n this.templateQuestion.locOwner = this;\n this.addProperties(curCellType);\n var self = this;\n this.templateQuestion.onPropertyChanged.add(function(sender, options) {\n self.propertyValueChanged(\n options.name,\n options.oldValue,\n options.newValue\n );\n });\n this.templateQuestion.isContentElement = true;\n if (!this.isLoadingFromJson) {\n this.templateQuestion.onGetSurvey = () => {\n return this.getSurvey();\n };\n }\n }\n protected createNewQuestion(cellType: string): Question {\n var question = Serializer.createClass(cellType);\n if (!question) {\n question = Serializer.createClass(\"text\");\n }\n question.loadingOwner = this;\n this.setQuestionProperties(question);\n return question;\n }\n protected setQuestionProperties(\n question: Question,\n onUpdateJson: (json: any) => any = null\n ) {\n if (this.templateQuestion) {\n var json = new JsonObject().toJsonObject(this.templateQuestion, true);\n if (onUpdateJson) {\n onUpdateJson(json);\n }\n json.type = question.getType();\n new JsonObject().toObject(json, question);\n }\n }\n protected propertyValueChanged(name: string, oldValue: any, newValue: any) {\n super.propertyValueChanged(name, oldValue, newValue);\n if (\n name === \"visibleChoices\" ||\n name === \"isReadOnly\" ||\n name === \"cssRoot\"\n )\n return; //TODO descriptor doesn't return that it is a read-only property\n if (this.colOwner != null && !this.isLoadingFromJson) {\n this.colOwner.onColumnPropertyChanged(this, name, newValue);\n }\n }\n private doShowInMultipleColumnsChanged() {\n if (this.colOwner != null && !this.isLoadingFromJson) {\n this.colOwner.onShowInMultipleColumnsChanged(this);\n }\n }\n private getProperties(curCellType: string): Array {\n return Serializer.getDynamicPropertiesByObj(this, curCellType);\n }\n private removeProperties(curCellType: string) {\n var properties = this.getProperties(curCellType);\n for (var i = 0; i < properties.length; i++) {\n var prop = properties[i];\n delete (this)[prop.name];\n if (prop.serializationProperty) {\n delete (this)[prop.serializationProperty];\n }\n }\n }\n private addProperties(curCellType: string) {\n var question = this.templateQuestion;\n var properties = this.getProperties(curCellType);\n for (var i = 0; i < properties.length; i++) {\n var prop = properties[i];\n this.addProperty(question, prop.name, false);\n if (prop.serializationProperty) {\n this.addProperty(question, prop.serializationProperty, true);\n }\n }\n }\n private addProperty(\n question: Question,\n propName: string,\n isReadOnly: boolean\n ) {\n var desc = {\n configurable: true,\n get: function() {\n return (question)[propName];\n },\n };\n if (!isReadOnly) {\n (desc)[\"set\"] = function(v: any) {\n (question)[propName] = v;\n };\n }\n Object.defineProperty(this, propName, desc);\n }\n}\n\nexport class MatrixDropdownCell {\n private questionValue: Question;\n constructor(\n public column: MatrixDropdownColumn,\n public row: MatrixDropdownRowModelBase,\n public data: IMatrixDropdownData\n ) {\n this.questionValue = this.createQuestion(column, row, data);\n this.questionValue.updateCustomWidget();\n }\n public locStrsChanged() {\n this.question.locStrsChanged();\n }\n protected createQuestion(\n column: MatrixDropdownColumn,\n row: MatrixDropdownRowModelBase,\n data: IMatrixDropdownData\n ): Question {\n var res = data.createQuestion(this.row, this.column);\n res.validateValueCallback = function() {\n return data.validateCell(row, column.name, row.value);\n };\n CustomPropertiesCollection.getProperties(column.getType()).forEach(\n property => {\n let propertyName = property.name;\n if ((column)[propertyName] !== undefined) {\n res[propertyName] = (column)[propertyName];\n }\n }\n );\n return res;\n }\n public get question(): Question {\n return this.questionValue;\n }\n public get value(): any {\n return this.question.value;\n }\n public set value(value: any) {\n this.question.value = value;\n }\n public runCondition(values: HashTable, properties: HashTable) {\n this.question.runCondition(values, properties);\n }\n}\n\nexport class MatrixDropdownTotalCell extends MatrixDropdownCell {\n constructor(\n public column: MatrixDropdownColumn,\n public row: MatrixDropdownRowModelBase,\n public data: IMatrixDropdownData\n ) {\n super(column, row, data);\n this.updateCellQuestion();\n }\n protected createQuestion(\n column: MatrixDropdownColumn,\n row: MatrixDropdownRowModelBase,\n data: IMatrixDropdownData\n ): Question {\n var res = Serializer.createClass(\"expression\");\n res.setSurveyImpl(row);\n return res;\n }\n public locStrsChanged() {\n this.updateCellQuestion();\n super.locStrsChanged();\n }\n public updateCellQuestion() {\n this.question.locCalculation();\n this.column.updateCellQuestion(this.question, null, function(json) {\n delete json[\"defaultValue\"];\n });\n this.question.expression = this.getTotalExpression();\n this.question.format = this.column.totalFormat;\n this.question.currency = this.column.totalCurrency;\n this.question.displayStyle = this.column.totalDisplayStyle;\n this.question.maximumFractionDigits = this.column.totalMaximumFractionDigits;\n this.question.minimumFractionDigits = this.column.totalMinimumFractionDigits;\n this.question.unlocCalculation();\n }\n public getTotalExpression(): string {\n if (!!this.column.totalExpression) return this.column.totalExpression;\n if (this.column.totalType == \"none\") return \"\";\n var funName = this.column.totalType + \"InArray\";\n if (!FunctionFactory.Instance.hasFunction(funName)) return \"\";\n return funName + \"({self}, '\" + this.column.name + \"')\";\n }\n}\n\nclass MatrixDropdownRowTextProcessor extends QuestionTextProcessor {\n constructor(\n protected row: MatrixDropdownRowModelBase,\n protected variableName: string\n ) {\n super(variableName);\n }\n protected get survey(): ISurvey {\n return this.row.getSurvey();\n }\n protected getValues(): any {\n return this.row.value;\n }\n protected getQuestionByName(name: string): Question {\n return this.row.getQuestionByName(name);\n }\n protected onCustomProcessText(textValue: TextPreProcessorValue): boolean {\n if (textValue.name == MatrixDropdownRowModelBase.IndexVariableName) {\n textValue.isExists = true;\n textValue.value = this.row.rowIndex;\n return true;\n }\n if (textValue.name == MatrixDropdownRowModelBase.RowValueVariableName) {\n textValue.isExists = true;\n textValue.value = this.row.rowName;\n return true;\n }\n return false;\n }\n}\n\nexport class MatrixDropdownRowModelBase\n implements ISurveyData, ISurveyImpl, ILocalizableOwner {\n public static RowVariableName = \"row\";\n public static OwnerVariableName = \"self\";\n public static IndexVariableName = \"rowIndex\";\n public static RowValueVariableName = \"rowValue\";\n\n private static idCounter: number = 1;\n private static getId(): string {\n return \"srow_\" + MatrixDropdownRowModelBase.idCounter++;\n }\n protected data: IMatrixDropdownData;\n protected isSettingValue: boolean = false;\n private idValue: string;\n private textPreProcessor: MatrixDropdownRowTextProcessor;\n private detailPanelValue: PanelModel = null;\n\n public cells: Array = [];\n public showHideDetailPanelClick: any;\n\n constructor(data: IMatrixDropdownData, value: any) {\n this.data = data;\n this.subscribeToChanges(value);\n this.textPreProcessor = new MatrixDropdownRowTextProcessor(\n this,\n MatrixDropdownRowModelBase.RowVariableName\n );\n this.showHideDetailPanelClick = () => {\n this.showHideDetailPanel();\n };\n this.idValue = MatrixDropdownRowModelBase.getId();\n }\n public get id(): string {\n return this.idValue;\n }\n public get rowName(): any {\n return null;\n }\n public get value(): any {\n var result: any = {};\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n var question = questions[i];\n if (!question.isEmpty()) {\n result[question.getValueName()] = question.value;\n }\n if (\n !!question.comment &&\n !!this.getSurvey() &&\n this.getSurvey().storeOthersAsComment\n ) {\n result[question.getValueName() + settings.commentPrefix] =\n question.comment;\n }\n }\n return result;\n }\n public get locText(): LocalizableString {\n return null;\n }\n public get hasPanel(): boolean {\n if (!this.data) return false;\n return this.data.hasDetailPanel(this);\n }\n public get detailPanel(): PanelModel {\n return this.detailPanelValue;\n }\n public get detailPanelId(): string {\n return !!this.detailPanel ? this.detailPanel.id : \"\";\n }\n public get isDetailPanelShowing(): boolean {\n return !!this.data ? this.data.getIsDetailPanelShowing(this) : false;\n }\n private setIsDetailPanelShowing(val: boolean) {\n if (!!this.data) {\n this.data.setIsDetailPanelShowing(this, val);\n }\n }\n private showHideDetailPanel() {\n if (this.isDetailPanelShowing) {\n this.hideDetailPanel();\n } else {\n this.showDetailPanel();\n }\n }\n private isCreatingDetailPanel = false;\n public showDetailPanel() {\n this.ensureDetailPanel();\n if (!this.detailPanelValue) return;\n this.setIsDetailPanelShowing(true);\n }\n public hideDetailPanel(destroyPanel: boolean = false) {\n this.setIsDetailPanelShowing(false);\n if (destroyPanel) {\n this.detailPanelValue = null;\n }\n }\n private ensureDetailPanel() {\n if (this.isCreatingDetailPanel) return;\n if (!!this.detailPanelValue || !this.hasPanel || !this.data) return;\n this.isCreatingDetailPanel = true;\n this.detailPanelValue = this.data.createRowDetailPanel(this);\n var questions = this.detailPanelValue.questions;\n var value = this.data.getRowValue(this.data.getRowIndex(this));\n if (!Helpers.isValueEmpty(value)) {\n for (var i = 0; i < questions.length; i++) {\n var key = questions[i].getValueName();\n if (!Helpers.isValueEmpty(value[key])) {\n questions[i].value = value[key];\n }\n }\n }\n this.detailPanelValue.setSurveyImpl(this);\n this.isCreatingDetailPanel = false;\n }\n getAllValues(): any {\n return this.value;\n }\n getFilteredValues(): any {\n var allValues = this.getAllValues();\n var values: { [key: string]: any } = { row: allValues };\n for (var key in allValues) {\n values[key] = allValues[key];\n }\n return values;\n }\n getFilteredProperties(): any {\n return { survey: this.getSurvey(), row: this };\n }\n public runCondition(values: HashTable, properties: HashTable) {\n if (!!this.data) {\n values[MatrixDropdownRowModelBase.OwnerVariableName] = this.data.value;\n }\n values[MatrixDropdownRowModelBase.IndexVariableName] = this.rowIndex;\n values[MatrixDropdownRowModelBase.RowValueVariableName] = this.rowName;\n if (!properties) properties = {};\n properties[MatrixDropdownRowModelBase.RowVariableName] = this;\n for (var i = 0; i < this.cells.length; i++) {\n values[MatrixDropdownRowModelBase.RowVariableName] = this.value;\n this.cells[i].runCondition(values, properties);\n }\n if (!!this.detailPanel) {\n this.detailPanel.runCondition(values, properties);\n }\n }\n public set value(value: any) {\n this.isSettingValue = true;\n this.subscribeToChanges(value);\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n var question = questions[i];\n var val = !!value ? value[question.getValueName()] : null;\n var oldComment = question.comment;\n var comment = !!value\n ? value[question.getValueName() + settings.commentPrefix]\n : \"\";\n if (comment == undefined) comment = \"\";\n question.updateValueFromSurvey(val);\n if (!!comment || Helpers.isTwoValueEquals(oldComment, question.comment)) {\n question.updateCommentFromSurvey(comment);\n }\n question.onSurveyValueChanged(val);\n }\n this.isSettingValue = false;\n }\n public onAnyValueChanged(name: string) {\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].onAnyValueChanged(name);\n }\n }\n public getDataValueCore(valuesHash: any, key: string) {\n var survey = this.getSurvey();\n if (!!survey) {\n return (survey).getDataValueCore(valuesHash, key);\n } else {\n return valuesHash[key];\n }\n }\n public getValue(name: string): any {\n var question = this.getQuestionByName(name);\n return !!question ? question.value : null;\n }\n public setValue(name: string, newColumnValue: any) {\n this.setValueCore(name, newColumnValue, false);\n }\n getVariable(name: string): any {\n return undefined;\n }\n setVariable(name: string, newValue: any) {}\n public getComment(name: string): string {\n var question = this.getQuestionByName(name);\n return !!question ? question.comment : \"\";\n }\n public setComment(name: string, newValue: string, locNotification: any) {\n this.setValueCore(name, newValue, true);\n }\n private setValueCore(name: string, newColumnValue: any, isComment: boolean) {\n if (this.isSettingValue) return;\n var newValue = this.value;\n var changedName = isComment ? name + settings.commentPrefix : name;\n var changedValue = isComment ? this.getComment(name) : this.getValue(name);\n var changedQuestion = this.getQuestionByName(name);\n var changingValue = this.data.onRowChanging(this, changedName, newValue);\n if (\n !!changedQuestion &&\n !Helpers.isTwoValueEquals(changingValue, changedValue)\n ) {\n if (isComment) {\n changedQuestion.comment = changingValue;\n } else {\n changedQuestion.value = changingValue;\n }\n } else {\n if (\n this.data.isValidateOnValueChanging &&\n this.hasQuestonError(changedQuestion)\n )\n return;\n this.data.onRowChanged(\n this,\n changedName,\n newValue,\n newColumnValue == null && !changedQuestion\n );\n this.onAnyValueChanged(MatrixDropdownRowModelBase.RowVariableName);\n }\n }\n private hasQuestonError(question: Question): boolean {\n if (!question) return false;\n if (\n question.hasErrors(true, {\n isOnValueChanged: !this.data.isValidateOnValueChanging,\n })\n )\n return true;\n if (question.isEmpty()) return false;\n var cell = this.getCellByColumnName(question.name);\n if (!cell || !cell.column || !cell.column.isUnique) return false;\n return this.data.checkIfValueInRowDuplicated(this, question);\n }\n public get isEmpty() {\n var val = this.value;\n if (Helpers.isValueEmpty(val)) return true;\n for (var key in val) {\n if (val[key] !== undefined && val[key] !== null) return false;\n }\n return true;\n }\n public getQuestionByColumn(column: MatrixDropdownColumn): Question {\n for (var i = 0; i < this.cells.length; i++) {\n if (this.cells[i].column == column) return this.cells[i].question;\n }\n return null;\n }\n private getCellByColumnName(columnName: string): MatrixDropdownCell {\n for (var i = 0; i < this.cells.length; i++) {\n if (this.cells[i].column.name == columnName) return this.cells[i];\n }\n return null;\n }\n public getQuestionByColumnName(columnName: string): Question {\n var cell = this.getCellByColumnName(columnName);\n return !!cell ? cell.question : null;\n }\n public get questions(): Array {\n var res: Array = [];\n for (var i = 0; i < this.cells.length; i++) {\n res.push(this.cells[i].question);\n }\n var detailQuestions = !!this.detailPanel ? this.detailPanel.questions : [];\n for (var i = 0; i < detailQuestions.length; i++) {\n res.push(detailQuestions[i]);\n }\n return res;\n }\n public getQuestionByName(name: string): Question {\n var res = this.getQuestionByColumnName(name);\n if (!!res) return res;\n return !!this.detailPanel ? this.detailPanel.getQuestionByName(name) : null;\n }\n public getQuestionsByName(name: string): Array {\n let res = [];\n let q = this.getQuestionByColumnName(name);\n if (!!q) res.push(q);\n if (!!this.detailPanel) {\n q = this.detailPanel.getQuestionByName(name);\n if (!!q) res.push(q);\n }\n return res;\n }\n protected getSharedQuestionByName(columnName: string): Question {\n return !!this.data\n ? this.data.getSharedQuestionByName(columnName, this)\n : null;\n }\n public clearIncorrectValues(val: any) {\n for (var key in val) {\n var question = this.getQuestionByName(key);\n if (question) {\n var qVal = question.value;\n question.clearIncorrectValues();\n if (!Helpers.isTwoValueEquals(qVal, question.value)) {\n this.setValue(key, question.value);\n }\n } else {\n if (\n !this.getSharedQuestionByName(key) &&\n key.indexOf(settings.matrixTotalValuePostFix) < 0\n ) {\n this.setValue(key, null);\n }\n }\n }\n }\n public getLocale(): string {\n return this.data ? this.data.getLocale() : \"\";\n }\n public getMarkdownHtml(text: string, name: string): string {\n return this.data ? this.data.getMarkdownHtml(text, name) : null;\n }\n public getRenderer(name: string): string {\n return this.data ? this.data.getRenderer(name) : null;\n }\n public getProcessedText(text: string): string {\n return this.data ? this.data.getProcessedText(text) : text;\n }\n public locStrsChanged() {\n for (var i = 0; i < this.cells.length; i++) {\n this.cells[i].locStrsChanged();\n }\n if (!!this.detailPanel) {\n this.detailPanel.locStrsChanged();\n }\n }\n public updateCellQuestionOnColumnChanged(\n column: MatrixDropdownColumn,\n name: string,\n newValue: any\n ) {\n for (var i = 0; i < this.cells.length; i++) {\n if (this.cells[i].column === column) {\n this.updateCellOnColumnChanged(this.cells[i], name, newValue);\n return;\n }\n }\n }\n public onQuestionReadOnlyChanged(parentIsReadOnly: boolean) {\n var questions = this.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].readOnly = parentIsReadOnly;\n }\n }\n public hasErrors(\n fireCallback: boolean,\n rec: any,\n raiseOnCompletedAsyncValidators: () => void\n ): boolean {\n var res = false;\n var cells = this.cells;\n if (!cells) return res;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n if (!cells[colIndex]) continue;\n var question = cells[colIndex].question;\n if (!question || !question.visible) continue;\n question.onCompletedAsyncValidators = (hasErrors: boolean) => {\n raiseOnCompletedAsyncValidators();\n };\n if (!!rec && rec.isOnValueChanged === true && question.isEmpty())\n continue;\n res = question.hasErrors(fireCallback, rec) || res;\n }\n if (this.hasPanel) {\n this.ensureDetailPanel();\n var panelHasError = this.detailPanel.hasErrors(fireCallback, false, rec);\n if (!rec.hideErroredPanel && panelHasError && fireCallback) {\n if (rec.isSingleDetailPanel) {\n rec.hideErroredPanel = true;\n }\n this.showDetailPanel();\n }\n res = panelHasError || res;\n }\n return res;\n }\n\n protected updateCellOnColumnChanged(\n cell: MatrixDropdownCell,\n name: string,\n newValue: any\n ) {\n cell.question[name] = newValue;\n }\n protected buildCells(value: any) {\n this.isSettingValue = true;\n var columns = this.data.columns;\n for (var i = 0; i < columns.length; i++) {\n var column = columns[i];\n if (!column.isVisible) continue;\n var cell = this.createCell(column);\n this.cells.push(cell);\n var cellValue = this.getCellValue(value, column.name);\n if (!Helpers.isValueEmpty(cellValue)) {\n cell.question.value = cellValue;\n var commentKey = column.name + settings.commentPrefix;\n if (!!value && !Helpers.isValueEmpty(value[commentKey])) {\n cell.question.comment = value[commentKey];\n }\n }\n }\n this.isSettingValue = false;\n }\n private getCellValue(value: any, name: string): any {\n if (!!this.editingObj)\n return Serializer.getObjPropertyValue(this.editingObj, name);\n return !!value ? value[name] : undefined;\n }\n protected createCell(column: MatrixDropdownColumn): MatrixDropdownCell {\n return new MatrixDropdownCell(column, this, this.data);\n }\n getSurveyData(): ISurveyData {\n return this;\n }\n getSurvey(): ISurvey {\n return this.data ? this.data.getSurvey() : null;\n }\n getTextProcessor(): ITextProcessor {\n return this.textPreProcessor;\n }\n public get rowIndex(): number {\n return !!this.data ? this.data.getRowIndex(this) + 1 : -1;\n }\n public get editingObj(): Base {\n return this.editingObjValue;\n }\n private onEditingObjPropertyChanged: (sender: Base, options: any) => void;\n private editingObjValue: Base;\n public dispose() {\n if (!!this.editingObj) {\n this.editingObj.onPropertyChanged.remove(\n this.onEditingObjPropertyChanged\n );\n this.editingObjValue = null;\n }\n }\n private subscribeToChanges(value: any) {\n if (!value || !value.getType || !value.onPropertyChanged) return;\n if (value === this.editingObj) return;\n this.editingObjValue = value;\n this.onEditingObjPropertyChanged = (sender: Base, options: any) => {\n this.updateOnSetValue(options.name, options.newValue);\n };\n this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged);\n }\n private updateOnSetValue(name: string, newValue: any) {\n this.isSettingValue = true;\n let questions = this.getQuestionsByName(name);\n for (let i = 0; i < questions.length; i++) {\n questions[i].value = newValue;\n }\n this.isSettingValue = false;\n }\n}\nexport class MatrixDropdownTotalRowModel extends MatrixDropdownRowModelBase {\n constructor(data: IMatrixDropdownData) {\n super(data, null);\n this.buildCells(null);\n }\n protected createCell(column: MatrixDropdownColumn): MatrixDropdownCell {\n return new MatrixDropdownTotalCell(column, this, this.data);\n }\n public setValue(name: string, newValue: any) {\n if (!!this.data && !this.isSettingValue) {\n this.data.onTotalValueChanged();\n }\n }\n public runCondition(values: HashTable, properties: HashTable) {\n var counter = 0;\n var prevValue;\n do {\n prevValue = Helpers.getUnbindValue(this.value);\n super.runCondition(values, properties);\n counter++;\n } while (!Helpers.isTwoValueEquals(prevValue, this.value) && counter < 3);\n }\n protected updateCellOnColumnChanged(\n cell: MatrixDropdownCell,\n name: string,\n newValue: any\n ) {\n (cell).updateCellQuestion();\n }\n}\n\nexport class QuestionMatrixDropdownRenderedCell {\n private static counter = 1;\n private idValue: number;\n private itemValue: ItemValue;\n public minWidth: string = \"\";\n public width: string = \"\";\n public locTitle: LocalizableString;\n public cell: MatrixDropdownCell;\n public row: MatrixDropdownRowModelBase;\n public question: Question;\n public isRemoveRow: boolean;\n public choiceIndex: number;\n public matrix: QuestionMatrixDropdownModelBase;\n public requiredText: string;\n public isEmpty: boolean;\n public colSpans: number = 1;\n public panel: PanelModel;\n public isShowHideDetail: boolean;\n public isActionsCell: boolean = false;\n public className: string = \"\";\n public constructor() {\n this.idValue = QuestionMatrixDropdownRenderedCell.counter++;\n }\n public get hasQuestion(): boolean {\n return !!this.question;\n }\n public get hasTitle(): boolean {\n return !!this.locTitle;\n }\n public get hasPanel(): boolean {\n return !!this.panel;\n }\n public get id(): number {\n return this.idValue;\n }\n public get showErrorOnTop(): boolean {\n return this.showErrorOnCore(\"top\");\n }\n public get showErrorOnBottom(): boolean {\n return this.showErrorOnCore(\"bottom\");\n }\n private showErrorOnCore(location: string): boolean {\n return (\n this.getShowErrorLocation() == location &&\n (!this.isChoice || this.isFirstChoice)\n );\n }\n private getShowErrorLocation(): string {\n return this.hasQuestion ? this.question.survey.questionErrorLocation : \"\";\n }\n public get item(): ItemValue {\n return this.itemValue;\n }\n public set item(val: ItemValue) {\n this.itemValue = val;\n if (!!val) {\n val.hideCaption = true;\n }\n }\n public get isChoice(): boolean {\n return !!this.item;\n }\n public get choiceValue(): any {\n return this.isChoice ? this.item.value : null;\n }\n public get isCheckbox(): boolean {\n return this.isChoice && this.question.getType() == \"checkbox\";\n }\n public get isFirstChoice(): boolean {\n return this.choiceIndex === 0;\n }\n public get css(): string {\n return (\n this.className +\n (this.question.errors.length > 0 ? \" \" + this.question.cssError : \"\")\n );\n }\n public get headers(): string {\n if (\n this.cell &&\n this.cell.column &&\n this.cell.column.isShowInMultipleColumns\n ) {\n return this.item.locText.renderedHtml;\n }\n if (this.question && this.question.isVisible) {\n return this.question.locTitle.renderedHtml;\n }\n if (this.hasTitle) {\n return this.locTitle.renderedHtml || \"\";\n }\n return \"\";\n }\n\n public calculateFinalClassName(matrixCssClasses: any): string {\n const questionCss = this.cell.question.cssClasses;\n let className = \"\";\n if (!!questionCss) {\n className = \"\";\n if (!!questionCss.itemValue) {\n className += \" \" + questionCss.itemValue;\n }\n if (!!questionCss.asCell) {\n if (!!className) className += \"\";\n className += questionCss.asCell;\n }\n }\n if (!className && !!matrixCssClasses) {\n className = matrixCssClasses.cell;\n }\n className +=\n this.question.errors.length > 0 ? \" \" + questionCss.hasError : \"\";\n\n if (this.isChoice) {\n className += \" \" + matrixCssClasses.choiceCell;\n }\n //'text-align': $data.isChoice ? 'center': ''\n return className;\n }\n}\n\nexport class QuestionMatrixDropdownRenderedRow {\n public isDetailRow: boolean = false;\n public row: MatrixDropdownRowModelBase;\n private static counter = 1;\n private idValue: number;\n public cells: Array = [];\n public className: string = \"\";\n public constructor() {\n this.idValue = QuestionMatrixDropdownRenderedRow.counter++;\n }\n public get id(): number {\n return this.idValue;\n }\n}\n\nexport class QuestionMatrixDropdownRenderedTable extends Base {\n private headerRowValue: QuestionMatrixDropdownRenderedRow;\n private footerRowValue: QuestionMatrixDropdownRenderedRow;\n private hasRemoveRowsValue: boolean;\n private rowsActions: Array>;\n private cssClasses: any;\n public constructor(public matrix: QuestionMatrixDropdownModelBase) {\n super();\n this.createNewArray(\"rows\");\n this.build();\n }\n public get showTable(): boolean {\n return this.getPropertyValue(\"showTable\", true);\n }\n public get showHeader(): boolean {\n return this.getPropertyValue(\"showHeader\");\n }\n public get showAddRowOnTop(): boolean {\n return this.getPropertyValue(\"showAddRowOnTop\", false);\n }\n public get showAddRowOnBottom(): boolean {\n return this.getPropertyValue(\"showAddRowOnBottom\", false);\n }\n public get showFooter(): boolean {\n return this.matrix.hasFooter && this.matrix.isColumnLayoutHorizontal;\n }\n public get hasFooter(): boolean {\n return !!this.footerRow;\n }\n public get hasRemoveRows(): boolean {\n return this.hasRemoveRowsValue;\n }\n public isRequireReset(): boolean {\n return (\n this.hasRemoveRows != this.matrix.canRemoveRows ||\n !this.matrix.isColumnLayoutHorizontal\n );\n }\n public get headerRow(): QuestionMatrixDropdownRenderedRow {\n return this.headerRowValue;\n }\n public get footerRow(): QuestionMatrixDropdownRenderedRow {\n return this.footerRowValue;\n }\n public get rows(): Array {\n return this.getPropertyValue(\"rows\");\n }\n protected build() {\n this.hasRemoveRowsValue = this.matrix.canRemoveRows;\n //build rows now\n var rows = this.matrix.visibleRows;\n this.cssClasses = this.matrix.cssClasses;\n this.buildRowsActions();\n this.buildHeader();\n this.buildRows();\n this.buildFooter();\n this.updateShowTableAndAddRow();\n }\n public updateShowTableAndAddRow() {\n var showTable =\n this.rows.length > 0 ||\n this.matrix.isDesignMode ||\n !this.matrix.getShowColumnsIfEmpty();\n this.setPropertyValue(\"showTable\", showTable);\n var showAddRow = this.matrix.canAddRow && showTable;\n var showAddRowOnTop = showAddRow;\n var showAddRowOnBottom = showAddRow;\n if (showAddRowOnTop) {\n if (this.matrix.getAddRowLocation() === \"default\") {\n showAddRowOnTop = this.matrix.columnLayout === \"vertical\";\n } else {\n showAddRowOnTop = this.matrix.getAddRowLocation() !== \"bottom\";\n }\n }\n if (showAddRowOnBottom && this.matrix.getAddRowLocation() !== \"topBottom\") {\n showAddRowOnBottom = !showAddRowOnTop;\n }\n this.setPropertyValue(\"showAddRowOnTop\", showAddRowOnTop);\n this.setPropertyValue(\"showAddRowOnBottom\", showAddRowOnBottom);\n }\n public onAddedRow() {\n if (this.getRenderedDataRowCount() >= this.matrix.visibleRows.length)\n return;\n this.addHorizontalRow(\n this.rows,\n this.matrix.visibleRows[this.matrix.visibleRows.length - 1],\n this.matrix.visibleRows.length == 1 && !this.matrix.showHeader\n );\n this.updateShowTableAndAddRow();\n }\n private getRenderedDataRowCount(): number {\n var res = 0;\n for (var i = 0; i < this.rows.length; i++) {\n if (!this.rows[i].isDetailRow) res++;\n }\n return res;\n }\n public onRemovedRow(row: MatrixDropdownRowModelBase) {\n var rowIndex = this.getRenderedRowIndex(row);\n if (rowIndex < 0) return;\n var removeCount = 1;\n if (\n rowIndex < this.rows.length - 1 &&\n this.rows[rowIndex + 1].isDetailRow\n ) {\n removeCount++;\n }\n this.rows.splice(rowIndex, removeCount);\n this.updateShowTableAndAddRow();\n }\n public onDetailPanelChangeVisibility(\n row: MatrixDropdownRowModelBase,\n isShowing: boolean\n ) {\n var rowIndex = this.getRenderedRowIndex(row);\n if (rowIndex < 0) return;\n var panelRowIndex =\n rowIndex < this.rows.length - 1 && this.rows[rowIndex + 1].isDetailRow\n ? rowIndex + 1\n : -1;\n if ((isShowing && panelRowIndex > -1) || (!isShowing && panelRowIndex < 0))\n return;\n if (isShowing) {\n var detailRow = this.createDetailPanelRow(row, this.rows[rowIndex]);\n this.rows.splice(rowIndex + 1, 0, detailRow);\n } else {\n this.rows.splice(panelRowIndex, 1);\n }\n }\n private getRenderedRowIndex(row: MatrixDropdownRowModelBase): number {\n for (var i = 0; i < this.rows.length; i++) {\n if (this.rows[i].row == row) return i;\n }\n return -1;\n }\n protected buildRowsActions() {\n this.rowsActions = [];\n var rows = this.matrix.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n this.rowsActions.push(this.buildRowActions(rows[i]));\n }\n }\n protected buildHeader() {\n var colHeaders =\n this.matrix.isColumnLayoutHorizontal && this.matrix.showHeader;\n var isShown =\n colHeaders ||\n (this.matrix.hasRowText && !this.matrix.isColumnLayoutHorizontal);\n this.setPropertyValue(\"showHeader\", isShown);\n if (!isShown) return;\n this.headerRowValue = new QuestionMatrixDropdownRenderedRow();\n if (this.hasActionCellInRows(\"start\")) {\n this.headerRow.cells.push(this.createHeaderCell(null));\n }\n if (this.matrix.hasRowText && this.matrix.showHeader) {\n this.headerRow.cells.push(this.createHeaderCell(null));\n }\n if (this.matrix.isColumnLayoutHorizontal) {\n for (var i = 0; i < this.matrix.visibleColumns.length; i++) {\n var column = this.matrix.visibleColumns[i];\n if (!column.hasVisibleCell) continue;\n if (column.isShowInMultipleColumns) {\n this.createMutlipleColumnsHeader(column);\n } else {\n this.headerRow.cells.push(this.createHeaderCell(column));\n }\n }\n } else {\n var rows = this.matrix.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n this.headerRow.cells.push(this.createTextCell(rows[i].locText));\n }\n if (this.matrix.hasFooter) {\n this.headerRow.cells.push(\n this.createTextCell(this.matrix.getFooterText())\n );\n }\n }\n if (this.hasActionCellInRows(\"end\")) {\n this.headerRow.cells.push(this.createHeaderCell(null));\n }\n }\n protected buildFooter() {\n if (!this.showFooter) return;\n this.footerRowValue = new QuestionMatrixDropdownRenderedRow();\n if (this.hasActionCellInRows(\"start\")) {\n this.footerRow.cells.push(this.createHeaderCell(null));\n }\n if (this.matrix.hasRowText) {\n this.footerRow.cells.push(\n this.createTextCell(this.matrix.getFooterText())\n );\n }\n var cells = this.matrix.visibleTotalRow.cells;\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n if (!cell.column.hasVisibleCell) continue;\n if (cell.column.isShowInMultipleColumns) {\n this.createMutlipleColumnsFooter(this.footerRow, cell);\n } else {\n this.footerRow.cells.push(this.createEditCell(cell));\n }\n }\n if (this.hasActionCellInRows(\"end\")) {\n this.footerRow.cells.push(this.createHeaderCell(null));\n }\n }\n protected buildRows() {\n var rows = this.matrix.isColumnLayoutHorizontal\n ? this.buildHorizontalRows()\n : this.buildVerticalRows();\n this.setPropertyValue(\"rows\", rows);\n }\n private hasActionCellInRowsValues: any = {};\n private hasActionCellInRows(location: \"start\" | \"end\"): boolean {\n if (this.hasActionCellInRowsValues[location] === undefined) {\n var rows = this.matrix.visibleRows;\n this.hasActionCellInRowsValues[location] = false;\n for (var i = 0; i < rows.length; i++) {\n if (!this.isValueEmpty(this.getRowActions(i, location))) {\n this.hasActionCellInRowsValues[location] = true;\n break;\n }\n }\n }\n return this.hasActionCellInRowsValues[location];\n }\n private canRemoveRow(row: MatrixDropdownRowModelBase): boolean {\n return this.matrix.canRemoveRow(row);\n }\n private buildHorizontalRows(): Array {\n var rows = this.matrix.visibleRows;\n var renderedRows: Array = [];\n for (var i = 0; i < rows.length; i++) {\n this.addHorizontalRow(\n renderedRows,\n rows[i],\n i == 0 && !this.matrix.showHeader\n );\n }\n return renderedRows;\n }\n private addHorizontalRow(\n renderedRows: Array,\n row: MatrixDropdownRowModelBase,\n useAsHeader: boolean\n ) {\n var renderedRow = this.createHorizontalRow(row, useAsHeader);\n renderedRow.row = row;\n renderedRows.push(renderedRow);\n if (row.isDetailPanelShowing) {\n renderedRows.push(this.createDetailPanelRow(row, renderedRow));\n }\n }\n private getRowActionsCell(rowIndex: number, location: \"start\" | \"end\") {\n const rowActions = this.getRowActions(rowIndex, location);\n if (!this.isValueEmpty(rowActions)) {\n var cell = new QuestionMatrixDropdownRenderedCell();\n var itemValue = new ItemValue(rowActions);\n cell.item = itemValue;\n cell.isActionsCell = true;\n cell.className = this.cssClasses.actionsCell;\n cell.row = this.matrix.visibleRows[rowIndex];\n return cell;\n }\n return null;\n }\n private getRowActions(rowIndex: number, location: \"start\" | \"end\") {\n var actions = this.rowsActions[rowIndex];\n if (!Array.isArray(actions)) return [];\n return actions.filter(action => {\n if (!action.location) {\n action.location = \"start\";\n }\n return action.location === location;\n });\n }\n private buildRowActions(\n row: MatrixDropdownRowModelBase\n ): Array {\n var actions: Array = [];\n this.setDefaultRowActions(row, actions);\n if (!!this.matrix.survey) {\n actions = this.matrix.survey.getUpdatedMatrixRowActions(\n this.matrix,\n row,\n actions\n );\n }\n return actions;\n }\n private setDefaultRowActions(\n row: MatrixDropdownRowModelBase,\n actions: Array\n ) {\n if (this.hasRemoveRows && this.canRemoveRow(row)) {\n actions.push(\n new ActionBarItem({\n id: \"\",\n location: \"end\",\n component: \"sv-matrix-remove-button\",\n data: { row: row, question: this.matrix },\n })\n );\n }\n if (row.hasPanel) {\n actions.push(\n new ActionBarItem({\n id: \"\",\n location: \"start\",\n component: \"sv-matrix-detail-button\",\n data: { row: row, question: this.matrix },\n })\n );\n }\n }\n private createHorizontalRow(\n row: MatrixDropdownRowModelBase,\n useAsHeader: boolean\n ): QuestionMatrixDropdownRenderedRow {\n var res = new QuestionMatrixDropdownRenderedRow();\n this.addRowActionsCell(row, res, \"start\");\n if (this.matrix.hasRowText) {\n var renderedCell = this.createTextCell(row.locText);\n res.cells.push(renderedCell);\n if (useAsHeader) {\n this.setHeaderCellWidth(null, renderedCell);\n }\n if (row.hasPanel && !!this.cssClasses.detailRowText) {\n if (!!renderedCell.className) renderedCell.className += \" \";\n renderedCell.className += this.cssClasses.detailRowText;\n }\n }\n for (var i = 0; i < row.cells.length; i++) {\n let cell = row.cells[i];\n if (!cell.column.hasVisibleCell) continue;\n if (cell.column.isShowInMultipleColumns) {\n this.createMutlipleEditCells(res, cell);\n } else {\n var renderedCell = this.createEditCell(cell);\n res.cells.push(renderedCell);\n if (useAsHeader) {\n this.setHeaderCellWidth(cell.column, renderedCell);\n }\n }\n }\n this.addRowActionsCell(row, res, \"end\");\n return res;\n }\n private addRowActionsCell(\n row: MatrixDropdownRowModelBase,\n renderedRow: QuestionMatrixDropdownRenderedRow,\n location: \"start\" | \"end\"\n ) {\n var rowIndex = this.matrix.visibleRows.indexOf(row);\n const actions = this.getRowActionsCell(rowIndex, location);\n if (this.hasActionCellInRows(location)) {\n if (!!actions) renderedRow.cells.push(actions);\n else {\n var cell = new QuestionMatrixDropdownRenderedCell();\n cell.isEmpty = true;\n renderedRow.cells.push(cell);\n }\n }\n }\n private createDetailPanelRow(\n row: MatrixDropdownRowModelBase,\n renderedRow: QuestionMatrixDropdownRenderedRow\n ): QuestionMatrixDropdownRenderedRow {\n var res = new QuestionMatrixDropdownRenderedRow();\n res.row = row;\n res.className = this.cssClasses.detailRow;\n res.isDetailRow = true;\n var buttonCell = new QuestionMatrixDropdownRenderedCell();\n if (this.matrix.hasRowText) {\n buttonCell.colSpans = 2;\n }\n buttonCell.isEmpty = true;\n res.cells.push(buttonCell);\n var actionsCell = null;\n if (this.hasActionCellInRows(\"end\")) {\n actionsCell = new QuestionMatrixDropdownRenderedCell();\n actionsCell.isEmpty = true;\n }\n var cell = new QuestionMatrixDropdownRenderedCell();\n cell.panel = row.detailPanel;\n cell.colSpans =\n renderedRow.cells.length -\n buttonCell.colSpans -\n (!!actionsCell ? actionsCell.colSpans : 0);\n cell.className = this.cssClasses.detailPanelCell;\n res.cells.push(cell);\n if (!!actionsCell) {\n res.cells.push(actionsCell);\n }\n return res;\n }\n\n private buildVerticalRows(): Array {\n var columns = this.matrix.columns;\n var renderedRows = [];\n for (var i = 0; i < columns.length; i++) {\n var col = columns[i];\n if (col.isVisible && col.hasVisibleCell) {\n if (col.isShowInMultipleColumns) {\n this.createMutlipleVerticalRows(renderedRows, col, i);\n } else {\n renderedRows.push(this.createVerticalRow(col, i));\n }\n }\n }\n if (this.hasActionCellInRows(\"end\")) {\n renderedRows.push(this.createEndVerticalActionRow());\n }\n return renderedRows;\n }\n private createMutlipleVerticalRows(\n renderedRows: Array,\n column: MatrixDropdownColumn,\n index: number\n ) {\n var choices = this.getMultipleColumnChoices(column);\n if (!choices) return;\n for (var i = 0; i < choices.length; i++) {\n renderedRows.push(this.createVerticalRow(column, index, choices[i], i));\n }\n }\n private createVerticalRow(\n column: MatrixDropdownColumn,\n index: number,\n choice: ItemValue = null,\n choiceIndex: number = -1\n ): QuestionMatrixDropdownRenderedRow {\n var res = new QuestionMatrixDropdownRenderedRow();\n if (this.matrix.showHeader) {\n var lTitle = !!choice ? choice.locText : column.locTitle;\n var hCell = this.createTextCell(lTitle);\n if (!choice) {\n this.setRequriedToHeaderCell(column, hCell);\n }\n res.cells.push(hCell);\n }\n var rows = this.matrix.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n var rCell = this.createEditCell(rows[i].cells[index], choice);\n rCell.item = choice;\n rCell.choiceIndex = choiceIndex >= 0 ? choiceIndex : i;\n res.cells.push(rCell);\n }\n if (this.matrix.hasTotal) {\n res.cells.push(\n this.createEditCell(this.matrix.visibleTotalRow.cells[index])\n );\n }\n\n return res;\n }\n private createEndVerticalActionRow(): QuestionMatrixDropdownRenderedRow {\n var res = new QuestionMatrixDropdownRenderedRow();\n if (this.matrix.showHeader) {\n res.cells.push(this.createTextCell(null));\n }\n var rows = this.matrix.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n res.cells.push(this.getRowActionsCell(i, \"end\"));\n }\n if (this.matrix.hasTotal) {\n res.cells.push(this.createTextCell(null));\n }\n return res;\n }\n private createMutlipleEditCells(\n rRow: QuestionMatrixDropdownRenderedRow,\n cell: MatrixDropdownCell,\n isFooter: boolean = false\n ) {\n var choices = this.getMultipleColumnChoices(cell.column);\n if (!choices) return;\n for (var i = 0; i < choices.length; i++) {\n var rCell = this.createEditCell(cell, !isFooter ? choices[i] : undefined);\n if (!isFooter) {\n //rCell.item = choices[i];\n rCell.choiceIndex = i;\n }\n rRow.cells.push(rCell);\n }\n }\n private createEditCell(\n cell: MatrixDropdownCell,\n choiceItem: any = undefined\n ): QuestionMatrixDropdownRenderedCell {\n var res = new QuestionMatrixDropdownRenderedCell();\n res.cell = cell;\n res.row = cell.row;\n res.question = cell.question;\n res.matrix = this.matrix;\n res.item = choiceItem;\n\n res.className = res.calculateFinalClassName(this.cssClasses);\n //res.css = res.calcCss(this.cssClasses.cell);\n\n // var questionCss = cell.question.cssClasses;\n // var className = \"\";\n // if (!!questionCss) {\n // className = \"\";\n // if (!!questionCss.itemValue) {\n // className += \" \" + questionCss.itemValue;\n // }\n // if (!!questionCss.asCell) {\n // if (!!className) className += \"\";\n // className += questionCss.asCell;\n // }\n // }\n // if (!className && !!this.cssClasses.cell) {\n // className = this.cssClasses.cell;\n // }\n //res.className = className;\n return res;\n }\n private createMutlipleColumnsFooter(\n rRow: QuestionMatrixDropdownRenderedRow,\n cell: MatrixDropdownCell\n ) {\n this.createMutlipleEditCells(rRow, cell, true);\n }\n private createMutlipleColumnsHeader(column: MatrixDropdownColumn) {\n var choices = this.getMultipleColumnChoices(column);\n if (!choices) return;\n for (var i = 0; i < choices.length; i++) {\n var cell = this.createTextCell(choices[i].locText);\n this.setHeaderCell(column, cell);\n this.headerRow.cells.push(cell);\n }\n }\n private getMultipleColumnChoices(column: MatrixDropdownColumn): any {\n var choices = column.templateQuestion.choices;\n if (!!choices && Array.isArray(choices) && choices.length == 0)\n return this.matrix.choices;\n choices = column.templateQuestion.visibleChoices;\n if (!choices || !Array.isArray(choices)) return null;\n return choices;\n }\n private createHeaderCell(\n column: MatrixDropdownColumn\n ): QuestionMatrixDropdownRenderedCell {\n var cell = this.createTextCell(!!column ? column.locTitle : null);\n this.setHeaderCell(column, cell);\n if (this.cssClasses.headerCell) {\n cell.className = this.cssClasses.headerCell;\n }\n return cell;\n }\n private setHeaderCell(\n column: MatrixDropdownColumn,\n cell: QuestionMatrixDropdownRenderedCell\n ) {\n this.setHeaderCellWidth(column, cell);\n this.setRequriedToHeaderCell(column, cell);\n }\n private setHeaderCellWidth(\n column: MatrixDropdownColumn,\n cell: QuestionMatrixDropdownRenderedCell\n ) {\n cell.minWidth = column != null ? this.matrix.getColumnWidth(column) : \"\";\n cell.width = column != null ? column.width : this.matrix.getRowTitleWidth();\n }\n private setRequriedToHeaderCell(\n column: MatrixDropdownColumn,\n cell: QuestionMatrixDropdownRenderedCell\n ) {\n if (!!column && column.isRequired && this.matrix.survey) {\n cell.requiredText = this.matrix.survey.requiredText;\n }\n }\n private createRemoveRowCell(\n row: MatrixDropdownRowModelBase\n ): QuestionMatrixDropdownRenderedCell {\n var res = new QuestionMatrixDropdownRenderedCell();\n res.row = row;\n res.isRemoveRow = this.canRemoveRow(row);\n if (!!this.cssClasses.cell) {\n res.className = this.cssClasses.cell;\n }\n return res;\n }\n private createTextCell(\n locTitle: LocalizableString\n ): QuestionMatrixDropdownRenderedCell {\n var cell = new QuestionMatrixDropdownRenderedCell();\n cell.locTitle = !!locTitle\n ? locTitle\n : new LocalizableString(this.matrix, false);\n if (!!this.cssClasses.cell) {\n cell.className = this.cssClasses.cell;\n }\n return cell;\n }\n}\n\n/**\n * A base class for matrix dropdown and matrix dynamic questions.\n */\nexport class QuestionMatrixDropdownModelBase\n extends QuestionMatrixBaseModel<\n MatrixDropdownRowModelBase,\n MatrixDropdownColumn\n >\n implements IMatrixDropdownData {\n public static get defaultCellType() {\n return settings.matrixDefaultCellType;\n }\n public static set defaultCellType(val: string) {\n settings.matrixDefaultCellType = val;\n }\n public static addDefaultColumns(matrix: QuestionMatrixDropdownModelBase) {\n var colNames = QuestionFactory.DefaultColums;\n for (var i = 0; i < colNames.length; i++) matrix.addColumn(colNames[i]);\n }\n private detailPanelValue: PanelModel;\n protected isRowChanging = false;\n columnsChangedCallback: () => void;\n onRenderedTableResetCallback: () => void;\n onRenderedTableCreatedCallback: (\n table: QuestionMatrixDropdownRenderedTable\n ) => void;\n onCellCreatedCallback: (options: any) => void;\n onCellValueChangedCallback: (options: any) => void;\n onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;\n onCreateDetailPanelCallback: (\n row: MatrixDropdownRowModelBase,\n panel: PanelModel\n ) => void;\n\n protected createColumnValues() {\n return this.createNewArray(\n \"columns\",\n (item: any) => {\n item.colOwner = this;\n },\n (item: any) => {\n item.colOwner = null;\n }\n );\n }\n\n constructor(name: string) {\n super(name);\n this.createItemValues(\"choices\");\n this.createLocalizableString(\"optionsCaption\", this);\n this.createLocalizableString(\"keyDuplicationError\", this);\n this.detailPanelValue = this.createNewDetailPanel();\n this.detailPanel.selectedElementInDesign = this;\n this.detailPanel.renderWidth = \"100%\";\n this.registerFunctionOnPropertyValueChanged(\n \"columns\",\n (newColumns: any) => {\n this.updateColumnsIndexes(newColumns);\n this.generatedTotalRow = null;\n this.clearRowsAndResetRenderedTable();\n }\n );\n this.registerFunctionOnPropertyValueChanged(\"cellType\", () => {\n this.updateColumnsCellType();\n this.clearRowsAndResetRenderedTable();\n });\n this.registerFunctionOnPropertiesValueChanged(\n [\"optionsCaption\", \"columnColCount\", \"rowTitleWidth\", \"choices\"],\n () => {\n this.clearRowsAndResetRenderedTable();\n }\n );\n this.registerFunctionOnPropertiesValueChanged(\n [\n \"columnLayout\",\n \"addRowLocation\",\n \"hideColumnsIfEmpty\",\n \"showHeader\",\n \"minRowCount\",\n \"isReadOnly\",\n \"rowCount\",\n \"hasFooter\",\n \"detailPanelMode\",\n ],\n () => {\n this.resetRenderedTable();\n }\n );\n }\n public getType(): string {\n return \"matrixdropdownbase\";\n }\n public dispose() {\n super.dispose();\n this.clearGeneratedRows();\n }\n public get hasSingleInput(): boolean {\n return false;\n }\n public get isRowsDynamic(): boolean {\n return false;\n }\n public itemValuePropertyChanged(\n item: ItemValue,\n name: string,\n oldValue: any,\n newValue: any\n ) {\n super.itemValuePropertyChanged(item, name, oldValue, newValue);\n if (item.ownerPropertyName === \"choices\") {\n this.clearRowsAndResetRenderedTable();\n }\n }\n /**\n * Set columnLayout to 'vertical' to place columns vertically and rows horizontally. It makes sense when we have many columns and few rows.\n * @see columns\n * @see rowCount\n */\n public get columnLayout(): string {\n return this.getPropertyValue(\"columnLayout\");\n }\n public set columnLayout(val: string) {\n this.setPropertyValue(\"columnLayout\", val);\n }\n get columnsLocation(): string {\n return this.columnLayout;\n }\n set columnsLocation(val: string) {\n this.columnLayout = val;\n }\n /**\n * Returns true if columns are located horizontally\n * @see columnLayout\n */\n public get isColumnLayoutHorizontal() {\n return this.columnLayout != \"vertical\";\n }\n /**\n * Set the value to \"underRow\" to show the detailPanel under the row.\n */\n public get detailPanelMode(): string {\n return this.getPropertyValue(\"detailPanelMode\", \"none\");\n }\n public set detailPanelMode(val: string) {\n this.setPropertyValue(\"detailPanelMode\", val);\n }\n /**\n * The detail template Panel. This panel is used as a template on creating detail panel for a row.\n * @see detailElements\n * @see detailPanelMode\n */\n public get detailPanel(): PanelModel {\n return this.detailPanelValue;\n }\n public getPanel(): IPanel {\n return this.detailPanel;\n }\n /**\n * The template Panel elements, questions and panels.\n * @see detailPanel\n * @see detailPanelMode\n */\n public get detailElements(): Array {\n return this.detailPanel.elements;\n }\n protected createNewDetailPanel(): PanelModel {\n return new PanelModel();\n }\n public get hasRowText(): boolean {\n return true;\n }\n public getFooterText(): LocalizableString {\n return null;\n }\n public get canAddRow(): boolean {\n return false;\n }\n public get canRemoveRows(): boolean {\n return false;\n }\n public canRemoveRow(row: MatrixDropdownRowModelBase): boolean {\n return true;\n }\n protected onRowsChanged() {\n this.resetRenderedTable();\n super.onRowsChanged();\n }\n private lockResetRenderedTable: boolean = false;\n protected onStartRowAddingRemoving() {\n this.lockResetRenderedTable = true;\n }\n protected onEndRowAdding() {\n this.lockResetRenderedTable = false;\n if (!this.renderedTable) return;\n if (this.renderedTable.isRequireReset()) {\n this.resetRenderedTable();\n } else {\n this.renderedTable.onAddedRow();\n }\n }\n protected onEndRowRemoving(row: MatrixDropdownRowModelBase) {\n this.lockResetRenderedTable = false;\n if (this.renderedTable.isRequireReset()) {\n this.resetRenderedTable();\n } else {\n if (!!row) {\n this.renderedTable.onRemovedRow(row);\n }\n }\n }\n private get renderedTableValue(): QuestionMatrixDropdownRenderedTable {\n return this.getPropertyValue(\"renderedTable\", null);\n }\n private set renderedTableValue(val: QuestionMatrixDropdownRenderedTable) {\n this.setPropertyValue(\"renderedTable\", val);\n }\n private clearRowsAndResetRenderedTable() {\n this.clearGeneratedRows();\n this.resetRenderedTable();\n this.fireCallback(this.columnsChangedCallback);\n }\n protected resetRenderedTable() {\n if (this.lockResetRenderedTable || this.isLoadingFromJson) return;\n this.renderedTableValue = null;\n this.fireCallback(this.onRenderedTableResetCallback);\n }\n protected clearGeneratedRows() {\n if (!this.generatedVisibleRows) return;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n this.generatedVisibleRows[i].dispose();\n }\n super.clearGeneratedRows();\n }\n\n public get renderedTable(): QuestionMatrixDropdownRenderedTable {\n if (!this.renderedTableValue) {\n this.renderedTableValue = this.createRenderedTable();\n if (!!this.onRenderedTableCreatedCallback) {\n this.onRenderedTableCreatedCallback(this.renderedTableValue);\n }\n }\n return this.renderedTableValue;\n }\n protected createRenderedTable(): QuestionMatrixDropdownRenderedTable {\n return new QuestionMatrixDropdownRenderedTable(this);\n }\n protected onMatrixRowCreated(row: MatrixDropdownRowModelBase) {\n if (!this.survey) return;\n var options = {\n rowValue: row.value,\n row: row,\n column: null,\n columnName: null,\n cell: null,\n cellQuestion: null,\n value: null,\n };\n for (var i = 0; i < this.visibleColumns.length; i++) {\n options.column = this.visibleColumns[i];\n options.columnName = options.column.name;\n var cell = row.cells[i];\n options.cell = cell;\n options.cellQuestion = cell.question;\n options.value = cell.value;\n if (!!this.onCellCreatedCallback) {\n this.onCellCreatedCallback(options);\n }\n this.survey.matrixCellCreated(this, options);\n }\n }\n /**\n * Use this property to change the default cell type.\n */\n public get cellType(): string {\n return this.getPropertyValue(\"cellType\", settings.matrixDefaultCellType);\n }\n public set cellType(val: string) {\n val = val.toLowerCase();\n this.setPropertyValue(\"cellType\", val);\n }\n private updateColumnsCellType() {\n for (var i = 0; i < this.columns.length; i++) {\n this.columns[i].defaultCellTypeChanged();\n }\n }\n private updateColumnsIndexes(cols: Array) {\n for (var i = 0; i < cols.length; i++) {\n cols[i].setIndex(i);\n }\n }\n /**\n * The default column count for radiogroup and checkbox cell types.\n */\n public get columnColCount(): number {\n return this.getPropertyValue(\"columnColCount\", 0);\n }\n public set columnColCount(value: number) {\n if (value < 0 || value > 4) return;\n this.setPropertyValue(\"columnColCount\", value);\n }\n /**\n * Use this property to set the minimum column width.\n */\n public get columnMinWidth(): string {\n return this.getPropertyValue(\"columnMinWidth\", \"\");\n }\n public set columnMinWidth(val: string) {\n this.setPropertyValue(\"columnMinWidth\", val);\n }\n /**\n * Set this property to true to show the horizontal scroll.\n */\n public get horizontalScroll(): boolean {\n return this.getPropertyValue(\"horizontalScroll\", false);\n }\n public set horizontalScroll(val: boolean) {\n this.setPropertyValue(\"horizontalScroll\", val);\n }\n public getRequiredText(): string {\n return this.survey ? this.survey.requiredText : \"\";\n }\n onColumnPropertyChanged(\n column: MatrixDropdownColumn,\n name: string,\n newValue: any\n ) {\n this.updateHasFooter();\n if (!this.generatedVisibleRows) return;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n this.generatedVisibleRows[i].updateCellQuestionOnColumnChanged(\n column,\n name,\n newValue\n );\n }\n if (!!this.generatedTotalRow) {\n this.generatedTotalRow.updateCellQuestionOnColumnChanged(\n column,\n name,\n newValue\n );\n }\n this.onColumnsChanged();\n if (name == \"isRequired\") {\n this.resetRenderedTable();\n }\n if (column.isShowInMultipleColumns) {\n this.onShowInMultipleColumnsChanged(column);\n }\n }\n onShowInMultipleColumnsChanged(column: MatrixDropdownColumn) {\n this.clearGeneratedRows();\n this.resetRenderedTable();\n }\n onColumnCellTypeChanged(column: MatrixDropdownColumn) {\n this.clearGeneratedRows();\n this.resetRenderedTable();\n }\n public getRowTitleWidth(): string {\n return \"\";\n }\n public get hasFooter(): boolean {\n return this.getPropertyValue(\"hasFooter\", false);\n }\n public getAddRowLocation(): string {\n return \"default\";\n }\n public getShowColumnsIfEmpty(): boolean {\n return false;\n }\n protected setShowColumnsIfEmpty() {\n if (!!this.renderedTable) {\n this.renderedTable.updateShowTableAndAddRow();\n }\n }\n protected updateHasFooter() {\n this.setPropertyValue(\"hasFooter\", this.hasTotal);\n }\n public get hasTotal(): boolean {\n for (var i = 0; i < this.columns.length; i++) {\n if (this.columns[i].hasTotal) return true;\n }\n return false;\n }\n getCellType(): string {\n return this.cellType;\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n if (!path) return super.getConditionJson();\n var columnName = \"\";\n for (var i = path.length - 1; i >= 0; i--) {\n if (path[i] == \".\") break;\n columnName = path[i] + columnName;\n }\n var column = this.getColumnByName(columnName);\n if (!column) return null;\n var question = column.createCellQuestion(null);\n if (!question) return null;\n return question.getConditionJson(operator);\n }\n public clearIncorrectValues() {\n var rows = this.visibleRows;\n if (!rows) return;\n for (var i = 0; i < rows.length; i++) {\n rows[i].clearIncorrectValues(this.getRowValue(i));\n }\n }\n public clearErrors() {\n super.clearErrors();\n if (!!this.generatedVisibleRows) {\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var row = this.generatedVisibleRows[i];\n for (var j = 0; j < row.cells.length; j++) {\n row.cells[j].question.clearErrors();\n }\n }\n }\n }\n\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n var counter = 0;\n var prevTotalValue;\n do {\n prevTotalValue = Helpers.getUnbindValue(this.totalValue);\n this.runCellsCondition(values, properties);\n this.runTotalsCondition(values, properties);\n counter++;\n } while (\n !Helpers.isTwoValueEquals(prevTotalValue, this.totalValue) &&\n counter < 3\n );\n }\n protected shouldRunColumnExpression(): boolean {\n return false;\n }\n protected runCellsCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.generatedVisibleRows) return;\n var newValues = this.getRowConditionValues(values);\n var rows = this.generatedVisibleRows;\n for (var i = 0; i < rows.length; i++) {\n rows[i].runCondition(newValues, properties);\n }\n this.checkColumnsVisibility();\n }\n private checkColumnsVisibility() {\n var hasChanged = false;\n for (var i = 0; i < this.visibleColumns.length; i++) {\n if (!this.visibleColumns[i].visibleIf) continue;\n hasChanged =\n this.isColumnVisibilityChanged(this.visibleColumns[i]) || hasChanged;\n }\n if (hasChanged) {\n this.resetRenderedTable();\n }\n }\n private isColumnVisibilityChanged(column: MatrixDropdownColumn): boolean {\n var curVis = column.hasVisibleCell;\n var hasVisCell = false;\n var rows = this.generatedVisibleRows;\n for (var i = 0; i < rows.length; i++) {\n var cell = rows[i].cells[column.index];\n if (!!cell && !!cell.question && cell.question.isVisible) {\n hasVisCell = true;\n break;\n }\n }\n if (curVis != hasVisCell) {\n column.hasVisibleCell = hasVisCell;\n }\n return curVis != hasVisCell;\n }\n protected runTotalsCondition(\n values: HashTable,\n properties: HashTable\n ) {\n if (!this.generatedTotalRow) return;\n this.generatedTotalRow.runCondition(\n this.getRowConditionValues(values),\n properties\n );\n }\n private getRowConditionValues(values: HashTable): HashTable {\n var newValues = values;\n if (!newValues) newValues = {};\n /*\n var newValues: { [index: string]: any } = {};\n if (values && values instanceof Object) {\n newValues = JSON.parse(JSON.stringify(values));\n }\n */\n var totalRow = {};\n if (!this.isValueEmpty(this.totalValue)) {\n totalRow = JSON.parse(JSON.stringify(this.totalValue));\n }\n newValues[\"row\"] = {};\n newValues[\"totalRow\"] = totalRow;\n return newValues;\n }\n public locStrsChanged() {\n super.locStrsChanged();\n var rows = this.generatedVisibleRows;\n if (!rows) return;\n var columns = this.columns;\n for (var i = 0; i < columns.length; i++) {\n columns[i].locStrsChanged();\n }\n for (var i = 0; i < rows.length; i++) {\n rows[i].locStrsChanged();\n }\n if (!!this.generatedTotalRow) {\n this.generatedTotalRow.locStrsChanged();\n }\n }\n /**\n * Returns the column by it's name. Returns null if a column with this name doesn't exist.\n * @param column\n */\n public getColumnByName(columnName: string): MatrixDropdownColumn {\n for (var i = 0; i < this.columns.length; i++) {\n if (this.columns[i].name == columnName) return this.columns[i];\n }\n return null;\n }\n getColumnName(columnName: string): MatrixDropdownColumn {\n return this.getColumnByName(columnName);\n }\n /**\n * Returns the column width.\n * @param column\n */\n public getColumnWidth(column: MatrixDropdownColumn): string {\n return column.minWidth ? column.minWidth : this.columnMinWidth;\n }\n /**\n * The default choices for dropdown, checkbox and radiogroup cell types.\n */\n public get choices(): Array {\n return this.getPropertyValue(\"choices\");\n }\n public set choices(val: Array) {\n this.setPropertyValue(\"choices\", val);\n }\n /**\n * The default options caption for dropdown cell type.\n */\n public get optionsCaption() {\n return this.getLocalizableStringText(\n \"optionsCaption\",\n surveyLocalization.getString(\"optionsCaption\")\n );\n }\n public set optionsCaption(val: string) {\n this.setLocalizableStringText(\"optionsCaption\", val);\n }\n public get locOptionsCaption() {\n return this.getLocalizableString(\"optionsCaption\");\n }\n /**\n * The duplication value error text. Set it to show the text different from the default.\n * @see MatrixDropdownColumn.isUnique\n */\n public get keyDuplicationError() {\n return this.getLocalizableStringText(\n \"keyDuplicationError\",\n surveyLocalization.getString(\"keyDuplicationError\")\n );\n }\n public set keyDuplicationError(val: string) {\n this.setLocalizableStringText(\"keyDuplicationError\", val);\n }\n get locKeyDuplicationError() {\n return this.getLocalizableString(\"keyDuplicationError\");\n }\n public get storeOthersAsComment(): boolean {\n return !!this.survey ? this.survey.storeOthersAsComment : false;\n }\n public addColumn(name: string, title: string = null): MatrixDropdownColumn {\n var column = new MatrixDropdownColumn(name, title);\n this.columns.push(column);\n return column;\n }\n protected getVisibleRows(): Array {\n if (this.isLoadingFromJson) return null;\n if (!this.generatedVisibleRows) {\n this.generatedVisibleRows = this.generateRows();\n this.generatedVisibleRows.forEach(row => this.onMatrixRowCreated(row));\n if (this.data) {\n this.runCellsCondition(\n this.data.getFilteredValues(),\n this.data.getFilteredProperties()\n );\n }\n this.updateValueOnRowsGeneration(this.generatedVisibleRows);\n this.updateIsAnswered();\n }\n return this.generatedVisibleRows;\n }\n private updateValueOnRowsGeneration(rows: Array) {\n var oldValue = this.createNewValue(true);\n var newValue = this.createNewValue();\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n if (!!row.editingObj) continue;\n var rowValue = this.getRowValue(i);\n var rValue = row.value;\n if (this.isTwoValueEquals(rowValue, rValue)) continue;\n newValue = this.getNewValueOnRowChanged(row, \"\", rValue, false, newValue)\n .value;\n }\n if (this.isTwoValueEquals(oldValue, newValue)) return;\n this.isRowChanging = true;\n this.setNewValue(newValue);\n this.isRowChanging = false;\n }\n public get totalValue(): any {\n if (!this.hasTotal || !this.visibleTotalRow) return {};\n return this.visibleTotalRow.value;\n }\n protected getVisibleTotalRow(): MatrixDropdownRowModelBase {\n if (this.isLoadingFromJson) return null;\n if (this.hasTotal) {\n if (!this.generatedTotalRow) {\n this.generatedTotalRow = this.generateTotalRow();\n if (this.data) {\n var properties = { survey: this.survey };\n this.runTotalsCondition(this.data.getAllValues(), properties);\n }\n }\n } else {\n this.generatedTotalRow = null;\n }\n return this.generatedTotalRow;\n }\n public get visibleTotalRow(): MatrixDropdownRowModelBase {\n return this.getVisibleTotalRow();\n }\n public onSurveyLoad() {\n super.onSurveyLoad();\n this.updateColumnsIndexes(this.columns);\n this.clearGeneratedRows();\n this.generatedTotalRow = null;\n this.updateHasFooter();\n }\n /**\n * Returns the row value. If the row value is empty, the object is empty: {}.\n * @param rowIndex row index from 0 to visible row count - 1.\n */\n public getRowValue(rowIndex: number) {\n if (rowIndex < 0) return null;\n var visRows = this.visibleRows;\n if (rowIndex >= visRows.length) return null;\n var newValue = this.createNewValue();\n return this.getRowValueCore(visRows[rowIndex], newValue);\n }\n public checkIfValueInRowDuplicated(\n checkedRow: MatrixDropdownRowModelBase,\n cellQuestion: Question\n ): boolean {\n if (!this.generatedVisibleRows) return false;\n var res = false;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var row = this.generatedVisibleRows[i];\n if (checkedRow === row) continue;\n if (row.getValue(cellQuestion.name) == cellQuestion.value) {\n res = true;\n break;\n }\n }\n if (res) {\n this.addDuplicationError(cellQuestion);\n } else {\n cellQuestion.clearErrors();\n }\n return res;\n }\n /**\n * Set the row value.\n * @param rowIndex row index from 0 to visible row count - 1.\n * @param rowValue an object {\"column name\": columnValue,... }\n */\n public setRowValue(rowIndex: number, rowValue: any): any {\n if (rowIndex < 0) return null;\n var visRows = this.visibleRows;\n if (rowIndex >= visRows.length) return null;\n visRows[rowIndex].value = rowValue;\n this.onRowChanged(visRows[rowIndex], \"\", rowValue, false);\n }\n protected generateRows(): Array {\n return null;\n }\n protected generateTotalRow(): MatrixDropdownRowModelBase {\n return new MatrixDropdownTotalRowModel(this);\n }\n protected createNewValue(nullOnEmpty: boolean = false): any {\n var res = !this.value ? {} : this.createValueCopy();\n if (nullOnEmpty && this.isMatrixValueEmpty(res)) return null;\n return res;\n }\n protected getRowValueCore(\n row: MatrixDropdownRowModelBase,\n questionValue: any,\n create: boolean = false\n ): any {\n var result =\n !!questionValue && !!questionValue[row.rowName]\n ? questionValue[row.rowName]\n : null;\n if (!result && create) {\n result = {};\n if (!!questionValue) {\n questionValue[row.rowName] = result;\n }\n }\n return result;\n }\n protected getRowObj(row: MatrixDropdownRowModelBase): any {\n var obj = this.getRowValueCore(row, this.value);\n return !!obj && !!obj.getType ? obj : null;\n }\n\n protected getRowDisplayValue(\n row: MatrixDropdownRowModelBase,\n rowValue: any\n ): any {\n if (!rowValue) return rowValue;\n if (!!row.editingObj) return rowValue;\n for (var key in rowValue) {\n var question = row.getQuestionByName(key);\n if (!question) {\n question = this.getSharedQuestionByName(key, row);\n }\n if (!!question) {\n rowValue[key] = question.displayValue;\n }\n }\n return rowValue;\n }\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n }\n ) {\n var questionPlainData = super.getPlainData(options);\n if (!!questionPlainData) {\n questionPlainData.isNode = true;\n questionPlainData.data = this.visibleRows.map(\n (row: MatrixDropdownRowModelBase) => {\n var rowDataItem = {\n name: row.rowName,\n title: row.rowName,\n value: row.value,\n displayValue: this.getRowDisplayValue(row, row.value),\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: true,\n data: row.cells\n .map((cell: MatrixDropdownCell) =>\n cell.question.getPlainData(options)\n )\n .filter((d: any) => !!d),\n };\n (options.calculations || []).forEach(calculation => {\n rowDataItem[calculation.propertyName] = (row)[\n calculation.propertyName\n ];\n });\n return rowDataItem;\n }\n );\n }\n return questionPlainData;\n }\n public getProgressInfo(): IProgressInfo {\n return SurveyElement.getProgressInfoByElements(\n this.getCellQuestions(),\n this.isRequired\n );\n }\n private getCellQuestions(): Array {\n var rows = this.visibleRows;\n if (!rows) return [];\n var questions = [];\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n for (var j = 0; j < row.cells.length; j++) {\n questions.push(row.cells[j].question);\n }\n }\n return questions;\n }\n\n protected onBeforeValueChanged(val: any) {}\n private onSetQuestionValue() {\n if (this.isRowChanging) return;\n this.onBeforeValueChanged(this.value);\n if (!this.generatedVisibleRows || this.generatedVisibleRows.length == 0)\n return;\n this.isRowChanging = true;\n var val = this.createNewValue();\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var row = this.generatedVisibleRows[i];\n this.generatedVisibleRows[i].value = this.getRowValueCore(row, val);\n }\n this.isRowChanging = false;\n }\n protected setQuestionValue(newValue: any) {\n super.setQuestionValue(newValue, false);\n this.onSetQuestionValue();\n this.updateIsAnswered();\n }\n supportGoNextPageAutomatic() {\n var rows = this.generatedVisibleRows;\n if (!rows) rows = this.visibleRows;\n if (!rows) return true;\n for (var i = 0; i < rows.length; i++) {\n var cells = this.generatedVisibleRows[i].cells;\n if (!cells) continue;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n var question = cells[colIndex].question;\n if (\n question &&\n (!question.supportGoNextPageAutomatic() || !question.value)\n )\n return false;\n }\n }\n return true;\n }\n protected getContainsErrors(): boolean {\n return (\n super.getContainsErrors() ||\n this.checkForAnswersOrErrors(\n (question: Question) => question.containsErrors,\n false\n )\n );\n }\n protected getIsAnswered(): boolean {\n return (\n super.getIsAnswered() &&\n this.checkForAnswersOrErrors(\n (question: Question) => question.isAnswered,\n true\n )\n );\n }\n private checkForAnswersOrErrors(\n predicate: (question: Question) => boolean,\n every: boolean = false\n ) {\n var rows = this.generatedVisibleRows;\n if (!rows) return false;\n for (var i = 0; i < rows.length; i++) {\n var cells = rows[i].cells;\n if (!cells) continue;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n if (!cells[colIndex]) continue;\n var question = cells[colIndex].question;\n if (question && question.isVisible)\n if (predicate(question)) {\n if (!every) return true;\n } else {\n if (every) return false;\n }\n }\n }\n return every ? true : false;\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n var errosInRows = this.hasErrorInRows(fireCallback, rec);\n var isDuplicated = this.isValueDuplicated();\n return super.hasErrors(fireCallback, rec) || errosInRows || isDuplicated;\n }\n protected getIsRunningValidators(): boolean {\n if (super.getIsRunningValidators()) return true;\n if (!this.generatedVisibleRows) return false;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var cells = this.generatedVisibleRows[i].cells;\n if (!cells) continue;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n if (!cells[colIndex]) continue;\n var question = cells[colIndex].question;\n if (!!question && question.isRunningValidators) return true;\n }\n }\n return false;\n }\n public getAllErrors(): Array {\n var result = super.getAllErrors();\n var rows = this.generatedVisibleRows;\n\n if (rows === null) return result;\n\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n for (var j = 0; j < row.cells.length; j++) {\n var errors = row.cells[j].question.getAllErrors();\n if (errors && errors.length > 0) {\n result = result.concat(errors);\n }\n }\n }\n return result;\n }\n private hasErrorInRows(fireCallback: boolean, rec: any): boolean {\n if (!this.generatedVisibleRows) return false;\n var res = false;\n if (!rec) rec = {};\n rec.isSingleDetailPanel = this.detailPanelMode === \"underRowSingle\";\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n res =\n this.generatedVisibleRows[i].hasErrors(fireCallback, rec, () => {\n this.raiseOnCompletedAsyncValidators();\n }) || res;\n }\n return res;\n }\n private isValueDuplicated(): boolean {\n if (!this.generatedVisibleRows) return false;\n var columns = this.getUniqueColumns();\n var res = false;\n for (var i = 0; i < columns.length; i++) {\n res = this.isValueInColumnDuplicated(columns[i]) || res;\n }\n return res;\n }\n private isValueInColumnDuplicated(column: MatrixDropdownColumn): boolean {\n var keyValues = >[];\n var res = false;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n res =\n this.isValueDuplicatedInRow(\n this.generatedVisibleRows[i],\n column,\n keyValues\n ) || res;\n }\n return res;\n }\n protected getUniqueColumns(): Array {\n var res = new Array();\n for (var i = 0; i < this.columns.length; i++) {\n if (this.columns[i].isUnique) {\n res.push(this.columns[i]);\n }\n }\n return res;\n }\n private isValueDuplicatedInRow(\n row: MatrixDropdownRowModelBase,\n column: MatrixDropdownColumn,\n keyValues: Array\n ): boolean {\n var question = row.getQuestionByColumn(column);\n if (!question || question.isEmpty()) return false;\n var value = question.value;\n for (var i = 0; i < keyValues.length; i++) {\n if (value == keyValues[i]) {\n this.addDuplicationError(question);\n return true;\n }\n }\n keyValues.push(value);\n return false;\n }\n private addDuplicationError(question: Question) {\n question.addError(new KeyDuplicationError(this.keyDuplicationError, this));\n }\n protected getFirstInputElementId(): string {\n var question = this.getFirstCellQuestion(false);\n return question ? question.inputId : super.getFirstInputElementId();\n }\n protected getFirstErrorInputElementId(): string {\n var question = this.getFirstCellQuestion(true);\n return question ? question.inputId : super.getFirstErrorInputElementId();\n }\n protected getFirstCellQuestion(onError: boolean): Question {\n if (!this.generatedVisibleRows) return null;\n for (var i = 0; i < this.generatedVisibleRows.length; i++) {\n var cells = this.generatedVisibleRows[i].cells;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n if (!onError) return cells[colIndex].question;\n if (cells[colIndex].question.currentErrorCount > 0)\n return cells[colIndex].question;\n }\n }\n return null;\n }\n protected onReadOnlyChanged() {\n super.onReadOnlyChanged();\n if (!this.generateRows) return;\n for (var i = 0; i < this.visibleRows.length; i++) {\n this.visibleRows[i].onQuestionReadOnlyChanged(this.isReadOnly);\n }\n }\n\n //IMatrixDropdownData\n public createQuestion(\n row: MatrixDropdownRowModelBase,\n column: MatrixDropdownColumn\n ): Question {\n return this.createQuestionCore(row, column);\n }\n protected createQuestionCore(\n row: MatrixDropdownRowModelBase,\n column: MatrixDropdownColumn\n ): Question {\n var question = column.createCellQuestion(row);\n if (this.isReadOnly) {\n question.readOnly = true;\n }\n question.setSurveyImpl(row);\n question.setParentQuestion(this);\n return question;\n }\n protected deleteRowValue(\n newValue: any,\n row: MatrixDropdownRowModelBase\n ): any {\n if (!newValue) return newValue;\n delete newValue[row.rowName];\n return this.isObject(newValue) && Object.keys(newValue).length == 0\n ? null\n : newValue;\n }\n private isDoingonAnyValueChanged = false;\n onAnyValueChanged(name: string) {\n if (\n this.isLoadingFromJson ||\n this.isDoingonAnyValueChanged ||\n !this.generatedVisibleRows\n )\n return;\n this.isDoingonAnyValueChanged = true;\n var rows = this.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n rows[i].onAnyValueChanged(name);\n }\n var totalRow = this.visibleTotalRow;\n if (!!totalRow) {\n totalRow.onAnyValueChanged(name);\n }\n this.isDoingonAnyValueChanged = false;\n }\n protected isObject(value: any) {\n return value !== null && typeof value === \"object\";\n }\n private getOnCellValueChangedOptions(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ): any {\n var getQuestion = (colName: any) => {\n for (var i = 0; i < row.cells.length; i++) {\n var col = row.cells[i].column;\n if (!!col && col.name === colName) {\n return row.cells[i].question;\n }\n }\n return null;\n };\n return {\n row: row,\n columnName: columnName,\n rowValue: rowValue,\n value: !!rowValue ? rowValue[columnName] : null,\n getCellQuestion: getQuestion,\n };\n }\n protected onCellValueChanged(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ) {\n if (!this.survey) return;\n var options = this.getOnCellValueChangedOptions(row, columnName, rowValue);\n if (!!this.onCellValueChangedCallback) {\n this.onCellValueChangedCallback(options);\n }\n this.survey.matrixCellValueChanged(this, options);\n }\n validateCell(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ): SurveyError {\n if (!this.survey) return;\n var options = this.getOnCellValueChangedOptions(row, columnName, rowValue);\n return this.survey.matrixCellValidate(this, options);\n }\n get isValidateOnValueChanging(): boolean {\n return !!this.survey ? this.survey.isValidateOnValueChanging : false;\n }\n onRowChanging(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n rowValue: any\n ): any {\n if (!this.survey) return !!rowValue ? rowValue[columnName] : null;\n var options = this.getOnCellValueChangedOptions(row, columnName, rowValue);\n var oldRowValue = this.getRowValueCore(row, this.createNewValue(), true);\n options.oldValue = !!oldRowValue ? oldRowValue[columnName] : null;\n this.survey.matrixCellValueChanging(this, options);\n return options.value;\n }\n onRowChanged(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n newRowValue: any,\n isDeletingValue: boolean\n ) {\n var rowObj = !!columnName ? this.getRowObj(row) : null;\n if (!!rowObj) {\n var columnValue = null;\n if (!!newRowValue && !isDeletingValue) {\n columnValue = newRowValue[columnName];\n }\n this.isRowChanging = true;\n rowObj[columnName] = columnValue;\n this.isRowChanging = false;\n this.onCellValueChanged(row, columnName, rowObj);\n } else {\n var oldValue = this.createNewValue(true);\n var combine = this.getNewValueOnRowChanged(\n row,\n columnName,\n newRowValue,\n isDeletingValue,\n this.createNewValue()\n );\n if (this.isTwoValueEquals(oldValue, combine.value)) return;\n this.isRowChanging = true;\n this.setNewValue(combine.value);\n this.isRowChanging = false;\n if (columnName) {\n this.onCellValueChanged(row, columnName, combine.rowValue);\n }\n }\n }\n private getNewValueOnRowChanged(\n row: MatrixDropdownRowModelBase,\n columnName: string,\n newRowValue: any,\n isDeletingValue: boolean,\n newValue: any\n ): any {\n var rowValue = this.getRowValueCore(row, newValue, true);\n if (isDeletingValue) {\n delete rowValue[columnName];\n }\n for (var i = 0; i < row.cells.length; i++) {\n var key = row.cells[i].question.getValueName();\n delete rowValue[key];\n }\n if (newRowValue) {\n newRowValue = JSON.parse(JSON.stringify(newRowValue));\n for (var key in newRowValue) {\n if (!this.isValueEmpty(newRowValue[key])) {\n rowValue[key] = newRowValue[key];\n }\n }\n }\n if (this.isObject(rowValue) && Object.keys(rowValue).length === 0) {\n newValue = this.deleteRowValue(newValue, row);\n }\n return { value: newValue, rowValue: rowValue };\n }\n getRowIndex(row: MatrixDropdownRowModelBase): number {\n if (!this.generatedVisibleRows) return -1;\n return this.visibleRows.indexOf(row);\n }\n public getElementsInDesign(includeHidden: boolean = false): Array {\n if (this.detailPanelMode == \"none\")\n return super.getElementsInDesign(includeHidden);\n return includeHidden ? [this.detailPanel] : this.detailElements;\n }\n hasDetailPanel(row: MatrixDropdownRowModelBase): boolean {\n if (this.detailPanelMode == \"none\") return false;\n if (this.isDesignMode) return true;\n if (!!this.onHasDetailPanelCallback)\n return this.onHasDetailPanelCallback(row);\n return this.detailElements.length > 0;\n }\n getIsDetailPanelShowing(row: MatrixDropdownRowModelBase): boolean {\n if (this.detailPanelMode == \"none\") return false;\n if (this.isDesignMode) {\n var res = this.visibleRows.indexOf(row) == 0;\n if (res) {\n if (!row.detailPanel) {\n row.showDetailPanel();\n }\n }\n return res;\n }\n return this.getPropertyValue(\"isRowShowing\" + row.id, false);\n }\n setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void {\n if (val == this.getIsDetailPanelShowing(row)) return;\n this.setPropertyValue(\"isRowShowing\" + row.id, val);\n this.updateDetailPanelButtonCss(row);\n if (!!this.renderedTable) {\n this.renderedTable.onDetailPanelChangeVisibility(row, val);\n }\n if (val && this.detailPanelMode === \"underRowSingle\") {\n var rows = this.visibleRows;\n for (var i = 0; i < rows.length; i++) {\n if (rows[i].id !== row.id && rows[i].isDetailPanelShowing) {\n rows[i].hideDetailPanel();\n }\n }\n }\n }\n public getDetailPanelButtonCss(row: MatrixDropdownRowModelBase): string {\n var res = this.getPropertyValue(\"detailButtonCss\" + row.id);\n if (!!res) return res;\n var res = this.cssClasses.detailButton;\n return !!res ? res : \"\";\n }\n public getDetailPanelIconCss(row: MatrixDropdownRowModelBase): string {\n var res = this.getPropertyValue(\"detailIconCss\" + row.id);\n if (!!res) return res;\n var res = this.cssClasses.detailIcon;\n return !!res ? res : \"\";\n }\n private updateDetailPanelButtonCss(row: MatrixDropdownRowModelBase) {\n var classes = this.cssClasses;\n var icon = classes.detailIcon;\n if (!icon) icon = \"\";\n var button = classes.detailButton;\n if (!button) button = \"\";\n if (this.getIsDetailPanelShowing(row)) {\n if (!!classes.detailIconExpanded)\n icon += \" \" + classes.detailIconExpanded;\n if (!!classes.detailButtonExpanded)\n button += \" \" + classes.detailButtonExpanded;\n }\n this.setPropertyValue(\"detailIconCss\" + row.id, icon);\n this.setPropertyValue(\"detailButtonCss\" + row.id, button);\n }\n createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel {\n if (this.isDesignMode) return this.detailPanel;\n var panel = this.createNewDetailPanel();\n var json = this.detailPanel.toJSON();\n new JsonObject().toObject(json, panel);\n panel.renderWidth = \"100%\";\n panel.updateCustomWidgets();\n if (!!this.onCreateDetailPanelCallback) {\n this.onCreateDetailPanelCallback(row, panel);\n }\n return panel;\n }\n getSharedQuestionByName(\n columnName: string,\n row: MatrixDropdownRowModelBase\n ): Question {\n if (!this.survey || !this.valueName) return null;\n var index = this.getRowIndex(row);\n if (index < 0) return null;\n return (\n this.survey.getQuestionByValueNameFromArray(\n this.valueName,\n columnName,\n index\n )\n );\n }\n onTotalValueChanged(): any {\n if (\n !!this.data &&\n !!this.visibleTotalRow &&\n !this.isLoadingFromJson &&\n !this.isSett\n ) {\n this.data.setValue(\n this.getValueName() + settings.matrixTotalValuePostFix,\n this.totalValue,\n false\n );\n }\n }\n public getQuestionFromArray(name: string, index: number): IQuestion {\n if (index >= this.visibleRows.length) return null;\n return this.visibleRows[index].getQuestionByName(name);\n }\n private isMatrixValueEmpty(val: any) {\n if (!val) return;\n if (Array.isArray(val)) {\n for (var i = 0; i < val.length; i++) {\n if (this.isObject(val[i]) && Object.keys(val[i]).length > 0)\n return false;\n }\n return true;\n }\n return Object.keys(val).length == 0;\n }\n}\n\nSerializer.addClass(\n \"matrixdropdowncolumn\",\n [\n { name: \"!name\", isUnique: true },\n { name: \"title\", serializationProperty: \"locTitle\" },\n {\n name: \"cellType\",\n default: \"default\",\n choices: () => {\n var res = MatrixDropdownColumn.getColumnTypes();\n res.splice(0, 0, \"default\");\n return res;\n },\n },\n { name: \"colCount\", default: -1, choices: [-1, 0, 1, 2, 3, 4] },\n \"isRequired:boolean\",\n \"isUnique:boolean\",\n {\n name: \"requiredErrorText:text\",\n serializationProperty: \"locRequiredErrorText\",\n },\n \"readOnly:boolean\",\n \"minWidth\",\n \"width\",\n \"visibleIf:condition\",\n \"enableIf:condition\",\n \"requiredIf:condition\",\n {\n name: \"showInMultipleColumns:boolean\",\n dependsOn: \"cellType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.isSupportMultipleColumns;\n },\n },\n {\n name: \"validators:validators\",\n baseClassName: \"surveyvalidator\",\n classNamePart: \"validator\",\n },\n {\n name: \"totalType\",\n default: \"none\",\n choices: [\"none\", \"sum\", \"count\", \"min\", \"max\", \"avg\"],\n },\n \"totalExpression:expression\",\n { name: \"totalFormat\", serializationProperty: \"locTotalFormat\" },\n {\n name: \"totalDisplayStyle\",\n default: \"none\",\n choices: [\"none\", \"decimal\", \"currency\", \"percent\"],\n },\n {\n name: \"totalCurrency\",\n choices: () => {\n return getCurrecyCodes();\n },\n default: \"USD\",\n },\n { name: \"totalMaximumFractionDigits:number\", default: -1 },\n { name: \"totalMinimumFractionDigits:number\", default: -1 },\n { name: \"renderAs\", default: \"default\", visible: false },\n ],\n function() {\n return new MatrixDropdownColumn(\"\");\n }\n);\n\nSerializer.addClass(\n \"matrixdropdownbase\",\n [\n {\n name: \"columns:matrixdropdowncolumns\",\n className: \"matrixdropdowncolumn\",\n },\n {\n name: \"columnLayout\",\n alternativeName: \"columnsLocation\",\n default: \"horizontal\",\n choices: [\"horizontal\", \"vertical\"],\n },\n {\n name: \"detailElements\",\n visible: false,\n isLightSerializable: false,\n },\n {\n name: \"detailPanelMode\",\n choices: [\"none\", \"underRow\", \"underRowSingle\"],\n default: \"none\",\n },\n \"horizontalScroll:boolean\",\n {\n name: \"choices:itemvalue[]\",\n },\n { name: \"optionsCaption\", serializationProperty: \"locOptionsCaption\" },\n {\n name: \"keyDuplicationError\",\n serializationProperty: \"locKeyDuplicationError\",\n },\n {\n name: \"cellType\",\n default: \"dropdown\",\n choices: () => {\n return MatrixDropdownColumn.getColumnTypes();\n },\n },\n { name: \"columnColCount\", default: 0, choices: [0, 1, 2, 3, 4] },\n \"columnMinWidth\",\n ],\n function() {\n return new QuestionMatrixDropdownModelBase(\"\");\n },\n \"matrixbase\"\n);\n","import {\n QuestionMatrixDropdownModelBase,\n MatrixDropdownRowModelBase,\n IMatrixDropdownData,\n MatrixDropdownColumn,\n} from \"./question_matrixdropdownbase\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { Base, SurveyError } from \"./base\";\nimport { MinRowCountError, KeyDuplicationError } from \"./error\";\nimport { IConditionObject } from \"./question\";\nimport { Helpers } from \"./helpers\";\nimport { settings } from \"./settings\";\nimport { confirmAction } from \"./utils/utils\";\nimport { LocalizableString } from \"./localizablestring\";\n\nexport class MatrixDynamicRowModel extends MatrixDropdownRowModelBase {\n constructor(public index: number, data: IMatrixDropdownData, value: any) {\n super(data, value);\n this.buildCells(value);\n }\n public get rowName() {\n return this.id;\n }\n}\n\n/**\n * A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.\n * An end-user may dynamically add/remove rows, unlike in matrix dropdown question.\n */\nexport class QuestionMatrixDynamicModel\n extends QuestionMatrixDropdownModelBase\n implements IMatrixDropdownData {\n public onGetValueForNewRowCallBack: (\n sender: QuestionMatrixDynamicModel\n ) => any;\n private rowCounter = 0;\n private initialRowCount: number = 2;\n private setRowCountValueFromData: boolean = false;\n\n constructor(name: string) {\n super(name);\n void ((\n this.createLocalizableString(\"confirmDeleteText\", this)\n ));\n void (this.createLocalizableString(\"addRowText\", this));\n void ((\n this.createLocalizableString(\"removeRowText\", this)\n ));\n var locEmptyRowsText = (\n this.createLocalizableString(\"emptyRowsText\", this)\n );\n locEmptyRowsText.onGetTextCallback = (text: string): string => {\n return !!text ? text : surveyLocalization.getString(\"emptyRowsText\");\n };\n this.registerFunctionOnPropertyValueChanged(\"hideColumnsIfEmpty\", () => {\n this.setShowColumnsIfEmpty();\n });\n }\n public getType(): string {\n return \"matrixdynamic\";\n }\n public get isRowsDynamic(): boolean {\n return true;\n }\n /**\n * Set it to true, to show a confirmation dialog on removing a row\n * @see ConfirmDeleteText\n */\n public get confirmDelete(): boolean {\n return this.getPropertyValue(\"confirmDelete\", false);\n }\n public set confirmDelete(val: boolean) {\n this.setPropertyValue(\"confirmDelete\", val);\n }\n /**\n * Set it to a column name and the library shows duplication error, if there are same values in different rows in the column.\n * @see keyDuplicationError\n */\n public get keyName(): string {\n return this.getPropertyValue(\"keyName\", \"\");\n }\n public set keyName(val: string) {\n this.setPropertyValue(\"keyName\", val);\n }\n /**\n * If it is not empty, then this value is set to every new row, including rows created initially, unless the defaultValue is not empty\n * @see defaultValue\n * @see defaultValueFromLastRow\n */\n public get defaultRowValue(): any {\n return this.getPropertyValue(\"defaultRowValue\");\n }\n public set defaultRowValue(val: any) {\n this.setPropertyValue(\"defaultRowValue\", val);\n }\n /**\n * Set it to true to copy the value into new added row from the last row. If defaultRowValue is set and this property equals to true,\n * then the value for new added row is merging.\n * @see defaultValue\n * @see defaultRowValue\n */\n public get defaultValueFromLastRow(): boolean {\n return this.getPropertyValue(\"defaultValueFromLastRow\", false);\n }\n public set defaultValueFromLastRow(val: boolean) {\n this.setPropertyValue(\"defaultValueFromLastRow\", val);\n }\n protected isDefaultValueEmpty(): boolean {\n return (\n super.isDefaultValueEmpty() && this.isValueEmpty(this.defaultRowValue)\n );\n }\n protected valueFromData(val: any): any {\n if (this.minRowCount < 1) return super.valueFromData(val);\n if (!Array.isArray(val)) val = [];\n for (var i = val.length; i < this.minRowCount; i++) val.push({});\n return val;\n }\n protected setDefaultValue() {\n if (\n this.isValueEmpty(this.defaultRowValue) ||\n !this.isValueEmpty(this.defaultValue)\n ) {\n super.setDefaultValue();\n return;\n }\n if (!this.isEmpty() || this.rowCount == 0) return;\n var newValue = [];\n for (var i = 0; i < this.rowCount; i++) {\n newValue.push(this.defaultRowValue);\n }\n this.value = newValue;\n }\n protected isEditingSurveyElement(value: any): boolean {\n if (!!this.survey && this.survey.isEditingSurveyElement) return true;\n return super.isEditingSurveyElement(value);\n }\n /**\n * The number of rows in the matrix.\n * @see minRowCount\n * @see maxRowCount\n */\n public get rowCount(): number {\n return this.rowCountValue;\n }\n private get rowCountValue(): number {\n return this.getPropertyValue(\"rowCount\", 2);\n }\n private set rowCountValue(val: number) {\n this.setPropertyValue(\"rowCount\", val);\n }\n public set rowCount(val: number) {\n if (val < 0 || val > settings.matrixMaximumRowCount) return;\n this.setRowCountValueFromData = false;\n var prevValue = this.rowCountValue;\n this.rowCountValue = val;\n if (this.value && this.value.length > val) {\n var qVal = this.value;\n qVal.splice(val);\n this.value = qVal;\n }\n if (this.isLoadingFromJson) {\n this.initialRowCount = val;\n return;\n }\n if (this.generatedVisibleRows || prevValue == 0) {\n if (!this.generatedVisibleRows) {\n this.generatedVisibleRows = [];\n }\n this.generatedVisibleRows.splice(val);\n for (var i = prevValue; i < val; i++) {\n var newRow = this.createMatrixRow(this.getValueForNewRow());\n this.generatedVisibleRows.push(newRow);\n this.onMatrixRowCreated(newRow);\n }\n }\n this.onRowsChanged();\n }\n private getValueForNewRow(): any {\n var res = null;\n if (!!this.onGetValueForNewRowCallBack) {\n res = this.onGetValueForNewRowCallBack(this);\n }\n return res;\n }\n /**\n * The minimum row count. A user could not delete a row if the rowCount equals to minRowCount\n * @see rowCount\n * @see maxRowCount\n * @see allowAddRows\n */\n public get minRowCount(): number {\n return this.getPropertyValue(\"minRowCount\", 0);\n }\n public set minRowCount(val: number) {\n if (val < 0) val = 0;\n this.setPropertyValue(\"minRowCount\", val);\n if (val > this.maxRowCount) this.maxRowCount = val;\n if (this.rowCount < val) this.rowCount = val;\n }\n /**\n * The maximum row count. A user could not add a row if the rowCount equals to maxRowCount\n * @see rowCount\n * @see minRowCount\n * @see allowAddRows\n */\n public get maxRowCount(): number {\n return this.getPropertyValue(\"maxRowCount\", settings.matrixMaximumRowCount);\n }\n public set maxRowCount(val: number) {\n if (val <= 0) return;\n if (val > settings.matrixMaximumRowCount)\n val = settings.matrixMaximumRowCount;\n if (val == this.maxRowCount) return;\n this.setPropertyValue(\"maxRowCount\", val);\n if (val < this.minRowCount) this.minRowCount = val;\n if (this.rowCount > val) this.rowCount = val;\n }\n /**\n * Set this property to false to disable ability to add new rows. \"Add new Row\" button becomes invsible in UI\n * @see canAddRow\n * @see allowRemoveRows\n */\n public get allowAddRows(): boolean {\n return this.getPropertyValue(\"allowAddRows\", true);\n }\n public set allowAddRows(val: boolean) {\n this.setPropertyValue(\"allowAddRows\", val);\n }\n /**\n * Set this property to false to disable ability to remove rows. \"Remove\" row buttons become invsible in UI\n * @see canRemoveRows\n * @see allowAddRows\n */\n public get allowRemoveRows(): boolean {\n return this.getPropertyValue(\"allowRemoveRows\", true);\n }\n public set allowRemoveRows(val: boolean) {\n this.setPropertyValue(\"allowRemoveRows\", val);\n if (!this.isLoadingFromJson) {\n this.resetRenderedTable();\n }\n }\n /**\n * Returns true, if a new row can be added.\n * @see allowAddRows\n * @see maxRowCount\n * @see canRemoveRows\n * @see rowCount\n */\n public get canAddRow(): boolean {\n return (\n this.allowAddRows && !this.isReadOnly && this.rowCount < this.maxRowCount\n );\n }\n /**\n * Returns true, if row can be removed.\n * @see minRowCount\n * @see canAddRow\n * @see rowCount\n */\n public get canRemoveRows(): boolean {\n return (\n this.allowRemoveRows &&\n !this.isReadOnly &&\n this.rowCount > this.minRowCount\n );\n }\n public canRemoveRow(row: MatrixDropdownRowModelBase): boolean {\n if (!this.survey) return true;\n return this.survey.matrixAllowRemoveRow(\n this,\n (row).index,\n row\n );\n }\n\n /**\n * Creates and add a new row.\n */\n public addRow() {\n var options = { question: this, canAddRow: this.canAddRow };\n if (!!this.survey) {\n this.survey.matrixBeforeRowAdded(options);\n }\n if (!options.canAddRow) return;\n this.onStartRowAddingRemoving();\n this.addRowCore();\n this.onEndRowAdding();\n }\n protected hasRowsAsItems(): boolean {\n return false;\n }\n public unbindValue() {\n this.clearGeneratedRows();\n this.clearPropertyValue(\"value\");\n this.rowCountValue = 0;\n super.unbindValue();\n }\n private addRowCore() {\n var prevRowCount = this.rowCount;\n this.rowCount = this.rowCount + 1;\n var defaultValue = this.getDefaultRowValue(true);\n var newValue = null;\n if (!this.isValueEmpty(defaultValue)) {\n newValue = this.createNewValue();\n if (newValue.length == this.rowCount) {\n newValue[newValue.length - 1] = defaultValue;\n this.value = newValue;\n }\n }\n if (this.data) {\n this.runCellsCondition(\n this.getDataFilteredValues(),\n this.getDataFilteredProperties()\n );\n var row = this.visibleRows[this.rowCount - 1];\n if (!this.isValueEmpty(row.value)) {\n if (!newValue) {\n newValue = this.createNewValue();\n }\n if (\n !this.isEditingSurveyElement(newValue) &&\n !Helpers.isTwoValueEquals(newValue[newValue.length - 1], row.value)\n ) {\n newValue[newValue.length - 1] = row.value;\n this.value = newValue;\n }\n }\n }\n if (this.survey) {\n if (prevRowCount + 1 == this.rowCount) {\n this.survey.matrixRowAdded(\n this,\n this.visibleRows[this.visibleRows.length - 1]\n );\n this.onRowsChanged();\n }\n }\n }\n private getDefaultRowValue(isRowAdded: boolean): any {\n var res = null;\n for (var i = 0; i < this.columns.length; i++) {\n var q = this.columns[i].templateQuestion;\n if (!!q && !this.isValueEmpty(q.getDefaultValue())) {\n res = res || {};\n (res)[this.columns[i].name] = q.getDefaultValue();\n }\n }\n if (!this.isValueEmpty(this.defaultRowValue)) {\n for (var key in this.defaultRowValue) {\n res = res || {};\n (res)[key] = this.defaultRowValue[key];\n }\n }\n if (isRowAdded && this.defaultValueFromLastRow) {\n var val = this.value;\n if (!!val && Array.isArray(val) && val.length >= this.rowCount - 1) {\n var rowValue = val[this.rowCount - 2];\n for (var key in rowValue) {\n res = res || {};\n (res)[key] = rowValue[key];\n }\n }\n }\n return res;\n }\n /**\n * Removes a row by it's index. If confirmDelete is true, show a confirmation dialog\n * @param index a row index, from 0 to rowCount - 1\n * @see removeRow\n * @see confirmDelete\n */\n public removeRowUI(value: any) {\n if (!!value && !!value.rowName) {\n var index = this.visibleRows.indexOf(value);\n if (index < 0) return;\n value = index;\n }\n if (\n !this.isRequireConfirmOnRowDelete(value) ||\n confirmAction(this.confirmDeleteText)\n ) {\n this.removeRow(value);\n }\n }\n public isRequireConfirmOnRowDelete(index: number): boolean {\n if (!this.confirmDelete) return false;\n if (index < 0 || index >= this.rowCount) return false;\n var value = this.createNewValue();\n if (this.isValueEmpty(value) || !Array.isArray(value)) return false;\n if (index >= value.length) return false;\n return !this.isValueEmpty(value[index]);\n }\n /**\n * Removes a row by it's index.\n * @param index a row index, from 0 to rowCount - 1\n */\n public removeRow(index: number) {\n if (!this.canRemoveRows) return;\n if (index < 0 || index >= this.rowCount) return;\n var row =\n !!this.visibleRows && index < this.visibleRows.length\n ? this.visibleRows[index]\n : null;\n this.onStartRowAddingRemoving();\n this.removeRowCore(index);\n this.onEndRowRemoving(row);\n }\n private removeRowCore(index: number) {\n var row = this.generatedVisibleRows\n ? this.generatedVisibleRows[index]\n : null;\n if (this.generatedVisibleRows && index < this.generatedVisibleRows.length) {\n this.generatedVisibleRows.splice(index, 1);\n }\n this.rowCountValue--;\n if (this.value) {\n var val = [];\n if (Array.isArray(this.value) && index < this.value.length) {\n val = this.createValueCopy();\n } else {\n val = this.createNewValue();\n }\n val.splice(index, 1);\n val = this.deleteRowValue(val, null);\n this.isRowChanging = true;\n this.value = val;\n this.isRowChanging = false;\n }\n this.onRowsChanged();\n if (this.survey) {\n this.survey.matrixRowRemoved(this, index, row);\n }\n }\n /**\n * Use this property to change the default text showing in the confirmation delete dialog on removing a row.\n */\n public get confirmDeleteText() {\n return this.getLocalizableStringText(\n \"confirmDeleteText\",\n surveyLocalization.getString(\"confirmDelete\")\n );\n }\n public set confirmDeleteText(val: string) {\n this.setLocalizableStringText(\"confirmDeleteText\", val);\n }\n get locConfirmDeleteText() {\n return this.getLocalizableString(\"confirmDeleteText\");\n }\n /**\n * Use this property to change the default value of add row button text.\n */\n public get addRowText() {\n var defaultLocName = this.isColumnLayoutHorizontal ? \"addRow\" : \"addColumn\";\n return this.getLocalizableStringText(\n \"addRowText\",\n surveyLocalization.getString(defaultLocName)\n );\n }\n public set addRowText(val: string) {\n this.setLocalizableStringText(\"addRowText\", val);\n }\n get locAddRowText() {\n return this.getLocalizableString(\"addRowText\");\n }\n /**\n * By default the 'Add Row' button is shown on bottom if columnLayout is horizontal and on top if columnLayout is vertical.
\n * You may set it to \"top\", \"bottom\" or \"topBottom\" (to show on top and bottom).\n * @see columnLayout\n */\n public get addRowLocation(): string {\n return this.getPropertyValue(\"addRowLocation\");\n }\n public set addRowLocation(val: string) {\n this.setPropertyValue(\"addRowLocation\", val);\n }\n public getAddRowLocation(): string {\n return this.addRowLocation;\n }\n /**\n * Set this property to true to hide matrix columns when there is no any row.\n */\n public get hideColumnsIfEmpty(): boolean {\n return this.getPropertyValue(\"hideColumnsIfEmpty\");\n }\n public set hideColumnsIfEmpty(val: boolean) {\n this.setPropertyValue(\"hideColumnsIfEmpty\", val);\n }\n public getShowColumnsIfEmpty() {\n return this.hideColumnsIfEmpty;\n }\n /**\n * Use this property to change the default value of remove row button text.\n */\n public get removeRowText() {\n return this.getLocalizableStringText(\n \"removeRowText\",\n surveyLocalization.getString(\"removeRow\")\n );\n }\n public set removeRowText(val: string) {\n this.setLocalizableStringText(\"removeRowText\", val);\n }\n get locRemoveRowText() {\n return this.getLocalizableString(\"removeRowText\");\n }\n /**\n * Use this property to change the default value of remove row button text.\n */\n public get emptyRowsText() {\n return this.getLocalizableStringText(\n \"emptyRowsText\",\n surveyLocalization.getString(\"emptyRowsText\")\n );\n }\n public set emptyRowsText(val: string) {\n this.setLocalizableStringText(\"emptyRowsText\", val);\n }\n get locEmptyRowsText() {\n return this.getLocalizableString(\"emptyRowsText\");\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var values = this.createValueCopy();\n if (!values || !Array.isArray(values)) return values;\n var rows = this.visibleRows;\n for (var i = 0; i < rows.length && i < values.length; i++) {\n var val = values[i];\n if (!val) continue;\n values[i] = this.getRowDisplayValue(rows[i], val);\n }\n return values;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n var hasContext = !!context ? this.columns.indexOf(context) > -1 : false;\n for (var i = 0; i < this.columns.length; i++) {\n var column = this.columns[i];\n this.addColumnIntoaddConditionObjectsByContext(objects, 0, column);\n if (hasContext && column != context) {\n this.addColumnIntoaddConditionObjectsByContext(objects, -1, column);\n }\n for (\n var j = 1;\n j < Math.min(settings.matrixMaxRowCountInCondition, this.rowCount);\n j++\n ) {\n this.addColumnIntoaddConditionObjectsByContext(objects, j, column);\n }\n }\n }\n private addColumnIntoaddConditionObjectsByContext(\n objects: Array,\n rowIndex: number,\n column: MatrixDropdownColumn\n ) {\n var rowName = rowIndex > -1 ? \"[\" + rowIndex.toString() + \"].\" : \"row.\";\n objects.push({\n name:\n (rowIndex > -1 ? this.getValueName() + rowName : rowName) + column.name,\n text:\n (rowIndex > -1 ? this.processedTitle + rowName : rowName) +\n column.fullTitle,\n question: this,\n });\n }\n public supportGoNextPageAutomatic() {\n return false;\n }\n public get hasRowText(): boolean {\n return false;\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n super.onCheckForErrors(errors, isOnValueChanged);\n if (!isOnValueChanged && this.hasErrorInMinRows()) {\n errors.push(new MinRowCountError(this.minRowCount, this));\n }\n }\n private hasErrorInMinRows(): boolean {\n if (this.minRowCount <= 0 || !this.isRequired || !this.generatedVisibleRows)\n return false;\n var setRowCount = 0;\n for (\n var rowIndex = 0;\n rowIndex < this.generatedVisibleRows.length;\n rowIndex++\n ) {\n var row = this.generatedVisibleRows[rowIndex];\n if (!row.isEmpty) setRowCount++;\n }\n return setRowCount < this.minRowCount;\n }\n protected getUniqueColumns(): Array {\n var res = super.getUniqueColumns();\n if (!!this.keyName) {\n let column = this.getColumnByName(this.keyName);\n if (!!column && res.indexOf(column) < 0) {\n res.push(column);\n }\n }\n return res;\n }\n protected generateRows(): Array {\n var result = new Array();\n if (this.rowCount === 0) return result;\n var val = this.createNewValue();\n for (var i = 0; i < this.rowCount; i++) {\n result.push(this.createMatrixRow(this.getRowValueByIndex(val, i)));\n }\n if (!this.isValueEmpty(this.getDefaultRowValue(false))) {\n this.value = val;\n }\n return result;\n }\n protected createMatrixRow(value: any): MatrixDynamicRowModel {\n return new MatrixDynamicRowModel(this.rowCounter++, this, value);\n }\n protected onBeforeValueChanged(val: any) {\n if (!val || !Array.isArray(val)) return;\n var newRowCount = val.length;\n if (newRowCount == this.rowCount) return;\n if (!this.setRowCountValueFromData && newRowCount < this.initialRowCount)\n return;\n this.setRowCountValueFromData = true;\n this.rowCountValue = newRowCount;\n if (this.generatedVisibleRows) {\n this.clearGeneratedRows();\n this.generatedVisibleRows = this.visibleRows;\n this.onRowsChanged();\n }\n }\n protected createNewValue(): any {\n var result = this.createValueCopy();\n if (!result || !Array.isArray(result)) result = [];\n if (result.length > this.rowCount) result.splice(this.rowCount);\n var rowValue = this.getDefaultRowValue(false);\n rowValue = rowValue || {};\n for (var i = result.length; i < this.rowCount; i++) {\n result.push(this.getUnbindValue(rowValue));\n }\n return result;\n }\n protected deleteRowValue(\n newValue: any,\n row: MatrixDropdownRowModelBase\n ): any {\n var isEmpty = true;\n for (var i = 0; i < newValue.length; i++) {\n if (this.isObject(newValue[i]) && Object.keys(newValue[i]).length > 0) {\n isEmpty = false;\n break;\n }\n }\n return isEmpty ? null : newValue;\n }\n\n private getRowValueByIndex(questionValue: any, index: number): any {\n return Array.isArray(questionValue) &&\n index >= 0 &&\n index < questionValue.length\n ? questionValue[index]\n : null;\n }\n protected getRowValueCore(\n row: MatrixDropdownRowModelBase,\n questionValue: any,\n create: boolean = false\n ): any {\n if (!this.generatedVisibleRows) return {};\n var res = this.getRowValueByIndex(\n questionValue,\n this.generatedVisibleRows.indexOf(row)\n );\n if (!res && create) res = {};\n return res;\n }\n}\n\nSerializer.addClass(\n \"matrixdynamic\",\n [\n { name: \"rowsVisibleIf:condition\", visible: false },\n { name: \"allowAddRows:boolean\", default: true },\n { name: \"allowRemoveRows:boolean\", default: true },\n { name: \"rowCount:number\", default: 2, minValue: 0, isBindable: true },\n { name: \"minRowCount:number\", default: 0, minValue: 0 },\n {\n name: \"maxRowCount:number\",\n default: settings.matrixMaximumRowCount,\n },\n { name: \"keyName\" },\n \"defaultRowValue:rowvalue\",\n \"defaultValueFromLastRow:boolean\",\n { name: \"confirmDelete:boolean\" },\n {\n name: \"confirmDeleteText\",\n dependsOn: \"confirmDelete\",\n visibleIf: function (obj: any): boolean {\n return !obj || obj.confirmDelete;\n },\n serializationProperty: \"locConfirmDeleteText\",\n },\n {\n name: \"addRowLocation\",\n default: \"default\",\n choices: [\"default\", \"top\", \"bottom\", \"topBottom\"],\n },\n { name: \"addRowText\", serializationProperty: \"locAddRowText\" },\n { name: \"removeRowText\", serializationProperty: \"locRemoveRowText\" },\n \"hideColumnsIfEmpty:boolean\",\n {\n name: \"emptyRowsText:text\",\n serializationProperty: \"locEmptyRowsText\",\n dependsOn: \"hideColumnsIfEmpty\",\n visibleIf: function (obj: any): boolean {\n return !obj || obj.hideColumnsIfEmpty;\n },\n },\n ],\n function () {\n return new QuestionMatrixDynamicModel(\"\");\n },\n \"matrixdropdownbase\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"matrixdynamic\", (name) => {\n var q = new QuestionMatrixDynamicModel(name);\n q.choices = [1, 2, 3, 4, 5];\n QuestionMatrixDropdownModelBase.addDefaultColumns(q);\n return q;\n});\n","import {\n Base,\n ISurveyData,\n ISurveyImpl,\n ISurvey,\n IPanel,\n IElement,\n SurveyElement,\n ITextProcessor,\n IProgressInfo,\n} from \"./base\";\nimport { SurveyValidator, IValidatorOwner } from \"./validator\";\nimport { Question, IConditionObject } from \"./question\";\nimport { QuestionTextModel } from \"./question_text\";\nimport { JsonObject, Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { SurveyError } from \"./base\";\nimport { AnswerRequiredError } from \"./error\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { Helpers } from \"./helpers\";\n\nexport interface IMultipleTextData extends ILocalizableOwner, IPanel {\n getSurvey(): ISurvey;\n getTextProcessor(): ITextProcessor;\n getAllValues(): any;\n getMultipleTextValue(name: string): any;\n setMultipleTextValue(name: string, value: any): any;\n getItemDefaultValue(name: string): any;\n getIsRequiredText(): string;\n}\n\nexport class MultipleTextItemModel extends Base\n implements IValidatorOwner, ISurveyData, ISurveyImpl {\n private editorValue: QuestionTextModel;\n private data: IMultipleTextData;\n\n valueChangedCallback: (newValue: any) => void;\n\n constructor(name: any = null, title: string = null) {\n super();\n this.editorValue = this.createEditor(name);\n this.editor.questionTitleTemplateCallback = function() {\n return \"\";\n };\n this.editor.titleLocation = \"left\";\n if (title) {\n this.title = title;\n }\n }\n public getType(): string {\n return \"multipletextitem\";\n }\n public get id(): string {\n return this.editor.id;\n }\n /**\n * The item name.\n */\n public get name(): string {\n return this.editor.name;\n }\n public set name(val: string) {\n this.editor.name = val;\n }\n public get question(): Question {\n return (this.data);\n }\n public get editor(): QuestionTextModel {\n return this.editorValue;\n }\n protected createEditor(name: string): QuestionTextModel {\n return new QuestionTextModel(name);\n }\n public addUsedLocales(locales: Array) {\n super.addUsedLocales(locales);\n this.editor.addUsedLocales(locales);\n }\n public locStrsChanged() {\n super.locStrsChanged();\n this.editor.locStrsChanged();\n }\n setData(data: IMultipleTextData) {\n this.data = data;\n if (!!data) {\n this.editor.defaultValue = data.getItemDefaultValue(this.name);\n this.editor.setSurveyImpl(this);\n this.editor.parent = data;\n }\n }\n /**\n * Set this property to true, to make the item a required. If a user doesn't fill the item then a validation error will be generated.\n */\n public get isRequired(): boolean {\n return this.editor.isRequired;\n }\n public set isRequired(val: boolean) {\n this.editor.isRequired = val;\n }\n /**\n * Use this property to change the default input type.\n */\n public get inputType(): string {\n return this.editor.inputType;\n }\n public set inputType(val: string) {\n this.editor.inputType = val;\n }\n /**\n * Item title. If it is empty, the item name is rendered as title. This property supports markdown.\n * @see name\n */\n public get title(): string {\n return this.editor.title;\n }\n public set title(val: string) {\n this.editor.title = val;\n }\n get locTitle() {\n return this.editor.locTitle;\n }\n /**\n * Returns the text or html for rendering the title.\n */\n public get fullTitle(): string {\n return this.editor.fullTitle;\n }\n /**\n * The maximum text length. If it is -1, defaul value, then the survey maxTextLength property will be used.\n * If it is 0, then the value is unlimited\n * @see SurveyModel.maxTextLength\n */\n public get maxLength(): number {\n return this.editor.maxLength;\n }\n public set maxLength(val: number) {\n this.editor.maxLength = val;\n }\n public getMaxLength(): any {\n var survey = this.getSurvey();\n return Helpers.getMaxLength(\n this.maxLength,\n survey ? survey.maxTextLength : -1\n );\n }\n /**\n * The input place holder.\n */\n public get placeHolder(): string {\n return this.editor.placeHolder;\n }\n public set placeHolder(val: string) {\n this.editor.placeHolder = val;\n }\n get locPlaceHolder(): LocalizableString {\n return this.editor.locPlaceHolder;\n }\n /**\n * The custom text that will be shown on required error. Use this property, if you do not want to show the default text.\n */\n public get requiredErrorText(): string {\n return this.editor.requiredErrorText;\n }\n public set requiredErrorText(val: string) {\n this.editor.requiredErrorText = val;\n }\n get locRequiredErrorText(): LocalizableString {\n return this.editor.locRequiredErrorText;\n }\n /**\n * The input size.\n */\n public get size(): number {\n return this.editor.size;\n }\n public set size(val: number) {\n this.editor.size = val;\n }\n /**\n * The list of question validators.\n */\n public get validators(): Array {\n return this.editor.validators;\n }\n public set validators(val: Array) {\n this.editor.validators = val;\n }\n public getValidators(): Array {\n return this.validators;\n }\n /**\n * The item value.\n */\n public get value() {\n return this.data ? this.data.getMultipleTextValue(this.name) : null;\n }\n public set value(value: any) {\n if (this.data != null) {\n this.data.setMultipleTextValue(this.name, value);\n }\n }\n public isEmpty() {\n return this.isValueEmpty(this.value);\n }\n public onValueChanged(newValue: any) {\n if (this.valueChangedCallback) this.valueChangedCallback(newValue);\n }\n //ISurveyImpl\n getSurveyData(): ISurveyData {\n return this;\n }\n getSurvey(): ISurvey {\n return this.data ? this.data.getSurvey() : null;\n }\n getTextProcessor(): ITextProcessor {\n return this.data ? this.data.getTextProcessor() : null;\n }\n //ISurveyData\n getValue(name: string): any {\n if (!this.data) return null;\n return this.data.getMultipleTextValue(name);\n }\n setValue(name: string, value: any) {\n if (this.data) {\n this.data.setMultipleTextValue(name, value);\n }\n }\n getVariable(name: string): any {\n return undefined;\n }\n setVariable(name: string, newValue: any) {}\n getComment(name: string): string {\n return null;\n }\n setComment(name: string, newValue: string) {}\n getAllValues(): any {\n if (this.data) return this.data.getAllValues();\n return this.value;\n }\n getFilteredValues(): any {\n return this.getAllValues();\n }\n getFilteredProperties(): any {\n return { survey: this.getSurvey() };\n }\n //IValidatorOwner\n getValidatorTitle(): string {\n return this.title;\n }\n get validatedValue(): any {\n return this.value;\n }\n set validatedValue(val: any) {\n this.value = val;\n }\n getDataFilteredValues(): any {\n return this.getFilteredValues();\n }\n getDataFilteredProperties(): any {\n return this.getFilteredProperties();\n }\n}\n\n/**\n * A Model for a multiple text question.\n */\nexport class QuestionMultipleTextModel extends Question\n implements IMultipleTextData, IPanel {\n public static addDefaultItems(question: QuestionMultipleTextModel) {\n var names = QuestionFactory.DefaultMutlipleTextItems;\n for (var i = 0; i < names.length; i++) question.addItem(names[i]);\n }\n\n colCountChangedCallback: () => void;\n constructor(name: string) {\n super(name);\n this.createNewArray(\"items\", (item: any) => {\n item.setData(this);\n });\n this.registerFunctionOnPropertyValueChanged(\"items\", () => {\n this.fireCallback(this.colCountChangedCallback);\n });\n this.registerFunctionOnPropertyValueChanged(\"colCount\", () => {\n this.fireCallback(this.colCountChangedCallback);\n });\n this.registerFunctionOnPropertyValueChanged(\"itemSize\", () => {\n this.updateItemsSize();\n });\n }\n public getType(): string {\n return \"multipletext\";\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n for (var i = 0; i < this.items.length; i++) {\n this.items[i].setData(this);\n }\n }\n public get isAllowTitleLeft(): boolean {\n return false;\n }\n public get hasSingleInput(): boolean {\n return false;\n }\n onSurveyLoad() {\n this.editorsOnSurveyLoad();\n super.onSurveyLoad();\n this.fireCallback(this.colCountChangedCallback);\n }\n setQuestionValue(newValue: any, updateIsAnswered: boolean = true) {\n super.setQuestionValue(newValue, updateIsAnswered);\n this.performForEveryEditor((item: MultipleTextItemModel): void => {\n item.editor.updateValueFromSurvey(item.value);\n });\n this.updateIsAnswered();\n }\n onSurveyValueChanged(newValue: any) {\n super.onSurveyValueChanged(newValue);\n this.performForEveryEditor((item: MultipleTextItemModel): void => {\n item.editor.onSurveyValueChanged(item.value);\n });\n }\n private updateItemsSize() {\n this.performForEveryEditor((item: MultipleTextItemModel): void => {\n item.editor.updateInputSize();\n });\n }\n private editorsOnSurveyLoad() {\n this.performForEveryEditor((item: MultipleTextItemModel): void => {\n item.editor.onSurveyLoad();\n });\n }\n private performForEveryEditor(func: (item: MultipleTextItemModel) => void) {\n for (var i = 0; i < this.items.length; i++) {\n var item = this.items[i];\n if (item.editor) {\n func(item);\n }\n }\n }\n /**\n * The list of input items.\n */\n public get items(): Array {\n return this.getPropertyValue(\"items\");\n }\n public set items(val: Array) {\n this.setPropertyValue(\"items\", val);\n }\n /**\n * Add a new text item.\n * @param name a item name\n * @param title a item title (optional)\n */\n public addItem(name: string, title: string = null): MultipleTextItemModel {\n var item = this.createTextItem(name, title);\n this.items.push(item);\n return item;\n }\n public getItemByName(name: string): MultipleTextItemModel {\n for (var i = 0; i < this.items.length; i++) {\n if (this.items[i].name == name) return this.items[i];\n }\n return null;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n for (var i = 0; i < this.items.length; i++) {\n var item = this.items[i];\n objects.push({\n name: this.getValueName() + \".\" + item.name,\n text: this.processedTitle + \".\" + item.fullTitle,\n question: this,\n });\n }\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n if (!path) return super.getConditionJson();\n var item = this.getItemByName(path);\n if (!item) return null;\n var json = new JsonObject().toJsonObject(item);\n json[\"type\"] = \"text\";\n return json;\n }\n public locStrsChanged() {\n super.locStrsChanged();\n for (var i = 0; i < this.items.length; i++) {\n this.items[i].locStrsChanged();\n }\n }\n supportGoNextPageAutomatic() {\n for (var i = 0; i < this.items.length; i++) {\n if (this.items[i].isEmpty()) return false;\n }\n return true;\n }\n /**\n * The number of columns. Items are rendred in one line if the value is 0.\n */\n public get colCount(): number {\n return this.getPropertyValue(\"colCount\");\n }\n public set colCount(val: number) {\n if (val < 1 || val > 5) return;\n this.setPropertyValue(\"colCount\", val);\n }\n /**\n * The default text input size.\n */\n public get itemSize(): number {\n return this.getPropertyValue(\"itemSize\");\n }\n public set itemSize(val: number) {\n this.setPropertyValue(\"itemSize\", val);\n }\n /**\n * Returns the list of rendered rows.\n */\n public getRows(): Array {\n var colCount = this.colCount;\n var items = this.items;\n var rows = [];\n var index = 0;\n for (var i = 0; i < items.length; i++) {\n if (index == 0) {\n rows.push([]);\n }\n rows[rows.length - 1].push(items[i]);\n index++;\n if (index >= colCount) {\n index = 0;\n }\n }\n return rows;\n }\n private isMultipleItemValueChanging = false;\n protected onValueChanged() {\n super.onValueChanged();\n this.onItemValueChanged();\n }\n protected createTextItem(name: string, title: string): MultipleTextItemModel {\n return new MultipleTextItemModel(name, title);\n }\n protected onItemValueChanged() {\n if (this.isMultipleItemValueChanging) return;\n for (var i = 0; i < this.items.length; i++) {\n var itemValue = null;\n if (this.value && this.items[i].name in this.value) {\n itemValue = this.value[this.items[i].name];\n }\n this.items[i].onValueChanged(itemValue);\n }\n }\n protected getIsRunningValidators(): boolean {\n if (super.getIsRunningValidators()) return true;\n for (var i = 0; i < this.items.length; i++) {\n if (this.items[i].editor.isRunningValidators) return true;\n }\n return false;\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n var res = false;\n for (var i = 0; i < this.items.length; i++) {\n this.items[i].editor.onCompletedAsyncValidators = (\n hasErrors: boolean\n ) => {\n this.raiseOnCompletedAsyncValidators();\n };\n if (\n !!rec &&\n rec.isOnValueChanged === true &&\n this.items[i].editor.isEmpty()\n )\n continue;\n res = this.items[i].editor.hasErrors(fireCallback, rec) || res;\n }\n return super.hasErrors(fireCallback) || res;\n }\n public getAllErrors(): Array {\n var result = super.getAllErrors();\n for (var i = 0; i < this.items.length; i++) {\n var errors = this.items[i].editor.getAllErrors();\n if (errors && errors.length > 0) {\n result = result.concat(errors);\n }\n }\n return result;\n }\n public clearErrors() {\n super.clearErrors();\n for (var i = 0; i < this.items.length; i++) {\n this.items[i].editor.clearErrors();\n }\n }\n protected getContainsErrors(): boolean {\n var res = super.getContainsErrors();\n if (res) return res;\n var items = this.items;\n for (var i = 0; i < items.length; i++) {\n if (items[i].editor.containsErrors) return true;\n }\n return false;\n }\n protected getIsAnswered(): boolean {\n if (!super.getIsAnswered()) return false;\n for (var i = 0; i < this.items.length; i++) {\n var editor = this.items[i].editor;\n if (editor.isVisible && !editor.isAnswered) return false;\n }\n return true;\n }\n public getProgressInfo(): IProgressInfo {\n var elements = [];\n for (var i = 0; i < this.items.length; i++) {\n elements.push(this.items[i].editor);\n }\n return SurveyElement.getProgressInfoByElements(elements, this.isRequired);\n }\n //IMultipleTextData\n getMultipleTextValue(name: string) {\n if (!this.value) return null;\n return this.value[name];\n }\n setMultipleTextValue(name: string, value: any) {\n this.isMultipleItemValueChanging = true;\n var newValue = this.value;\n if (!newValue) {\n newValue = {};\n }\n newValue[name] = value;\n this.setNewValue(newValue);\n this.isMultipleItemValueChanging = false;\n }\n getItemDefaultValue(name: string): any {\n return !!this.defaultValue ? this.defaultValue[name] : null;\n }\n getTextProcessor(): ITextProcessor {\n return this.textProcessor;\n }\n getAllValues() {\n return this.data ? this.data.getAllValues() : null;\n }\n getIsRequiredText(): string {\n return this.survey ? this.survey.requiredText : \"\";\n }\n //IPanel\n addElement(element: IElement, index: number) {}\n removeElement(element: IElement): boolean {\n return false;\n }\n getQuestionTitleLocation(): string {\n return \"left\";\n }\n getQuestionStartIndex(): string {\n return this.getStartIndex();\n }\n getChildrenLayoutType(): string {\n return \"row\";\n }\n elementWidthChanged(el: IElement) {}\n get elements(): Array {\n return [];\n }\n indexOf(el: IElement): number {\n return -1;\n }\n ensureRowsVisibility(): void {\n // do nothing\n }\n}\n\nSerializer.addClass(\n \"multipletextitem\",\n [\n \"name\",\n \"isRequired:boolean\",\n { name: \"placeHolder\", serializationProperty: \"locPlaceHolder\" },\n {\n name: \"inputType\",\n default: \"text\",\n choices: [\n \"color\",\n \"date\",\n \"datetime\",\n \"datetime-local\",\n \"email\",\n \"month\",\n \"number\",\n \"password\",\n \"range\",\n \"tel\",\n \"text\",\n \"time\",\n \"url\",\n \"week\",\n ],\n },\n { name: \"title\", serializationProperty: \"locTitle\" },\n { name: \"maxLength:number\", default: -1 },\n { name: \"size:number\", minValue: 0 },\n {\n name: \"requiredErrorText:text\",\n serializationProperty: \"locRequiredErrorText\",\n },\n {\n name: \"validators:validators\",\n baseClassName: \"surveyvalidator\",\n classNamePart: \"validator\",\n },\n ],\n function() {\n return new MultipleTextItemModel(\"\");\n }\n);\n\nSerializer.addClass(\n \"multipletext\",\n [\n { name: \"!items:textitems\", className: \"multipletextitem\" },\n { name: \"itemSize:number\", minValue: 0 },\n { name: \"colCount:number\", default: 1, choices: [1, 2, 3, 4, 5] },\n ],\n function() {\n return new QuestionMultipleTextModel(\"\");\n },\n \"question\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"multipletext\", name => {\n var q = new QuestionMultipleTextModel(name);\n QuestionMultipleTextModel.addDefaultItems(q);\n return q;\n});\n","import { HashTable, Helpers } from \"./helpers\";\nimport {\n IElement,\n IQuestion,\n Base,\n IPanel,\n SurveyError,\n ISurveyData,\n ISurvey,\n ISurveyImpl,\n ITextProcessor,\n IProgressInfo,\n SurveyElement,\n} from \"./base\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { LocalizableString } from \"./localizablestring\";\nimport {\n TextPreProcessorValue,\n QuestionTextProcessor,\n} from \"./textPreProcessor\";\nimport { Question, IConditionObject } from \"./question\";\nimport { PanelModel } from \"./panel\";\nimport { JsonObject, property, Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { KeyDuplicationError } from \"./error\";\nimport { settings } from \"./settings\";\nimport { Panel } from \"./knockout/kopage\";\nimport { confirmAction } from \"./utils/utils\";\n\nexport interface IQuestionPanelDynamicData {\n getItemIndex(item: ISurveyData): number;\n getPanelItemData(item: ISurveyData): any;\n setPanelItemData(item: ISurveyData, name: string, val: any): any;\n getSharedQuestionFromArray(name: string, panelIndex: number): Question;\n getSurvey(): ISurvey;\n getRootData(): ISurveyData;\n}\n\nclass QuestionPanelDynamicItemTextProcessor extends QuestionTextProcessor {\n constructor(\n private data: IQuestionPanelDynamicData,\n protected panelItem: QuestionPanelDynamicItem,\n protected variableName: string\n ) {\n super(variableName);\n }\n protected get survey(): ISurvey {\n return this.panelItem.getSurvey();\n }\n protected get panel(): PanelModel {\n return this.panelItem.panel;\n }\n private get panelIndex(): number {\n return !!this.data ? this.data.getItemIndex(this.panelItem) : -1;\n }\n protected getValues(): any {\n return this.panelItem.getAllValues();\n }\n protected getQuestionByName(name: string): Question {\n var res = super.getQuestionByName(name);\n if (!!res) return res;\n var index = this.panelIndex;\n return index > -1\n ? this.data.getSharedQuestionFromArray(name, index)\n : null;\n }\n protected onCustomProcessText(textValue: TextPreProcessorValue): boolean {\n if (textValue.name == QuestionPanelDynamicItem.IndexVariableName) {\n var index = this.panelIndex;\n if (index > -1) {\n textValue.isExists = true;\n textValue.value = index + 1;\n return true;\n }\n }\n if (\n textValue.name.indexOf(\n QuestionPanelDynamicItem.ParentItemVariableName + \".\"\n ) == 0\n ) {\n var q = (this.data);\n if (!!q && !!q.parentQuestion && !!q.parent) {\n var data = (q.parent).data;\n var processor = new QuestionPanelDynamicItemTextProcessor(\n (q.parentQuestion),\n data,\n QuestionPanelDynamicItem.ItemVariableName\n );\n var text = textValue.name.replace(\n QuestionPanelDynamicItem.ParentItemVariableName,\n QuestionPanelDynamicItem.ItemVariableName\n );\n var res = processor.processValue(text, textValue.returnDisplayValue);\n textValue.isExists = res.isExists;\n textValue.value = res.value;\n }\n return true;\n }\n return false;\n }\n}\n\nexport class QuestionPanelDynamicItem implements ISurveyData, ISurveyImpl {\n public static ItemVariableName = \"panel\";\n public static ParentItemVariableName = \"parentPanel\";\n public static IndexVariableName = \"panelIndex\";\n private panelValue: PanelModel;\n private data: IQuestionPanelDynamicData;\n private textPreProcessor: QuestionPanelDynamicItemTextProcessor;\n constructor(data: IQuestionPanelDynamicData, panel: PanelModel) {\n this.data = data;\n this.panelValue = panel;\n this.textPreProcessor = new QuestionPanelDynamicItemTextProcessor(\n data,\n this,\n QuestionPanelDynamicItem.ItemVariableName\n );\n this.setSurveyImpl();\n }\n public get panel(): PanelModel {\n return this.panelValue;\n }\n public setSurveyImpl() {\n this.panel.setSurveyImpl(this);\n }\n public getValue(name: string): any {\n var values = this.getAllValues();\n return values[name];\n }\n public setValue(name: string, newValue: any) {\n this.data.setPanelItemData(this, name, newValue);\n }\n getVariable(name: string): any {\n return undefined;\n }\n setVariable(name: string, newValue: any) {}\n public getComment(name: string): string {\n var result = this.getValue(name + settings.commentPrefix);\n return result ? result : \"\";\n }\n public setComment(name: string, newValue: string, locNotification: any) {\n this.setValue(name + settings.commentPrefix, newValue);\n }\n getAllValues(): any {\n return this.data.getPanelItemData(this);\n }\n getFilteredValues(): any {\n var values: { [key: string]: any } = {};\n var surveyValues =\n !!this.data && !!this.data.getRootData()\n ? this.data.getRootData().getFilteredValues()\n : {};\n for (var key in surveyValues) {\n values[key] = surveyValues[key];\n }\n values[QuestionPanelDynamicItem.ItemVariableName] = this.getAllValues();\n if (!!this.data) {\n values[\n QuestionPanelDynamicItem.IndexVariableName.toLowerCase()\n ] = this.data.getItemIndex(this);\n }\n return values;\n }\n getFilteredProperties(): any {\n if (!!this.data && !!this.data.getRootData())\n return this.data.getRootData().getFilteredProperties();\n return { survey: this.getSurvey() };\n }\n getSurveyData(): ISurveyData {\n return this;\n }\n getSurvey(): ISurvey {\n return this.data ? this.data.getSurvey() : null;\n }\n getTextProcessor(): ITextProcessor {\n return this.textPreProcessor;\n }\n}\n\nexport class QuestionPanelDynamicTemplateSurveyImpl implements ISurveyImpl {\n constructor(public data: IQuestionPanelDynamicData) {}\n getSurveyData(): ISurveyData {\n return null;\n }\n getSurvey(): ISurvey {\n return this.data.getSurvey();\n }\n getTextProcessor(): ITextProcessor {\n return null;\n }\n}\n\n/**\n * A Model for a panel dymanic question. You setup the template panel, but adding elements (any question or a panel) and assign a text to it's title, and this panel will be used as a template on creating dynamic panels. The number of panels is defined by panelCount property.\n * An end-user may dynamically add/remove panels, unless you forbidden this.\n */\nexport class QuestionPanelDynamicModel extends Question\n implements IQuestionPanelDynamicData {\n private templateValue: PanelModel;\n private loadingPanelCount: number = 0;\n private isValueChangingInternally: boolean;\n private changingValueQuestion: Question;\n private currentIndexValue: number = -1;\n\n renderModeChangedCallback: () => void;\n panelCountChangedCallback: () => void;\n currentIndexChangedCallback: () => void;\n\n constructor(name: string) {\n super(name);\n this.createNewArray(\"panels\");\n this.templateValue = this.createAndSetupNewPanelObject();\n this.template.renderWidth = \"100%\";\n this.template.selectedElementInDesign = this;\n\n var self = this;\n this.template.addElementCallback = function(element) {\n self.addOnPropertyChangedCallback(element);\n self.rebuildPanels();\n };\n this.template.removeElementCallback = function(element) {\n self.rebuildPanels();\n };\n\n this.createLocalizableString(\"confirmDeleteText\", this);\n this.createLocalizableString(\"keyDuplicationError\", this);\n this.createLocalizableString(\"panelAddText\", this);\n this.createLocalizableString(\"panelRemoveText\", this);\n this.createLocalizableString(\"panelPrevText\", this);\n this.createLocalizableString(\"panelNextText\", this);\n this.registerFunctionOnPropertyValueChanged(\"panelsState\", function() {\n self.setPanelsState();\n });\n }\n public get hasSingleInput(): boolean {\n return false;\n }\n public setSurveyImpl(value: ISurveyImpl) {\n super.setSurveyImpl(value);\n this.setTemplatePanelSurveyImpl();\n this.setPanelsSurveyImpl();\n }\n private assignOnPropertyChangedToTemplate() {\n var elements = this.template.elements;\n for (var i = 0; i < elements.length; i++) {\n this.addOnPropertyChangedCallback(elements[i]);\n }\n }\n private addOnPropertyChangedCallback(element: IElement) {\n var self = this;\n ((element)).onPropertyChanged.add(function(element, options) {\n self.onTemplateElementPropertyChanged(element, options);\n });\n if (element.isPanel) {\n ((element)).addElementCallback = function(element) {\n self.addOnPropertyChangedCallback(element);\n };\n }\n }\n private onTemplateElementPropertyChanged(element: any, options: any) {\n if (this.isLoadingFromJson || this.isDesignMode || this.panels.length == 0)\n return;\n var property = Serializer.findProperty(element.getType(), options.name);\n if (!property) return;\n var panels = this.panels;\n for (var i = 0; i < panels.length; i++) {\n var question = panels[i].getQuestionByName(element.name);\n if (!!question && (question)[options.name] !== options.newValue) {\n (question)[options.name] = options.newValue;\n }\n }\n }\n public getType(): string {\n return \"paneldynamic\";\n }\n public get isCompositeQuestion(): boolean {\n return true;\n }\n public clearOnDeletingContainer() {\n this.panels.forEach(panel => {\n panel.clearOnDeletingContainer();\n });\n }\n public get isAllowTitleLeft(): boolean {\n return false;\n }\n public removeElement(element: IElement): boolean {\n return this.template.removeElement(element);\n }\n\n /**\n * The template Panel. This panel is used as a template on creatign dynamic panels\n * @see templateElements\n * @see templateTitle\n * @see panelCount\n */\n public get template(): PanelModel {\n return this.templateValue;\n }\n public getPanel(): IPanel {\n return this.template;\n }\n /**\n * The template Panel elements, questions and panels.\n * @see templateElements\n * @see template\n * @see panelCount\n */\n public get templateElements(): Array {\n return this.template.elements;\n }\n /**\n * The template Panel title property.\n * @see templateElements\n * @see template\n * @see panelCount\n */\n public get templateTitle(): string {\n return this.template.title;\n }\n public set templateTitle(newValue: string) {\n this.template.title = newValue;\n }\n get locTemplateTitle(): LocalizableString {\n return this.template.locTitle;\n }\n /**\n * The template Panel description property.\n * @see templateElements\n * @see template\n * @see panelCount\n * @see templateTitle\n */\n public get templateDescription(): string {\n return this.template.description;\n }\n public set templateDescription(newValue: string) {\n this.template.description = newValue;\n }\n get locTemplateDescription(): LocalizableString {\n return this.template.locDescription;\n }\n\n protected get items(): Array {\n var res = [];\n for (var i = 0; i < this.panels.length; i++) {\n res.push(this.panels[i].data);\n }\n return res;\n }\n /**\n * The array of dynamic panels created based on panel template\n * @see template\n * @see panelCount\n */\n public get panels(): Array {\n return this.getPropertyValue(\"panels\");\n }\n /**\n * The index of current active dynamical panel when the renderMode is not \"list\". If there is no dymamic panel (panelCount = 0) or renderMode equals \"list\" it returns -1, otherwise it returns a value from 0 to panelCount - 1.\n * @see currentPanel\n * @see panels\n * @see panelCount\n * @see renderMode\n */\n public get currentIndex(): number {\n if (this.isRenderModeList) return -1;\n if (this.isDesignMode) return 0;\n if (this.currentIndexValue < 0 && this.panelCount > 0) {\n this.currentIndexValue = 0;\n }\n if (this.currentIndexValue >= this.panelCount) {\n this.currentIndexValue = this.panelCount - 1;\n }\n return this.currentIndexValue;\n }\n public set currentIndex(val: number) {\n if (this.currentIndexValue !== val) {\n if (val >= this.panelCount) val = this.panelCount - 1;\n this.currentIndexValue = val;\n this.fireCallback(this.currentIndexChangedCallback);\n }\n }\n /**\n * The current active dynamical panel when the renderMode is not \"list\". If there is no dymamic panel (panelCount = 0) or renderMode equals \"list\" it returns null.\n * @see currenIndex\n * @see panels\n * @see panelCount\n * @see renderMode\n */\n public get currentPanel(): PanelModel {\n var index = this.currentIndex;\n if (index < 0 || index >= this.panels.length) return null;\n return this.panels[index];\n }\n /**\n * Set it to true, to show a confirmation dialog on removing a panel\n * @see ConfirmDeleteText\n */\n public get confirmDelete(): boolean {\n return this.getPropertyValue(\"confirmDelete\", false);\n }\n public set confirmDelete(val: boolean) {\n this.setPropertyValue(\"confirmDelete\", val);\n }\n /**\n * Set it to a question name used in the template panel and the library shows duplication error, if there are same values in different panels of this question.\n * @see keyDuplicationError\n */\n public get keyName(): string {\n return this.getPropertyValue(\"keyName\", \"\");\n }\n public set keyName(val: string) {\n this.setPropertyValue(\"keyName\", val);\n }\n /**\n * Use this property to change the default text showing in the confirmation delete dialog on removing a panel.\n */\n public get confirmDeleteText() {\n return this.getLocalizableStringText(\n \"confirmDeleteText\",\n surveyLocalization.getString(\"confirmDelete\")\n );\n }\n public set confirmDeleteText(val: string) {\n this.setLocalizableStringText(\"confirmDeleteText\", val);\n }\n get locConfirmDeleteText(): LocalizableString {\n return this.getLocalizableString(\"confirmDeleteText\");\n }\n /**\n * The duplication value error text. Set it to show the text different from the default.\n * @see keyName\n */\n public get keyDuplicationError() {\n return this.getLocalizableStringText(\n \"keyDuplicationError\",\n surveyLocalization.getString(\"keyDuplicationError\")\n );\n }\n public set keyDuplicationError(val: string) {\n this.setLocalizableStringText(\"keyDuplicationError\", val);\n }\n get locKeyDuplicationError(): LocalizableString {\n return this.getLocalizableString(\"keyDuplicationError\");\n }\n /**\n * Use this property to change the default previous button text. Previous button shows the previous panel, change the currentPanel, when the renderMode doesn't equal to \"list\".\n * @see currentPanel\n * @see currentIndex\n * @see renderMode\n */\n public get panelPrevText(): string {\n return this.getLocalizableStringText(\n \"panelPrevText\",\n surveyLocalization.getString(\"pagePrevText\")\n );\n }\n public set panelPrevText(val: string) {\n this.setLocalizableStringText(\"panelPrevText\", val);\n }\n get locPanelPrevText(): LocalizableString {\n return this.getLocalizableString(\"panelPrevText\");\n }\n /**\n * Use this property to change the default next button text. Next button shows the next panel, change the currentPanel, when the renderMode doesn't equal to \"list\".\n * @see currentPanel\n * @see currentIndex\n * @see renderMode\n */\n public get panelNextText(): string {\n return this.getLocalizableStringText(\n \"panelNextText\",\n surveyLocalization.getString(\"pageNextText\")\n );\n }\n public set panelNextText(val: string) {\n this.setLocalizableStringText(\"panelNextText\", val);\n }\n get locPanelNextText(): LocalizableString {\n return this.getLocalizableString(\"panelNextText\");\n }\n /**\n * Use this property to change the default value of add panel button text.\n */\n public get panelAddText() {\n return this.getLocalizableStringText(\n \"panelAddText\",\n surveyLocalization.getString(\"addPanel\")\n );\n }\n public set panelAddText(value: string) {\n this.setLocalizableStringText(\"panelAddText\", value);\n }\n get locPanelAddText(): LocalizableString {\n return this.getLocalizableString(\"panelAddText\");\n }\n /**\n * Use this property to change the default value of remove panel button text.\n */\n public get panelRemoveText() {\n return this.getLocalizableStringText(\n \"panelRemoveText\",\n surveyLocalization.getString(\"removePanel\")\n );\n }\n public set panelRemoveText(val: string) {\n this.setLocalizableStringText(\"panelRemoveText\", val);\n }\n get locPanelRemoveText(): LocalizableString {\n return this.getLocalizableString(\"panelRemoveText\");\n }\n /**\n * Returns true when the renderMode equals to \"progressTop\" or \"progressTopBottom\"\n */\n public get isProgressTopShowing(): boolean {\n return (\n this.renderMode == \"progressTop\" || this.renderMode == \"progressTopBottom\"\n );\n }\n /**\n * Returns true when the renderMode equals to \"progressBottom\" or \"progressTopBottom\"\n */\n public get isProgressBottomShowing(): boolean {\n return (\n this.renderMode == \"progressBottom\" ||\n this.renderMode == \"progressTopBottom\"\n );\n }\n /**\n * Returns true when currentIndex is more than 0.\n * @see currenIndex\n * @see currenPanel\n */\n public get isPrevButtonShowing(): boolean {\n return this.currentIndex > 0;\n }\n /**\n * Returns true when currentIndex is more than or equal 0 and less than panelCount - 1.\n * @see currenIndex\n * @see currenPanel\n * @see panelCount\n */\n public get isNextButtonShowing(): boolean {\n return this.currentIndex >= 0 && this.currentIndex < this.panelCount - 1;\n }\n /**\n * Returns true when showRangeInProgress equals to true, renderMode doesn't equal to \"list\" and panelCount is >= 2.\n */\n public get isRangeShowing(): boolean {\n return (\n this.showRangeInProgress && this.currentIndex >= 0 && this.panelCount > 1\n );\n }\n public getElementsInDesign(includeHidden: boolean = false): Array {\n return includeHidden ? [this.template] : this.templateElements;\n }\n private isAddingNewPanels: boolean = false;\n private addingNewPanelsValue: any;\n private isNewPanelsValueChanged: boolean;\n private prepareValueForPanelCreating() {\n this.addingNewPanelsValue = this.value;\n this.isAddingNewPanels = true;\n this.isNewPanelsValueChanged = false;\n }\n private setValueAfterPanelsCreating() {\n this.isAddingNewPanels = false;\n if (this.isNewPanelsValueChanged) {\n this.isValueChangingInternally = true;\n this.value = this.addingNewPanelsValue;\n this.isValueChangingInternally = false;\n }\n }\n protected getValueCore() {\n return this.isAddingNewPanels\n ? this.addingNewPanelsValue\n : super.getValueCore();\n }\n protected setValueCore(newValue: any) {\n if (this.isAddingNewPanels) {\n this.isNewPanelsValueChanged = true;\n this.addingNewPanelsValue = newValue;\n } else {\n super.setValueCore(newValue);\n }\n }\n /**\n * Use this property to get/set the number of dynamic panels.\n * @see template\n * @see minPanelCount\n * @see maxPanelCount\n * @see addPanel\n * @see removePanel\n * @see removePanelUI\n */\n public get panelCount(): number {\n return this.isLoadingFromJson || this.isDesignMode\n ? this.loadingPanelCount\n : this.panels.length;\n }\n public set panelCount(val: number) {\n if (val < 0) return;\n if (this.isLoadingFromJson || this.isDesignMode) {\n this.loadingPanelCount = val;\n return;\n }\n if (val == this.panels.length || this.isDesignMode) return;\n this.updateBindings(\"panelCount\", val);\n this.prepareValueForPanelCreating();\n for (let i = this.panelCount; i < val; i++) {\n var panel = this.createNewPanel();\n this.panels.push(panel);\n if (this.renderMode == \"list\" && this.panelsState != \"default\") {\n if (this.panelsState === \"expand\") {\n panel.expand();\n } else {\n if (!!panel.title) {\n panel.collapse();\n }\n }\n }\n }\n if (val < this.panelCount) this.panels.splice(val, this.panelCount - val);\n this.setValueAfterPanelsCreating();\n this.setValueBasedOnPanelCount();\n this.reRunCondition();\n this.fireCallback(this.panelCountChangedCallback);\n }\n /**\n * Use this property to allow the end-user to collapse/expand the panels. It works only if the renderMode property equals to \"list\" and templateTitle property is not empty. The following values are available:\n *
default - the default value. User can't collapse/expand panels\n *
expanded - User can collapse/expand panels and all panels are expanded by default\n *
collapsed - User can collapse/expand panels and all panels are collapsed by default\n *
firstExpanded - User can collapse/expand panels. The first panel is expanded and others are collapsed\n * @see renderMode\n * @see templateTitle\n */\n public get panelsState(): string {\n return this.getPropertyValue(\"panelsState\");\n }\n public set panelsState(val: string) {\n this.setPropertyValue(\"panelsState\", val);\n }\n private setTemplatePanelSurveyImpl() {\n this.template.setSurveyImpl(\n this.isDesignMode\n ? this.surveyImpl\n : new QuestionPanelDynamicTemplateSurveyImpl(this)\n );\n }\n private setPanelsSurveyImpl() {\n for (var i = 0; i < this.panels.length; i++) {\n var panel = this.panels[i];\n if (panel == this.template) continue;\n panel.setSurveyImpl(panel.data);\n }\n }\n private setPanelsState() {\n if (this.isDesignMode || this.renderMode != \"list\" || !this.templateTitle)\n return;\n for (var i = 0; i < this.panels.length; i++) {\n var state = this.panelsState;\n if (state === \"firstExpanded\") {\n state = i === 0 ? \"expanded\" : \"collapsed\";\n }\n this.panels[i].state = state;\n }\n }\n private setValueBasedOnPanelCount() {\n var value = this.value;\n if (!value || !Array.isArray(value)) value = [];\n if (value.length == this.panelCount) return;\n for (var i = value.length; i < this.panelCount; i++) value.push({});\n if (value.length > this.panelCount) {\n value.splice(this.panelCount, value.length - this.panelCount);\n }\n this.isValueChangingInternally = true;\n this.value = value;\n this.isValueChangingInternally = false;\n }\n /**\n * The minimum panel count. A user could not delete a panel if the panelCount equals to minPanelCount\n * @see panelCount\n * @see maxPanelCount\n */\n public get minPanelCount(): number {\n return this.getPropertyValue(\"minPanelCount\", 0);\n }\n public set minPanelCount(val: number) {\n if (val < 0) val = 0;\n if (val == this.minPanelCount) return;\n this.setPropertyValue(\"minPanelCount\", val);\n if (val > this.maxPanelCount) this.maxPanelCount = val;\n if (this.panelCount < val) this.panelCount = val;\n }\n /**\n * The maximum panel count. A user could not add a panel if the panelCount equals to maxPanelCount\n * @see panelCount\n * @see minPanelCount\n */\n public get maxPanelCount(): number {\n return this.getPropertyValue(\n \"maxPanelCount\",\n settings.panelMaximumPanelCount\n );\n }\n public set maxPanelCount(val: number) {\n if (val <= 0) return;\n if (val > settings.panelMaximumPanelCount)\n val = settings.panelMaximumPanelCount;\n if (val == this.maxPanelCount) return;\n this.setPropertyValue(\"maxPanelCount\", val);\n if (val < this.minPanelCount) this.minPanelCount = val;\n if (this.panelCount > val) this.panelCount = val;\n }\n /**\n * Set this property to false to hide the 'Add New' button\n * @see allowRemovePanel\n */\n public get allowAddPanel(): boolean {\n return this.getPropertyValue(\"allowAddPanel\");\n }\n public set allowAddPanel(val: boolean) {\n this.setPropertyValue(\"allowAddPanel\", val);\n }\n /**\n * Set this property to false to hide the 'Remove' button\n * @see allowAddPanel\n */\n public get allowRemovePanel(): boolean {\n return this.getPropertyValue(\"allowRemovePanel\");\n }\n public set allowRemovePanel(val: boolean) {\n this.setPropertyValue(\"allowRemovePanel\", val);\n }\n /**\n * Set this property different from \"default\" to set the specific question title location for the template questions.\n * @see SurveyModel.questionTitleLocation\n * @see PanelModelBase.questionTitleLocation\n */\n public get templateTitleLocation(): string {\n return this.getPropertyValue(\"templateTitleLocation\");\n }\n public set templateTitleLocation(value: string) {\n this.setPropertyValue(\"templateTitleLocation\", value.toLowerCase());\n }\n /**\n * Use this property to show/hide the numbers in titles in questions inside a dynamic panel.\n * By default the value is \"off\". You may set it to \"onPanel\" and the first question inside a dynamic panel will start with 1 or \"onSurvey\" to include nested questions in dymamic panels into global survey question numbering.\n */\n public get showQuestionNumbers(): string {\n return this.getPropertyValue(\"showQuestionNumbers\");\n }\n public set showQuestionNumbers(val: string) {\n this.setPropertyValue(\"showQuestionNumbers\", val);\n if (!this.isLoadingFromJson && this.survey) {\n this.survey.questionVisibilityChanged(this, this.visible);\n }\n }\n /**\n * Use this property to change the location of the remove button relative to the panel.\n * By default the value is \"bottom\". You may set it to \"right\" and remove button will appear to the right of the panel.\n */\n public get panelRemoveButtonLocation(): string {\n return this.getPropertyValue(\"panelRemoveButtonLocation\");\n }\n public set panelRemoveButtonLocation(val: string) {\n this.setPropertyValue(\"panelRemoveButtonLocation\", val);\n }\n /**\n * Shows the range from 1 to panelCount when renderMode doesn't equal to \"list\". Set to false to hide this element.\n * @see panelCount\n * @see renderMode\n */\n public get showRangeInProgress(): boolean {\n return this.getPropertyValue(\"showRangeInProgress\", true);\n }\n public set showRangeInProgress(val: boolean) {\n this.setPropertyValue(\"showRangeInProgress\", val);\n this.fireCallback(this.currentIndexChangedCallback);\n }\n /**\n * By default the property equals to \"list\" and all dynamic panels are rendered one by one on the page. You may change it to: \"progressTop\", \"progressBottom\" or \"progressTopBottom\" to render only one dynamic panel at once. The progress and navigation elements can be rendred on top, bottom or both.\n */\n public get renderMode(): string {\n return this.getPropertyValue(\"renderMode\");\n }\n public set renderMode(val: string) {\n this.setPropertyValue(\"renderMode\", val);\n this.fireCallback(this.renderModeChangedCallback);\n }\n /**\n * Returns true when renderMode equals to \"list\".\n * @see renderMode\n */\n public get isRenderModeList() {\n return this.renderMode == \"list\";\n }\n public setVisibleIndex(value: number): number {\n if (!this.isVisible) return 0;\n var startIndex = this.showQuestionNumbers == \"onSurvey\" ? value : 0;\n for (var i = 0; i < this.panels.length; i++) {\n var counter = this.setPanelVisibleIndex(\n this.panels[i],\n startIndex,\n this.showQuestionNumbers != \"off\"\n );\n if (this.showQuestionNumbers == \"onSurvey\") {\n startIndex += counter;\n }\n }\n super.setVisibleIndex(this.showQuestionNumbers != \"onSurvey\" ? value : -1);\n return this.showQuestionNumbers != \"onSurvey\" ? 1 : startIndex - value;\n }\n private setPanelVisibleIndex(\n panel: PanelModel,\n index: number,\n showIndex: boolean\n ): number {\n if (!showIndex) {\n panel.setVisibleIndex(-1);\n return 0;\n }\n return panel.setVisibleIndex(index);\n }\n\n /**\n * Returns true when an end user may add a new panel. The question is not read only and panelCount less than maxPanelCount\n * @see isReadOnly\n * @see panelCount\n * @see maxPanelCount\n */\n public get canAddPanel(): boolean {\n if (this.survey && this.survey.isDesignMode) return false;\n return (\n this.allowAddPanel &&\n !this.isReadOnly &&\n this.panelCount < this.maxPanelCount\n );\n }\n /**\n * Returns true when an end user may remove a panel. The question is not read only and panelCount is more than minPanelCount\n * @see isReadOnly\n * @see panelCount\n * @see minPanelCount\n */\n public get canRemovePanel(): boolean {\n if (this.survey && this.survey.isDesignMode) return false;\n return (\n this.allowRemovePanel &&\n !this.isReadOnly &&\n this.panelCount > this.minPanelCount\n );\n }\n protected rebuildPanels() {\n if (this.isLoadingFromJson) return;\n this.prepareValueForPanelCreating();\n var panels = [];\n if (this.isDesignMode) {\n new QuestionPanelDynamicItem(this, this.template);\n panels.push(this.template);\n } else {\n for (var i = 0; i < this.panelCount; i++) {\n panels.push(this.createNewPanel());\n }\n }\n this.panels.splice(0, this.panels.length, ...panels);\n this.setValueAfterPanelsCreating();\n this.setPanelsState();\n this.reRunCondition();\n this.fireCallback(this.panelCountChangedCallback);\n }\n /**\n * If it is not empty, then this value is set to every new panel, including panels created initially, unless the defaultValue is not empty\n * @see defaultValue\n * @see defaultValueFromLastRow\n */\n public get defaultPanelValue(): any {\n return this.getPropertyValue(\"defaultPanelValue\");\n }\n public set defaultPanelValue(val: any) {\n this.setPropertyValue(\"defaultPanelValue\", val);\n }\n /**\n * Set it to true to copy the value into new added panel from the last panel. If defaultPanelValue is set and this property equals to true,\n * then the value for new added panel is merging.\n * @see defaultValue\n * @see defaultPanelValue\n */\n public get defaultValueFromLastPanel(): boolean {\n return this.getPropertyValue(\"defaultValueFromLastPanel\", false);\n }\n public set defaultValueFromLastPanel(val: boolean) {\n this.setPropertyValue(\"defaultValueFromLastPanel\", val);\n }\n protected isDefaultValueEmpty(): boolean {\n return (\n super.isDefaultValueEmpty() && this.isValueEmpty(this.defaultPanelValue)\n );\n }\n protected setDefaultValue() {\n if (\n this.isValueEmpty(this.defaultPanelValue) ||\n !this.isValueEmpty(this.defaultValue)\n ) {\n super.setDefaultValue();\n return;\n }\n if (!this.isEmpty() || this.panelCount == 0) return;\n var newValue = [];\n for (var i = 0; i < this.panelCount; i++) {\n newValue.push(this.defaultPanelValue);\n }\n this.value = newValue;\n }\n public isEmpty(): boolean {\n var val = this.value;\n if (!val || !Array.isArray(val)) return true;\n for (var i = 0; i < val.length; i++) {\n if (!this.isRowEmpty(val[i])) return false;\n }\n return true;\n }\n public getProgressInfo(): IProgressInfo {\n return SurveyElement.getProgressInfoByElements(\n this.panels,\n this.isRequired\n );\n }\n private isRowEmpty(val: any) {\n for (var prop in val) {\n if (val.hasOwnProperty(prop)) return false;\n }\n return true;\n }\n\n /**\n * Add a new dynamic panel based on the template Panel. It checks if canAddPanel returns true and then calls addPanel method.\n * @see template\n * @see panelCount\n * @see panels\n * @see canAddPanel\n */\n public addPanelUI(): PanelModel {\n if (!this.canAddPanel) return null;\n var newPanel = this.addPanel();\n if (this.renderMode === \"list\" && this.panelsState !== \"default\") {\n newPanel.expand();\n }\n return newPanel;\n }\n /**\n * Add a new dynamic panel based on the template Panel.\n * @see template\n * @see panelCount\n * @see panels\n */\n public addPanel(): PanelModel {\n this.panelCount++;\n if (!this.isRenderModeList) {\n this.currentIndex = this.panelCount - 1;\n }\n var newValue = this.value;\n var hasModified = false;\n if (!this.isValueEmpty(this.defaultPanelValue)) {\n if (\n !!newValue &&\n Array.isArray(newValue) &&\n newValue.length == this.panelCount\n ) {\n hasModified = true;\n this.copyValue(newValue[newValue.length - 1], this.defaultPanelValue);\n }\n }\n if (\n this.defaultValueFromLastPanel &&\n !!newValue &&\n Array.isArray(newValue) &&\n newValue.length > 1 &&\n newValue.length == this.panelCount\n ) {\n hasModified = true;\n this.copyValue(\n newValue[newValue.length - 1],\n newValue[newValue.length - 2]\n );\n }\n if (hasModified) {\n this.value = newValue;\n }\n if (this.survey) this.survey.dynamicPanelAdded(this);\n return this.panels[this.panelCount - 1];\n }\n private copyValue(src: any, dest: any) {\n for (var key in dest) {\n src[key] = dest[key];\n }\n }\n /**\n * Call removePanel function. Do nothing is canRemovePanel returns false. If confirmDelete set to true, it shows the confirmation dialog first.\n * @param value a panel or panel index\n * @see removePanel\n * @see confirmDelete\n * @see confirmDeleteText\n * @see canRemovePanel\n *\n */\n public removePanelUI(value: any) {\n if (!this.canRemovePanel) return;\n if (!this.confirmDelete || confirmAction(this.confirmDeleteText)) {\n this.removePanel(value);\n }\n }\n /**\n * Goes to the next panel in the PanelDynamic\n *\n */\n public goToNextPanel() {\n if (this.renderMode !== \"list\" && this.currentPanel.hasErrors()) return;\n this.currentIndex++;\n }\n /**\n * Goes to the previous panel in the PanelDynamic\n *\n */\n public goToPrevPanel() {\n this.currentIndex--;\n }\n /**\n * Removes a dynamic panel from the panels array.\n * @param value a panel or panel index\n * @see panels\n * @see template\n */\n public removePanel(value: any) {\n var index = this.getPanelIndex(value);\n if (index < 0 || index >= this.panelCount) return;\n var panel = this.panels[index];\n this.panels.splice(index, 1);\n this.updateBindings(\"panelCount\", this.panelCount);\n var value = this.value;\n if (!value || !Array.isArray(value) || index >= value.length) return;\n this.isValueChangingInternally = true;\n value.splice(index, 1);\n this.value = value;\n this.fireCallback(this.panelCountChangedCallback);\n if (this.survey) this.survey.dynamicPanelRemoved(this, index, panel);\n this.isValueChangingInternally = false;\n }\n private getPanelIndex(val: any): number {\n if (Helpers.isNumber(val)) return val;\n var items = this.items;\n for (var i = 0; i < this.panels.length; i++) {\n if (this.panels[i] === val || items[i] === val) return i;\n }\n return -1;\n }\n public locStrsChanged() {\n super.locStrsChanged();\n var panels = this.panels;\n for (var i = 0; i < panels.length; i++) {\n panels[i].locStrsChanged();\n }\n }\n public clearIncorrectValues() {\n for (var i = 0; i < this.panels.length; i++) {\n this.clearIncorrectValuesInPanel(i);\n }\n }\n public clearErrors() {\n super.clearErrors();\n for (var i = 0; i < this.panels.length; i++) {\n this.panels[i].clearErrors();\n }\n }\n public getQuestionFromArray(name: string, index: number): IQuestion {\n if (index >= this.panelCount) return null;\n return this.panels[index].getQuestionByName(name);\n }\n private clearIncorrectValuesInPanel(index: number) {\n var panel = this.panels[index];\n panel.clearIncorrectValues();\n var val = this.value;\n var values = !!val && index < val.length ? val[index] : null;\n if (!values) return;\n var isChanged = false;\n for (var key in values) {\n if (this.getSharedQuestionFromArray(key, index)) continue;\n var q = panel.getQuestionByName(key);\n if (!!q) continue;\n if (\n this.iscorrectValueWithPostPrefix(panel, key, settings.commentPrefix) ||\n this.iscorrectValueWithPostPrefix(\n panel,\n key,\n settings.matrixTotalValuePostFix\n )\n )\n continue;\n delete values[key];\n isChanged = true;\n }\n if (isChanged) {\n val[index] = values;\n this.value = val;\n }\n }\n private iscorrectValueWithPostPrefix(\n panel: PanelModel,\n key: string,\n postPrefix: string\n ): boolean {\n if (key.indexOf(postPrefix) !== key.length - postPrefix.length)\n return false;\n return !!panel.getQuestionByName(key.substr(0, key.indexOf(postPrefix)));\n }\n public getSharedQuestionFromArray(\n name: string,\n panelIndex: number\n ): Question {\n return !!this.survey && !!this.valueName\n ? (\n this.survey.getQuestionByValueNameFromArray(\n this.valueName,\n name,\n panelIndex\n )\n )\n : null;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {\n var hasContext = !!context\n ? this.template.questions.indexOf(context) > -1\n : false;\n var prefixName = this.getValueName() + \"[0].\";\n var prefixText = this.processedTitle + \"[0].\";\n var panelObjs = new Array();\n var questions = this.template.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].addConditionObjectsByContext(panelObjs, context);\n }\n for (var i = 0; i < panelObjs.length; i++) {\n objects.push({\n name: prefixName + panelObjs[i].name,\n text: prefixText + panelObjs[i].text,\n question: panelObjs[i].question,\n });\n }\n if (hasContext) {\n for (var i = 0; i < panelObjs.length; i++) {\n if (panelObjs[i].question == context) continue;\n objects.push({\n name: \"panel.\" + panelObjs[i].name,\n text: \"panel.\" + panelObjs[i].text,\n question: panelObjs[i].question,\n });\n }\n }\n }\n public getConditionJson(operator: string = null, path: string = null): any {\n if (!path) return super.getConditionJson(operator, path);\n var questionName = path;\n var pos = path.indexOf(\".\");\n if (pos > -1) {\n questionName = path.substr(0, pos);\n path = path.substr(pos + 1);\n }\n var question = this.template.getQuestionByName(questionName);\n if (!question) return null;\n return question.getConditionJson(operator, path);\n }\n protected onReadOnlyChanged() {\n var readOnly = this.isReadOnly;\n this.template.readOnly = readOnly;\n for (var i = 0; i < this.panels.length; i++) {\n this.panels[i].readOnly = readOnly;\n }\n super.onReadOnlyChanged();\n }\n public onSurveyLoad() {\n this.template.readOnly = this.isReadOnly;\n this.template.onSurveyLoad();\n if (this.loadingPanelCount > 0) {\n this.panelCount = this.loadingPanelCount;\n }\n if (this.isDesignMode) {\n this.rebuildPanels();\n }\n this.setPanelsSurveyImpl();\n this.setPanelsState();\n this.assignOnPropertyChangedToTemplate();\n super.onSurveyLoad();\n }\n public onFirstRendering() {\n this.template.onFirstRendering();\n for (var i = 0; i < this.panels.length; i++) {\n this.panels[i].onFirstRendering();\n }\n super.onFirstRendering();\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n this.runPanelsCondition(values, properties);\n }\n private reRunCondition() {\n if (!this.data) return;\n this.runCondition(\n this.getDataFilteredValues(),\n this.getDataFilteredProperties()\n );\n }\n protected runPanelsCondition(\n values: HashTable,\n properties: HashTable\n ) {\n var cachedValues: { [index: string]: any } = {};\n if (values && values instanceof Object) {\n cachedValues = JSON.parse(JSON.stringify(values));\n }\n for (var i = 0; i < this.panels.length; i++) {\n var panelValues = this.getPanelItemData(this.panels[i].data);\n //Should be unique for every panel due async expression support\n var newValues = Helpers.createCopy(cachedValues);\n newValues[\n QuestionPanelDynamicItem.ItemVariableName.toLowerCase()\n ] = panelValues;\n newValues[QuestionPanelDynamicItem.IndexVariableName.toLowerCase()] = i;\n this.panels[i].runCondition(newValues, properties);\n }\n }\n onAnyValueChanged(name: string) {\n super.onAnyValueChanged(name);\n for (var i = 0; i < this.panels.length; i++) {\n this.panels[i].onAnyValueChanged(name);\n this.panels[i].onAnyValueChanged(\n QuestionPanelDynamicItem.ItemVariableName\n );\n }\n }\n private hasKeysDuplicated(fireCallback: boolean, rec: any = null) {\n var keyValues: Array = [];\n var res;\n for (var i = 0; i < this.panels.length; i++) {\n res =\n this.isValueDuplicated(this.panels[i], keyValues, rec, fireCallback) ||\n res;\n }\n return res;\n }\n private updatePanelsContainsErrors() {\n var question = this.changingValueQuestion;\n var parent = question.parent;\n while (!!parent) {\n parent.updateContainsErrors();\n parent = parent.parent;\n }\n this.updateContainsErrors();\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n if (this.isValueChangingInternally) return false;\n var res = false;\n if (!!this.changingValueQuestion) {\n var res = this.changingValueQuestion.hasErrors(fireCallback, rec);\n res = this.hasKeysDuplicated(fireCallback, rec) || res;\n this.updatePanelsContainsErrors();\n return res;\n } else {\n var errosInPanels = this.hasErrorInPanels(fireCallback, rec);\n return super.hasErrors(fireCallback) || errosInPanels;\n }\n }\n protected getContainsErrors(): boolean {\n var res = super.getContainsErrors();\n if (res) return res;\n var panels = this.panels;\n for (var i = 0; i < panels.length; i++) {\n if (panels[i].containsErrors) return true;\n }\n return false;\n }\n protected getIsAnswered(): boolean {\n if (!super.getIsAnswered()) return false;\n var panels = this.panels;\n for (var i = 0; i < panels.length; i++) {\n var visibleQuestions = >[];\n panels[i].addQuestionsToList(visibleQuestions, true);\n for (var j = 0; j < visibleQuestions.length; j++) {\n if (!visibleQuestions[j].isAnswered) return false;\n }\n }\n return true;\n }\n public clearValueIfInvisible() {\n for (var i = 0; i < this.panels.length; i++) {\n var questions = this.panels[i].questions;\n for (var j = 0; j < questions.length; j++) {\n questions[j].clearValueIfInvisible();\n }\n }\n super.clearValueIfInvisible();\n }\n protected getIsRunningValidators(): boolean {\n if (super.getIsRunningValidators()) return true;\n for (var i = 0; i < this.panels.length; i++) {\n var questions = this.panels[i].questions;\n for (var j = 0; j < questions.length; j++) {\n if (questions[j].isRunningValidators) return true;\n }\n }\n return false;\n }\n public getAllErrors(): Array {\n var result = super.getAllErrors();\n for (var i = 0; i < this.panels.length; i++) {\n var questions = this.panels[i].questions;\n for (var j = 0; j < questions.length; j++) {\n var errors = questions[j].getAllErrors();\n if (errors && errors.length > 0) {\n result = result.concat(errors);\n }\n }\n }\n return result;\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var values = this.createValueCopy();\n if (!values || !Array.isArray(values)) return values;\n for (var i = 0; i < this.panels.length && i < values.length; i++) {\n var val = values[i];\n if (!val) continue;\n values[i] = this.getPanelDisplayValue(i, val, keysAsText);\n }\n return values;\n }\n\n private getPanelDisplayValue(\n panelIndex: number,\n val: any,\n keysAsText: boolean\n ): any {\n if (!val) return val;\n var panel = this.panels[panelIndex];\n for (var key in val) {\n var question = panel.getQuestionByValueName(key);\n if (!question) {\n question = this.getSharedQuestionFromArray(key, panelIndex);\n }\n if (!!question) {\n val[key] = question.getDisplayValue(keysAsText);\n }\n }\n return val;\n }\n private hasErrorInPanels(fireCallback: boolean, rec: any): boolean {\n var res = false;\n var panels = this.panels;\n var keyValues: Array = [];\n for (var i = 0; i < panels.length; i++) {\n this.setOnCompleteAsyncInPanel(panels[i]);\n }\n for (var i = 0; i < panels.length; i++) {\n var pnlError = panels[i].hasErrors(\n fireCallback,\n !!rec && rec.focuseOnFirstError,\n rec\n );\n pnlError = this.isValueDuplicated(panels[i], keyValues, rec) || pnlError;\n if (!this.isRenderModeList && pnlError && !res) {\n this.currentIndex = i;\n }\n res = pnlError || res;\n }\n return res;\n }\n private setOnCompleteAsyncInPanel(panel: PanelModel) {\n var questions = panel.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].onCompletedAsyncValidators = (hasErrors: boolean) => {\n this.raiseOnCompletedAsyncValidators();\n };\n }\n }\n private isValueDuplicated(\n panel: PanelModel,\n keyValues: Array,\n rec: any,\n fireCallback?: boolean\n ): boolean {\n if (!this.keyName) return false;\n var question = panel.getQuestionByValueName(this.keyName);\n if (!question || question.isEmpty()) return false;\n var value = question.value;\n if (\n !!this.changingValueQuestion &&\n question != this.changingValueQuestion\n ) {\n question.hasErrors(fireCallback, rec);\n }\n for (var i = 0; i < keyValues.length; i++) {\n if (value == keyValues[i]) {\n question.addError(\n new KeyDuplicationError(this.keyDuplicationError, this)\n );\n if (!!rec && !rec.firstErrorQuestion) {\n rec.firstErrorQuestion = question;\n }\n return true;\n }\n }\n keyValues.push(value);\n return false;\n }\n protected createNewPanel(): PanelModel {\n var panel = this.createAndSetupNewPanelObject();\n var json = this.template.toJSON();\n new JsonObject().toObject(json, panel);\n panel.renderWidth = \"100%\";\n panel.updateCustomWidgets();\n new QuestionPanelDynamicItem(this, panel);\n panel.onFirstRendering();\n var questions = panel.questions;\n for (var i = 0; i < questions.length; i++) {\n questions[i].setParentQuestion(this);\n }\n return panel;\n }\n protected createAndSetupNewPanelObject(): PanelModel {\n var panel = this.createNewPanelObject();\n var self = this;\n panel.onGetQuestionTitleLocation = function() {\n return self.getTemplateQuestionTitleLocation();\n };\n return panel;\n }\n private getTemplateQuestionTitleLocation() {\n return this.templateTitleLocation != \"default\"\n ? this.templateTitleLocation\n : this.getTitleLocationCore();\n }\n protected createNewPanelObject(): PanelModel {\n return new PanelModel();\n }\n private setPanelCountBasedOnValue() {\n if (this.isValueChangingInternally || this.isDesignMode) return;\n var val = this.value;\n var newPanelCount = val && Array.isArray(val) ? val.length : 0;\n if (newPanelCount == 0 && this.loadingPanelCount > 0) {\n newPanelCount = this.loadingPanelCount;\n }\n this.panelCount = newPanelCount;\n }\n public setQuestionValue(newValue: any) {\n super.setQuestionValue(newValue, false);\n this.setPanelCountBasedOnValue();\n for (var i = 0; i < this.panels.length; i++) {\n this.panelUpdateValueFromSurvey(this.panels[i]);\n }\n this.updateIsAnswered();\n }\n public onSurveyValueChanged(newValue: any) {\n super.onSurveyValueChanged(newValue);\n for (var i = 0; i < this.panels.length; i++) {\n this.panelSurveyValueChanged(this.panels[i]);\n }\n if (newValue === undefined) {\n this.setValueBasedOnPanelCount();\n }\n }\n private panelUpdateValueFromSurvey(panel: PanelModel) {\n var questions = panel.questions;\n var values = this.getPanelItemData(panel.data);\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n q.updateValueFromSurvey(values[q.getValueName()]);\n q.updateCommentFromSurvey(\n values[q.getValueName() + settings.commentPrefix]\n );\n }\n }\n private panelSurveyValueChanged(panel: PanelModel) {\n var questions = panel.questions;\n var values = this.getPanelItemData(panel.data);\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n q.onSurveyValueChanged(values[q.getValueName()]);\n }\n }\n protected onSetData() {\n super.onSetData();\n if (this.isDesignMode) {\n this.setTemplatePanelSurveyImpl();\n this.rebuildPanels();\n }\n }\n //IQuestionPanelDynamicData\n getItemIndex(item: ISurveyData): number {\n var res = this.items.indexOf(item);\n return res > -1 ? res : this.items.length;\n }\n getPanelItemData(item: ISurveyData): any {\n var items = this.items;\n var index = items.indexOf(item);\n var qValue = this.value;\n if (index < 0 && Array.isArray(qValue) && qValue.length > items.length) {\n index = items.length;\n }\n if (index < 0) return {};\n if (!qValue || !Array.isArray(qValue) || qValue.length <= index) return {};\n return qValue[index];\n }\n private isSetPanelItemData: Array;\n setPanelItemData(item: ISurveyData, name: string, val: any) {\n if (this.isSetPanelItemData && this.isSetPanelItemData.indexOf(name) > -1)\n return;\n if (!this.isSetPanelItemData) this.isSetPanelItemData = [];\n this.isSetPanelItemData.push(name);\n var items = this.items;\n var index = items.indexOf(item);\n if (index < 0) index = items.length;\n var qValue = this.getUnbindValue(this.value);\n if (!qValue || !Array.isArray(qValue)) {\n qValue = [];\n }\n if (qValue.length <= index) {\n for (var i = qValue.length; i <= index; i++) {\n qValue.push({});\n }\n }\n if (!qValue[index]) qValue[index] = {};\n if (!this.isValueEmpty(val)) {\n qValue[index][name] = val;\n } else {\n delete qValue[index][name];\n }\n if (index >= 0 && index < this.panels.length) {\n this.changingValueQuestion = this.panels[index].getQuestionByValueName(\n name\n );\n }\n this.value = qValue;\n this.changingValueQuestion = null;\n if (this.survey) {\n var options = {\n question: this,\n panel: (item).panel,\n name: name,\n itemIndex: index,\n itemValue: qValue[index],\n value: val,\n };\n this.survey.dynamicPanelItemValueChanged(this, options);\n }\n var index = this.isSetPanelItemData.indexOf(name);\n if (index > -1) {\n this.isSetPanelItemData.splice(index, 1);\n }\n }\n getRootData(): ISurveyData {\n return this.data;\n }\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n }\n ) {\n var questionPlainData = super.getPlainData(options);\n if (!!questionPlainData) {\n questionPlainData.isNode = true;\n questionPlainData.data = this.panels.map(\n (panel: PanelModel, index: number) => {\n var panelDataItem = {\n name: panel.name || index,\n title: panel.title || \"Panel\",\n value: panel.getValue(),\n displayValue: panel.getValue(),\n getString: (val: any) =>\n typeof val === \"object\" ? JSON.stringify(val) : val,\n isNode: true,\n data: panel.questions\n .map((question: Question) => question.getPlainData(options))\n .filter((d: any) => !!d),\n };\n (options.calculations || []).forEach(calculation => {\n panelDataItem[calculation.propertyName] = (panel)[\n calculation.propertyName\n ];\n });\n return panelDataItem;\n }\n );\n }\n return questionPlainData;\n }\n public updateElementCss() {\n super.updateElementCss();\n for (var i = 0; i < this.panels.length; i++) {\n var el = this.panels[i];\n el.updateElementCss();\n }\n }\n public get progressText(): string {\n var rangeMax = this.panelCount;\n return surveyLocalization\n .getString(\"panelDynamicProgressText\")\n [\"format\"](this.currentIndex + 1, rangeMax);\n }\n public getPanelWrapperCss(): string {\n let cssClasses = this.cssClasses.panelWrapper;\n if (this.panelRemoveButtonLocation === \"right\") {\n cssClasses += \" \" + this.cssClasses.panelWrapperInRow;\n }\n return cssClasses;\n }\n public getPanelRemoveButtonCss(): string {\n let cssClasses =\n this.cssClasses.button + \" \" + this.cssClasses.buttonRemove;\n if (this.panelRemoveButtonLocation === \"right\") {\n cssClasses += \" \" + this.cssClasses.buttonRemoveRight;\n }\n return cssClasses;\n }\n}\n\nSerializer.addClass(\n \"paneldynamic\",\n [\n {\n name: \"templateElements\",\n alternativeName: \"questions\",\n visible: false,\n isLightSerializable: false,\n },\n { name: \"templateTitle:text\", serializationProperty: \"locTemplateTitle\" },\n {\n name: \"templateDescription:text\",\n serializationProperty: \"locTemplateDescription\",\n },\n { name: \"allowAddPanel:boolean\", default: true },\n { name: \"allowRemovePanel:boolean\", default: true },\n {\n name: \"panelCount:number\",\n isBindable: true,\n default: 0,\n choices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\n },\n { name: \"minPanelCount:number\", default: 0, minValue: 0 },\n {\n name: \"maxPanelCount:number\",\n default: settings.panelMaximumPanelCount,\n },\n \"defaultPanelValue:panelvalue\",\n \"defaultValueFromLastPanel:boolean\",\n {\n name: \"panelsState\",\n default: \"default\",\n choices: [\"default\", \"collapsed\", \"expanded\", \"firstExpanded\"],\n },\n { name: \"keyName\" },\n {\n name: \"keyDuplicationError\",\n serializationProperty: \"locKeyDuplicationError\",\n },\n { name: \"confirmDelete:boolean\" },\n {\n name: \"confirmDeleteText\",\n serializationProperty: \"locConfirmDeleteText\",\n },\n { name: \"panelAddText\", serializationProperty: \"locPanelAddText\" },\n { name: \"panelRemoveText\", serializationProperty: \"locPanelRemoveText\" },\n { name: \"panelPrevText\", serializationProperty: \"locPanelPrevText\" },\n { name: \"panelNextText\", serializationProperty: \"locPanelNextText\" },\n {\n name: \"showQuestionNumbers\",\n default: \"off\",\n choices: [\"off\", \"onPanel\", \"onSurvey\"],\n },\n { name: \"showRangeInProgress:boolean\", default: true },\n {\n name: \"renderMode\",\n default: \"list\",\n choices: [\"list\", \"progressTop\", \"progressBottom\", \"progressTopBottom\"],\n },\n {\n name: \"templateTitleLocation\",\n default: \"default\",\n choices: [\"default\", \"top\", \"bottom\", \"left\"],\n },\n {\n name: \"panelRemoveButtonLocation\",\n default: \"left\",\n choices: [\"bottom\", \"right\"],\n },\n ],\n function() {\n return new QuestionPanelDynamicModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"paneldynamic\", name => {\n return new QuestionPanelDynamicModel(name);\n});\n","import { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionCheckboxBase } from \"./question_baseselect\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { ItemValue } from \"./itemvalue\";\n\n/**\n * A Model for a radiogroup question.\n */\nexport class QuestionRadiogroupModel extends QuestionCheckboxBase {\n constructor(name: string) {\n super(name);\n }\n public getType(): string {\n return \"radiogroup\";\n }\n protected getFirstInputElementId(): string {\n return this.inputId + \"_0\";\n }\n public get selectedItem(): ItemValue {\n if (this.isEmpty()) return null;\n return ItemValue.getItemByValue(this.visibleChoices, this.value);\n }\n /**\n * Show \"clear button\" flag.\n */\n public get showClearButton(): boolean {\n return this.getPropertyValue(\"showClearButton\", false);\n }\n public set showClearButton(val: boolean) {\n this.setPropertyValue(\"showClearButton\", val);\n }\n public get canShowClearButton(): boolean {\n return this.showClearButton && !this.isReadOnly;\n }\n public get clearButtonCaption() {\n return surveyLocalization.getString(\"clearCaption\");\n }\n supportGoNextPageAutomatic() {\n return true;\n }\n getItemClass(item: any) {\n var itemClass = this.cssClasses.item;\n var isDisabled = this.isReadOnly || !item.isEnabled;\n var isChecked =\n item.value === this.value ||\n (this.isOtherSelected && this.otherItem.value === item.value);\n var allowHover = !isDisabled && !isChecked;\n var isNone = item === this.noneItem;\n if (!this.hasColumns) {\n itemClass +=\n this.colCount === 0\n ? \" \" + this.cssClasses.itemInline\n : \" sv-q-col-\" + this.colCount;\n }\n if (isDisabled && !!this.cssClasses.itemDisabled)\n itemClass += \" \" + this.cssClasses.itemDisabled;\n if (isChecked && !!this.cssClasses.itemChecked)\n itemClass += \" \" + this.cssClasses.itemChecked;\n if (allowHover && !!this.cssClasses.itemHover)\n itemClass += \" \" + this.cssClasses.itemHover;\n if (isNone && !!this.cssClasses.itemNone)\n itemClass += \" \" + this.cssClasses.itemNone;\n return itemClass;\n }\n}\n\nSerializer.addClass(\n \"radiogroup\",\n [{ name: \"showClearButton:boolean\", default: false }],\n function() {\n return new QuestionRadiogroupModel(\"\");\n },\n \"checkboxbase\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"radiogroup\", name => {\n var q = new QuestionRadiogroupModel(name);\n q.choices = QuestionFactory.DefaultChoices;\n return q;\n});\n","import SortableLib from \"sortablejs\";\nimport { ItemValue } from \"./itemvalue\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionCheckboxModel } from \"./question_checkbox\";\nimport { IsMobile } from \"./utils/is-mobile\";\n\nconst Sortable = SortableLib;\n\n/**\n * A Model for a ranking question\n */\nexport class QuestionRankingModel extends QuestionCheckboxModel {\n private domNode: HTMLElement = null;\n private sortableInst: any = null;\n\n constructor(name: string) {\n super(name);\n }\n\n public getType(): string {\n return \"ranking\";\n }\n\n public get isIndeterminate() {\n return !this.value || this.value.length === 0;\n }\n\n public get rootClass() {\n const css: any = this.cssClasses;\n if (IsMobile) return css.root + \" \" + css.rootMobileMod;\n return css.root;\n }\n\n public getNumberByIndex(index: number) {\n return this.isIndeterminate ? \"\\u2013\" : index + 1 + \"\";\n }\n\n public get rankingChoices() {\n const value: any = this.value;\n const visibleChoices: ItemValue[] = this.visibleChoices;\n if (this.isIndeterminate) {\n return visibleChoices;\n }\n return this.mergeValueAndVisibleChoices(value, visibleChoices);\n }\n\n //cross framework initialization\n public afterRenderQuestionElement(el: HTMLElement) {\n if (!!el) {\n this.initSortable(el);\n }\n super.afterRenderQuestionElement(el);\n }\n //cross framework destroy\n public beforeDestroyQuestionElement(el: HTMLElement) {\n if (this.sortableInst) this.sortableInst.destroy();\n super.beforeDestroyQuestionElement(el);\n }\n\n public handleKeydown = (event: any) => {\n const key: any = event.key;\n const array: NodeListOf = this.domNode.querySelectorAll(\".\" + this.cssClasses.item);\n const index: number = [].indexOf.call(array, event.target);\n\n if (key === \"ArrowUp\" && index) {\n this.handleArrowUp(index);\n }\n if (key === \"ArrowDown\" && index !== array.length - 1) {\n this.handleArrowDown(index);\n }\n };\n\n // to make \"carry forward\" feature work properly with ranking\n protected onVisibleChoicesChanged() {\n super.onVisibleChoicesChanged();\n const otherQuestionActiveChoices: any = (this).otherQuestionActiveChoices;\n\n if (this.isIndeterminate || !otherQuestionActiveChoices) return;\n if (otherQuestionActiveChoices.length === 0) {\n this.value = [];\n } else {\n this.value = this.rankingChoices.map((choice) => choice.text);\n }\n }\n\n private mergeValueAndVisibleChoices(value: any, visibleChoices: Array) {\n const length: number = visibleChoices.length;\n let result: Array = [];\n result.length = length;\n for (let i = 0; i < length; i++) {\n const choice = visibleChoices[i];\n const index = value.indexOf(choice.text);\n\n if (index !== -1) {\n result.splice(index, 1, choice);\n } else {\n result.splice(result.length - 1, 0, choice);\n }\n }\n result = result.filter((choice) => !!choice);\n return result;\n }\n\n private initSortable(domNode: HTMLElement) {\n if (!domNode) return;\n const self: QuestionRankingModel = this;\n self.domNode = domNode;\n if (this.isReadOnly) return;\n if (this.isDesignMode) return;\n\n self.sortableInst = new Sortable(domNode, {\n animation: 100,\n forceFallback: true,\n delay: 200,\n delayOnTouchOnly: true,\n handle: IsMobile\n ? \".\" + self.cssClasses.itemIconContainer\n : \".\" + self.cssClasses.itemContent,\n ghostClass: self.cssClasses.itemGhostMod,\n dragClass: self.cssClasses.itemDragMod,\n onStart(evt: any) {\n (Sortable.ghost.style.opacity) = 1;\n domNode.className += \" \" + self.cssClasses.rootDragMod;\n if (self.isIndeterminate) {\n self.setGhostText(evt.oldIndex + 1);\n }\n },\n onEnd() {\n domNode.className = domNode.className.replace(\n \" \" + self.cssClasses.rootDragMod,\n \"\"\n );\n self.setValueFromUI();\n },\n onChange(evt: any) {\n if (!self.isIndeterminate) self.syncNumbers();\n self.setGhostText(evt.newIndex + 1);\n }\n });\n }\n\n private handleArrowUp = (index: number) => {\n const array: string[] = this.sortableInst.toArray();\n this.moveArrayItemBack(array, index);\n this.sortableInst.sort(array);\n this.syncNumbers();\n this.setValueFromUI();\n this.focusItem(index - 1);\n };\n\n private handleArrowDown = (index: number) => {\n const array: string[] = this.sortableInst.toArray();\n this.moveArrayItemForward(array, index);\n this.sortableInst.sort(array);\n this.syncNumbers();\n this.setValueFromUI();\n this.focusItem(index + 1);\n };\n\n private moveArrayItemBack = (array: string[], index: number) => {\n [array[index], array[index - 1]] = [array[index - 1], array[index]];\n };\n\n private moveArrayItemForward = (array: string[], index: number) => {\n [array[index], array[index + 1]] = [array[index + 1], array[index]];\n };\n\n private focusItem = (index: number) => {\n const itemsNodes: any = this.domNode.\n querySelectorAll(\".\" + this.cssClasses.item);\n itemsNodes[index].focus();\n };\n\n private setValueFromUI = () => {\n const value: string[] = [];\n const textNodes = this.domNode.querySelectorAll(\n \".\" + this.cssClasses.controlLabel\n );\n textNodes.forEach((textNode: any, index) => {\n const innerText: string = textNode.innerText;\n this.visibleChoices.forEach((visibleChoice: ItemValue) => {\n if (innerText === visibleChoice.text) {\n value.push(visibleChoice.value);\n }\n });\n });\n this.value = value;\n };\n\n private syncNumbers = () => {\n if (!this.domNode) return;\n const selector: string = \".\" + this.cssClasses.item +\n \":not(.\" + this.cssClasses.itemDragMod + \")\" + \n \" .\" + this.cssClasses.itemIndex;\n\n const indexNodes: NodeListOf = this.domNode.querySelectorAll(selector);\n indexNodes.forEach((indexNode: any, index) => {\n indexNode.innerText = this.getNumberByIndex(index);\n });\n };\n\n private setGhostText = (text: string) => {\n const indexNodes: NodeListOf = this.domNode.\n querySelectorAll(\".\" + this.cssClasses.itemIndex);\n const ghostNode: Element = indexNodes[indexNodes.length - 1];\n (ghostNode).innerText = text;\n };\n}\n\nSerializer.addClass(\n \"ranking\",\n [\n { name: \"hasNone\", visible: false },\n { name: \"noneText\", visible: false },\n { name: \"hasSelectAll\", visible: false },\n { name: \"selectAllText\", visible: false },\n { name: \"colCount:number\", visible: false },\n ],\n function () {\n return new QuestionRankingModel(\"\");\n },\n \"checkbox\"\n);\nQuestionFactory.Instance.registerQuestion(\"ranking\", (name) => {\n const q: QuestionRankingModel = new QuestionRankingModel(name);\n q.choices = QuestionFactory.DefaultChoices;\n return q;\n});\n","import { ItemValue } from \"./itemvalue\";\nimport { Question } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { LocalizableString } from \"./localizablestring\";\nimport { settings } from \"./settings\";\n\n/**\n * A Model for a rating question.\n */\nexport class QuestionRatingModel extends Question {\n rateValuesChangedCallback: () => void;\n\n constructor(name: string) {\n super(name);\n this.createItemValues(\"rates\");\n var self = this;\n this.registerFunctionOnPropertyValueChanged(\"rates\", function () {\n self.fireCallback(self.rateValuesChangedCallback);\n });\n this.onPropertyChanged.add(function (sender: any, options: any) {\n if (\n options.name == \"rateMin\" ||\n options.name == \"rateMax\" ||\n options.name == \"rateStep\"\n ) {\n self.fireCallback(self.rateValuesChangedCallback);\n }\n });\n\n var locMinRateDescriptionValue = this.createLocalizableString(\n \"minRateDescription\",\n this,\n true\n );\n var locMaxRateDescriptionValue = this.createLocalizableString(\n \"maxRateDescription\",\n this,\n true\n );\n locMinRateDescriptionValue.onGetTextCallback = function (text) {\n return text ? text + \" \" : text;\n };\n locMaxRateDescriptionValue.onGetTextCallback = function (text) {\n return text ? \" \" + text : text;\n };\n }\n public onSurveyLoad() {\n super.onSurveyLoad();\n this.fireCallback(this.rateValuesChangedCallback);\n }\n /**\n * The list of rate items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown. If it is empty the array is generated by using rateMin, rateMax and rateStep properties.\n * @see rateMin\n * @see rateMax\n * @see rateStep\n */\n public get rateValues(): Array {\n return this.getPropertyValue(\"rates\");\n }\n public set rateValues(val: Array) {\n this.setPropertyValue(\"rates\", val);\n }\n /**\n * This property is used to generate rate values if rateValues array is empty. It is the first value in the rating. The default value is 1.\n * @see rateValues\n * @see rateMax\n * @see rateStep\n */\n public get rateMin(): number {\n return this.getPropertyValue(\"rateMin\");\n }\n public set rateMin(val: number) {\n if (!this.isLoadingFromJson && val > this.rateMax - this.rateStep)\n val = this.rateMax - this.rateStep;\n this.setPropertyValue(\"rateMin\", val);\n }\n /**\n * This property is used to generate rate values if rateValues array is empty. It is the last value in the rating. The default value is 5.\n * @see rateValues\n * @see rateMin\n * @see rateStep\n */\n public get rateMax(): number {\n return this.getPropertyValue(\"rateMax\");\n }\n public set rateMax(val: number) {\n if (!this.isLoadingFromJson && val < this.rateMin + this.rateStep)\n val = this.rateMin + this.rateStep;\n this.setPropertyValue(\"rateMax\", val);\n }\n /**\n * This property is used to generate rate values if rateValues array is empty. It is the step value. The number of rate values are (rateMax - rateMin) / rateStep. The default value is 1.\n * @see rateValues\n * @see rateMin\n * @see rateMax\n */\n public get rateStep(): number {\n return this.getPropertyValue(\"rateStep\");\n }\n public set rateStep(val: number) {\n if (val <= 0) val = 1;\n if (!this.isLoadingFromJson && val > this.rateMax - this.rateMin)\n val = this.rateMax - this.rateMin;\n this.setPropertyValue(\"rateStep\", val);\n }\n protected getDisplayValueCore(keysAsText: boolean, value: any): any {\n var res = ItemValue.getTextOrHtmlByValue(this.visibleRateValues, value);\n return !!res ? res : value;\n }\n get visibleRateValues(): ItemValue[] {\n if (this.rateValues.length > 0) return this.rateValues;\n var res = [];\n var value = this.rateMin;\n var step = this.rateStep;\n while (\n value <= this.rateMax &&\n res.length < settings.ratingMaximumRateValueCount\n ) {\n res.push(new ItemValue(value));\n value = this.correctValue(value + step, step);\n }\n return res;\n }\n private correctValue(value: number, step: number): number {\n if (!value) return value;\n if (Math.round(value) == value) return value;\n var fr = 0;\n while (Math.round(step) != step) {\n step *= 10;\n fr++;\n }\n return parseFloat(value.toFixed(fr));\n }\n public getType(): string {\n return \"rating\";\n }\n protected getFirstInputElementId(): string {\n return this.inputId + \"_0\";\n }\n supportGoNextPageAutomatic() {\n return true;\n }\n public supportComment(): boolean {\n return true;\n }\n public supportOther(): boolean {\n return true;\n }\n /**\n * The description of minimum (first) item.\n */\n public get minRateDescription(): string {\n return this.getLocalizableStringText(\"minRateDescription\");\n }\n public set minRateDescription(val: string) {\n this.setLocalizableStringText(\"minRateDescription\", val);\n }\n get locMinRateDescription(): LocalizableString {\n return this.getLocalizableString(\"minRateDescription\");\n }\n /**\n * The description of maximum (last) item.\n */\n public get maxRateDescription(): string {\n return this.getLocalizableStringText(\"maxRateDescription\");\n }\n public set maxRateDescription(val: string) {\n this.setLocalizableStringText(\"maxRateDescription\", val);\n }\n get locMaxRateDescription(): LocalizableString {\n return this.getLocalizableString(\"maxRateDescription\");\n }\n protected valueToData(val: any): any {\n if (this.rateValues.length > 0) {\n var item = ItemValue.getItemByValue(this.rateValues, val);\n return !!item ? item.value : val;\n }\n return !isNaN(val) ? parseFloat(val) : val;\n }\n}\nSerializer.addClass(\n \"rating\",\n [\n { name: \"hasComment:switch\", layout: \"row\" },\n {\n name: \"commentText\",\n dependsOn: \"hasComment\",\n visibleIf: function (obj: any) {\n return obj.hasComment;\n },\n serializationProperty: \"locCommentText\",\n layout: \"row\",\n },\n {\n name: \"rateValues:itemvalue[]\",\n },\n { name: \"rateMin:number\", default: 1 },\n { name: \"rateMax:number\", default: 5 },\n { name: \"rateStep:number\", default: 1, minValue: 0.1 },\n {\n name: \"minRateDescription\",\n alternativeName: \"mininumRateDescription\",\n serializationProperty: \"locMinRateDescription\",\n },\n {\n name: \"maxRateDescription\",\n alternativeName: \"maximumRateDescription\",\n serializationProperty: \"locMaxRateDescription\",\n },\n ],\n function () {\n return new QuestionRatingModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"rating\", (name) => {\n return new QuestionRatingModel(name);\n});\n","import { Serializer } from \"./jsonobject\";\nimport { Question } from \"./question\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport SignaturePad from \"signature_pad\";\nimport { QuestionFactory } from \"./questionfactory\";\n\nvar defaultWidth = 300;\nvar defaultHeight = 200;\n\nfunction resizeCanvas(canvas: HTMLCanvasElement) {\n var context: any = canvas.getContext(\"2d\");\n var devicePixelRatio = window.devicePixelRatio || 1;\n var backingStoreRatio =\n context.webkitBackingStorePixelRatio ||\n context.mozBackingStorePixelRatio ||\n context.msBackingStorePixelRatio ||\n context.oBackingStorePixelRatio ||\n context.backingStorePixelRatio ||\n 1;\n\n var ratio = devicePixelRatio / backingStoreRatio;\n\n var oldWidth = canvas.width;\n var oldHeight = canvas.height;\n\n canvas.width = oldWidth * ratio;\n canvas.height = oldHeight * ratio;\n\n canvas.style.width = oldWidth + \"px\";\n canvas.style.height = oldHeight + \"px\";\n\n context.scale(ratio, ratio);\n}\n\n/**\n * A Model for signature pad question.\n */\nexport class QuestionSignaturePadModel extends Question {\n protected getCssRoot(cssClasses: any): string {\n var classes = super.getCssRoot(cssClasses);\n if (\"\" + this.width === \"300\") {\n classes += \" \" + cssClasses.small;\n }\n return classes;\n }\n\n protected updateValue() {\n if (this.signaturePad) {\n var data = this.signaturePad.toDataURL(this.dataFormat);\n this.value = data;\n }\n }\n\n constructor(name: string) {\n super(name);\n }\n public getType(): string {\n return \"signaturepad\";\n }\n public afterRenderQuestionElement(el: HTMLElement) {\n if (!!el) {\n this.initSignaturePad(el);\n }\n super.afterRenderQuestionElement(el);\n }\n public beforeDestroyQuestionElement(el: HTMLElement) {\n if (!!el) {\n this.destroySignaturePad(el);\n }\n }\n\n initSignaturePad(el: HTMLElement) {\n var canvas: any = el.getElementsByTagName(\"canvas\")[0];\n var buttonEl = el.getElementsByTagName(\"button\")[0];\n var signaturePad = new SignaturePad(canvas, { backgroundColor: \"#ffffff\" });\n if (this.isReadOnly) {\n signaturePad.off();\n }\n\n buttonEl.onclick = () => {\n this.value = undefined;\n };\n\n this.readOnlyChangedCallback = () => {\n if (!this.allowClear || this.isReadOnly) {\n signaturePad.off();\n buttonEl.style.display = \"none\";\n } else {\n signaturePad.on();\n buttonEl.style.display = \"block\";\n }\n };\n\n signaturePad.penColor = this.penColor;\n signaturePad.onBegin = () => {\n canvas.focus();\n };\n signaturePad.onEnd = () => {\n this.updateValue();\n };\n var updateValueHandler = () => {\n var data = this.value;\n canvas.width = this.width || defaultWidth;\n canvas.height = this.height || defaultHeight;\n resizeCanvas(canvas);\n if (!data) {\n signaturePad.clear();\n } else {\n signaturePad.fromDataURL(data);\n }\n };\n this.valueChangedCallback = updateValueHandler;\n updateValueHandler();\n this.readOnlyChangedCallback();\n this.signaturePad = signaturePad;\n var propertyChangedHandler = (sender: any, options: any) => {\n if (options.name === \"width\" || options.name === \"height\") {\n updateValueHandler();\n }\n };\n this.onPropertyChanged.add(propertyChangedHandler);\n this.signaturePad.propertyChangedHandler = propertyChangedHandler;\n }\n destroySignaturePad(el: HTMLElement) {\n if (this.signaturePad) {\n this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler);\n this.signaturePad.off();\n }\n this.readOnlyChangedCallback = null;\n this.signaturePad = null;\n }\n\n /**\n * Use it to set the specific dataFormat for the signature pad image data.\n * formats: \"\" (default) - png, \"image/jpeg\" - jpeg, \"image/svg+xml\" - svg\n */\n public get dataFormat(): string {\n return this.getPropertyValue(\"dataFormat\", \"\");\n }\n public set dataFormat(val: string) {\n this.setPropertyValue(\"dataFormat\", val);\n }\n\n /**\n * Use it to set the specific width for the signature pad.\n */\n public get width(): string {\n return this.getPropertyValue(\"width\", 300);\n }\n public set width(val: string) {\n this.setPropertyValue(\"width\", val);\n }\n /**\n * Use it to set the specific height for the signature pad.\n */\n public get height(): string {\n return this.getPropertyValue(\"height\", 200);\n }\n public set height(val: string) {\n this.setPropertyValue(\"height\", val);\n }\n /**\n * Use it to clear content of the signature pad.\n */\n public get allowClear(): boolean {\n return this.getPropertyValue(\"allowClear\", true);\n }\n public set allowClear(val: boolean) {\n this.setPropertyValue(\"allowClear\", val);\n }\n /**\n * Use it to set pen color for the signature pad.\n */\n public get penColor(): string {\n return this.getPropertyValue(\"penColor\", \"#1ab394\");\n }\n public set penColor(val: string) {\n this.setPropertyValue(\"penColor\", val);\n }\n /**\n * The clear signature button caption.\n */\n get clearButtonCaption(): string {\n return surveyLocalization.getString(\"clearCaption\");\n }\n}\n\nSerializer.addClass(\n \"signaturepad\",\n [\n {\n name: \"width:number\",\n category: \"general\",\n default: 300,\n },\n {\n name: \"height:number\",\n category: \"general\",\n default: 200,\n },\n {\n name: \"allowClear:boolean\",\n category: \"general\",\n default: true,\n },\n {\n name: \"penColor:color\",\n category: \"general\",\n default: \"#1ab394\",\n },\n {\n name: \"dataFormat\",\n category: \"general\",\n default: \"\",\n choices: [\n { value: \"\", text: \"PNG\" },\n { value: \"image/jpeg\", text: \"JPEG\" },\n { value: \"image/svg+xml\", text: \"SVG\" },\n ],\n },\n { name: \"defaultValue\", visible: false },\n { name: \"correctAnswer\", visible: false },\n ],\n function () {\n return new QuestionSignaturePadModel(\"\");\n },\n \"question\"\n);\nQuestionFactory.Instance.registerQuestion(\"signaturepad\", (name) => {\n return new QuestionSignaturePadModel(name);\n});\n","import { QuestionFactory } from \"./questionfactory\";\nimport { Serializer } from \"./jsonobject\";\nimport { Question } from \"./question\";\nimport { LocalizableString, LocalizableStrings } from \"./localizablestring\";\nimport { Helpers, HashTable } from \"./helpers\";\nimport { EmailValidator, SurveyValidator } from \"./validator\";\nimport { SurveyError } from \"./base\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { CustomError } from \"./error\";\nimport { settings } from \"./settings\";\n\n/**\n * A Model for an input text question.\n */\nexport class QuestionTextModel extends Question {\n private locDataListValue: LocalizableStrings;\n constructor(name: string) {\n super(name);\n this.createLocalizableString(\"placeHolder\", this);\n this.createLocalizableString(\"minErrorText\", this, true);\n this.createLocalizableString(\"maxErrorText\", this, true);\n this.locDataListValue = new LocalizableStrings(this);\n this.registerFunctionOnPropertiesValueChanged(\n [\"min\", \"max\", \"inputType\", \"minValueExpression\", \"maxValueExpression\"],\n () => {\n this.setRenderedMinMax();\n }\n );\n this.registerFunctionOnPropertiesValueChanged([\"inputType\", \"size\"], () => {\n this.updateInputSize();\n });\n }\n protected isTextValue(): boolean {\n return [\"text\", \"number\", \"password\"].indexOf(this.inputType) > -1;\n }\n public getType(): string {\n return \"text\";\n }\n public onSurveyLoad() {\n super.onSurveyLoad();\n this.setRenderedMinMax();\n this.updateInputSize();\n }\n /**\n * Use this property to change the default input type.\n */\n public get inputType(): string {\n return this.getPropertyValue(\"inputType\");\n }\n public set inputType(val: string) {\n val = val.toLowerCase();\n if (val == \"datetime_local\") val = \"datetime-local\";\n this.setPropertyValue(\"inputType\", val.toLowerCase());\n if (!this.isLoadingFromJson) {\n this.min = undefined;\n this.max = undefined;\n this.step = undefined;\n }\n }\n public runCondition(values: HashTable, properties: HashTable) {\n super.runCondition(values, properties);\n if (!!this.minValueExpression || !!this.maxValueExpression) {\n this.setRenderedMinMax(values, properties);\n }\n }\n /**\n * Gets or sets a value that specifies how the question updates it's value.\n *\n * The following options are available:\n * - `default` - get the value from survey.textUpdateMode\n * - `onBlur` - the value is updated after an input loses the focus.\n * - `onTyping` - update the value of text questions, \"text\" and \"comment\", on every key press.\n *\n * Note, that setting to \"onTyping\" may lead to a performance degradation, in case you have many expressions in the survey.\n * @see survey.textUpdateMode\n */\n public get textUpdateMode(): string {\n return this.getPropertyValue(\"textUpdateMode\");\n }\n public set textUpdateMode(val: string) {\n this.setPropertyValue(\"textUpdateMode\", val);\n }\n public get isSurveyInputTextUpdate(): boolean {\n if (this.textUpdateMode == \"default\")\n return !!this.survey ? this.survey.isUpdateValueTextOnTyping : false;\n return this.textUpdateMode == \"onTyping\";\n }\n public getValidators(): Array {\n var validators = super.getValidators();\n if (\n this.inputType === \"email\" &&\n !this.validators.some(v => v.getType() === \"emailvalidator\")\n ) {\n validators.push(new EmailValidator());\n }\n return validators;\n }\n isLayoutTypeSupported(layoutType: string): boolean {\n return true;\n }\n /**\n * The maximum text length. If it is -1, defaul value, then the survey maxTextLength property will be used.\n * If it is 0, then the value is unlimited\n * @see SurveyModel.maxTextLength\n */\n public get maxLength(): number {\n return this.getPropertyValue(\"maxLength\");\n }\n public set maxLength(val: number) {\n this.setPropertyValue(\"maxLength\", val);\n }\n public getMaxLength(): any {\n return Helpers.getMaxLength(\n this.maxLength,\n this.survey ? this.survey.maxTextLength : -1\n );\n }\n /**\n * The text input size\n */\n public get size(): number {\n return this.getPropertyValue(\"size\");\n }\n public set size(val: number) {\n this.setPropertyValue(\"size\", val);\n }\n public get isTextInput() {\n return (\n [\"text\", \"search\", \"tel\", \"url\", \"email\", \"password\"].indexOf(\n this.inputType\n ) > -1\n );\n }\n public get inputSize(): number {\n return this.getPropertyValue(\"inputSize\", 0);\n }\n public get inputWidth(): string {\n return this.getPropertyValue(\"inputWidth\");\n }\n public updateInputSize() {\n var size = this.isTextInput && this.size > 0 ? this.size : 0;\n if (\n this.isTextInput &&\n size < 1 &&\n this.parent &&\n !!(this.parent)[\"itemSize\"]\n ) {\n size = (this.parent)[\"itemSize\"];\n }\n this.setPropertyValue(\"inputSize\", size);\n this.setPropertyValue(\"inputWidth\", size > 0 ? \"auto\" : \"\");\n }\n /**\n * Text auto complete\n */\n public get autoComplete(): string {\n return this.getPropertyValue(\"autoComplete\", \"\");\n }\n public set autoComplete(val: string) {\n this.setPropertyValue(\"autoComplete\", val);\n }\n /**\n * The minimum value\n */\n public get min(): string {\n return this.getPropertyValue(\"min\");\n }\n public set min(val: string) {\n if (this.isValueExpression(val)) {\n this.minValueExpression = val.substr(1);\n return;\n }\n this.setPropertyValue(\"min\", val);\n }\n /**\n * The maximum value\n */\n public get max(): string {\n return this.getPropertyValue(\"max\");\n }\n public set max(val: string) {\n if (this.isValueExpression(val)) {\n this.maxValueExpression = val.substr(1);\n return;\n }\n this.setPropertyValue(\"max\", val);\n }\n /**\n * The minimum value that you can setup as expression, for example today(-1) = yesterday;\n */\n public get minValueExpression(): string {\n return this.getPropertyValue(\"minValueExpression\", \"\");\n }\n public set minValueExpression(val: string) {\n this.setPropertyValue(\"minValueExpression\", val);\n }\n /**\n * The maximum value that you can setup as expression, for example today(1) = tomorrow;\n */\n public get maxValueExpression(): string {\n return this.getPropertyValue(\"maxValueExpression\", \"\");\n }\n public set maxValueExpression(val: string) {\n this.setPropertyValue(\"maxValueExpression\", val);\n }\n public get renderedMin(): any {\n return this.getPropertyValue(\"renderedMin\");\n }\n public get renderedMax(): any {\n return this.getPropertyValue(\"renderedMax\");\n }\n /**\n * The text that shows when value is less than min property.\n * @see min\n * @see maxErrorText\n */\n public get minErrorText(): string {\n return this.getLocalizableStringText(\n \"minErrorText\",\n surveyLocalization.getString(\"minError\")\n );\n }\n public set minErrorText(val: string) {\n this.setLocalizableStringText(\"minErrorText\", val);\n }\n get locMinErrorText(): LocalizableString {\n return this.getLocalizableString(\"minErrorText\");\n }\n /**\n * The text that shows when value is greater than man property.\n * @see max\n * @see minErrorText\n */\n public get maxErrorText(): string {\n return this.getLocalizableStringText(\n \"maxErrorText\",\n surveyLocalization.getString(\"maxError\")\n );\n }\n public set maxErrorText(val: string) {\n this.setLocalizableStringText(\"maxErrorText\", val);\n }\n get locMaxErrorText(): LocalizableString {\n return this.getLocalizableString(\"maxErrorText\");\n }\n\n /**\n * Readonly property that returns true if the current inputType allows to set min and max properties\n * @see inputType\n * @see min\n * @see max\n */\n public get isMinMaxType(): boolean {\n return minMaxTypes.indexOf(this.inputType) > -1;\n }\n protected onCheckForErrors(\n errors: Array,\n isOnValueChanged: boolean\n ) {\n super.onCheckForErrors(errors, isOnValueChanged);\n if (isOnValueChanged || this.canSetValueToSurvey()) return;\n if (this.isValueLessMin) {\n errors.push(\n new CustomError(\n this.getMinMaxErrorText(\n this.minErrorText,\n this.getCalculatedMinMax(this.renderedMin)\n ),\n this\n )\n );\n }\n if (this.isValueGreaterMax) {\n errors.push(\n new CustomError(\n this.getMinMaxErrorText(\n this.maxErrorText,\n this.getCalculatedMinMax(this.renderedMax)\n ),\n this\n )\n );\n }\n }\n protected canSetValueToSurvey(): boolean {\n if (!this.isMinMaxType) return true;\n if (this.isValueLessMin) return false;\n if (this.isValueGreaterMax) return false;\n return true;\n }\n private getMinMaxErrorText(errorText: string, value: any): string {\n if (!value) return errorText;\n return errorText.replace(\"{0}\", value.toString());\n }\n private get isValueLessMin(): boolean {\n return (\n !this.isValueEmpty(this.renderedMin) &&\n this.getCalculatedMinMax(this.value) <\n this.getCalculatedMinMax(this.renderedMin)\n );\n }\n private get isValueGreaterMax(): boolean {\n return (\n !this.isValueEmpty(this.renderedMax) &&\n this.getCalculatedMinMax(this.value) >\n this.getCalculatedMinMax(this.renderedMax)\n );\n }\n private get isDateInputType(): boolean {\n return this.inputType === \"date\" || this.inputType === \"datetime-local\";\n }\n private getCalculatedMinMax(minMax: any): any {\n if (this.isValueEmpty(minMax)) return minMax;\n return this.isDateInputType ? new Date(minMax) : minMax;\n }\n private setRenderedMinMax(\n values: HashTable = null,\n properties: HashTable = null\n ) {\n this.setValueAndRunExpression(\n this.minValueExpression,\n this.min,\n val => {\n if (!val && this.isDateInputType && !!settings.minDate) {\n val = settings.minDate;\n }\n this.setPropertyValue(\"renderedMin\", val);\n },\n values,\n properties\n );\n this.setValueAndRunExpression(\n this.maxValueExpression,\n this.max,\n val => {\n if (!val && this.isDateInputType) {\n val = !!settings.maxDate ? settings.maxDate : \"2999-12-31\";\n }\n this.setPropertyValue(\"renderedMax\", val);\n },\n values,\n properties\n );\n }\n\n /**\n * The step value\n */\n public get step(): string {\n return this.getPropertyValue(\"step\");\n }\n public set step(val: string) {\n this.setPropertyValue(\"step\", val);\n }\n public get renderedStep(): string {\n return this.isValueEmpty(this.step) ? \"any\" : this.step;\n }\n isEmpty(): boolean {\n return super.isEmpty() || this.value === \"\";\n }\n supportGoNextPageAutomatic() {\n return [\"date\", \"datetime\", \"datetime-local\"].indexOf(this.inputType) < 0;\n }\n public supportGoNextPageError() {\n return [\"date\", \"datetime\", \"datetime-local\"].indexOf(this.inputType) < 0;\n }\n /**\n * The input place holder.\n */\n public get placeHolder(): string {\n return this.getLocalizableStringText(\"placeHolder\");\n }\n public set placeHolder(val: string) {\n this.setLocalizableStringText(\"placeHolder\", val);\n }\n get locPlaceHolder(): LocalizableString {\n return this.getLocalizableString(\"placeHolder\");\n }\n /**\n * The list of recommended options available to choose.\n */\n public get dataList(): Array {\n return this.locDataList.value;\n }\n public set dataList(val: Array) {\n this.locDataList.value = val;\n }\n get locDataList(): LocalizableStrings {\n return this.locDataListValue;\n }\n public get dataListId(): string {\n return !this.locDataList.isEmpty ? this.id + \"_datalist\" : \"\";\n }\n protected canRunValidators(isOnValueChanged: boolean): boolean {\n return (\n this.errors.length > 0 ||\n !isOnValueChanged ||\n this.supportGoNextPageError()\n );\n }\n protected setNewValue(newValue: any) {\n newValue = this.correctValueType(newValue);\n super.setNewValue(newValue);\n }\n protected correctValueType(newValue: any): any {\n if (!newValue) return newValue;\n if (this.inputType == \"number\" || this.inputType == \"range\") {\n return Helpers.isNumber(newValue) ? parseFloat(newValue) : \"\";\n }\n return newValue;\n }\n}\n\nconst minMaxTypes = [\n \"number\",\n \"range\",\n \"date\",\n \"datetime-local\",\n \"month\",\n \"time\",\n \"week\",\n];\n\nSerializer.addClass(\n \"text\",\n [\n {\n name: \"inputType\",\n default: \"text\",\n choices: [\n \"color\",\n \"date\",\n \"datetime\",\n \"datetime-local\",\n \"email\",\n \"month\",\n \"number\",\n \"password\",\n \"range\",\n \"tel\",\n \"text\",\n \"time\",\n \"url\",\n \"week\",\n ],\n },\n {\n name: \"size:number\",\n minValue: 0,\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.isTextInput;\n },\n },\n {\n name: \"textUpdateMode\",\n default: \"default\",\n choices: [\"default\", \"onBlur\", \"onTyping\"],\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.inputType == \"text\";\n },\n },\n {\n name: \"autoComplete\",\n dataList: [\n \"name\",\n \"honorific-prefix\",\n \"given-name\",\n \"additional-name\",\n \"family-name\",\n \"honorific-suffix\",\n \"nickname\",\n \"organization-title\",\n \"username\",\n \"new-password\",\n \"current-password\",\n \"organization\",\n \"street-address\",\n \"address-line1\",\n \"address-line2\",\n \"address-line3\",\n \"address-level4\",\n \"address-level3\",\n \"address-level2\",\n \"address-level1\",\n \"country\",\n \"country-name\",\n \"postal-code\",\n \"cc-name\",\n \"cc-given-name\",\n \"cc-additional-name\",\n \"cc-family-name\",\n \"cc-number\",\n \"cc-exp\",\n \"cc-exp-month\",\n \"cc-exp-year\",\n \"cc-csc\",\n \"cc-type\",\n \"transaction-currency\",\n \"transaction-amount\",\n \"language\",\n \"bday\",\n \"bday-day\",\n \"bday-month\",\n \"bday-year\",\n \"sex\",\n \"url\",\n \"photo\",\n \"tel\",\n \"tel-country-code\",\n \"tel-national\",\n \"tel-area-code\",\n \"tel-local\",\n \"tel-local-prefix\",\n \"tel-local-suffix\",\n \"tel-extension\",\n \"email\",\n \"impp\",\n ],\n },\n {\n name: \"min\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n onPropertyEditorUpdate: function(obj: any, propertyEditor: any) {\n propertyEditor.inputType = obj.inputType;\n },\n },\n {\n name: \"max\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n onPropertyEditorUpdate: function(obj: any, propertyEditor: any) {\n propertyEditor.inputType = obj.inputType;\n },\n },\n {\n name: \"minValueExpression:expression\",\n category: \"logic\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n },\n {\n name: \"maxValueExpression:expression\",\n category: \"logic\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n },\n {\n name: \"minErrorText\",\n serializationProperty: \"locMinErrorText\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n },\n {\n name: \"maxErrorText\",\n serializationProperty: \"locMaxErrorText\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n return !!obj && obj.isMinMaxType;\n },\n },\n {\n name: \"step:number\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.inputType === \"number\";\n },\n },\n { name: \"maxLength:number\", default: -1 },\n {\n name: \"placeHolder\",\n serializationProperty: \"locPlaceHolder\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.isTextInput;\n },\n },\n {\n name: \"dataList:string[]\",\n serializationProperty: \"locDataList\",\n dependsOn: \"inputType\",\n visibleIf: function(obj: any) {\n if (!obj) return false;\n return obj.inputType === \"text\";\n },\n },\n ],\n function() {\n return new QuestionTextModel(\"\");\n },\n \"question\"\n);\n\nQuestionFactory.Instance.registerQuestion(\"text\", name => {\n return new QuestionTextModel(name);\n});\n","import { HashTable } from \"./helpers\";\nimport { Question } from \"./question\";\nimport { IElement } from \"./base\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { Serializer } from \"./jsonobject\";\n\n//TODO replace completely with ElementFactory\nexport class QuestionFactory {\n public static Instance: QuestionFactory = new QuestionFactory();\n public static get DefaultChoices(): string[] {\n return [\n surveyLocalization.getString(\"choices_Item\") + \"1\",\n surveyLocalization.getString(\"choices_Item\") + \"2\",\n surveyLocalization.getString(\"choices_Item\") + \"3\",\n ];\n }\n public static get DefaultColums(): string[] {\n var colName = surveyLocalization.getString(\"matrix_column\") + \" \";\n return [colName + \"1\", colName + \"2\", colName + \"3\"];\n }\n public static get DefaultRows(): string[] {\n var rowName = surveyLocalization.getString(\"matrix_row\") + \" \";\n return [rowName + \"1\", rowName + \"2\"];\n }\n public static get DefaultMutlipleTextItems(): string[] {\n var itemName = surveyLocalization.getString(\"multipletext_itemname\");\n return [itemName + \"1\", itemName + \"2\"];\n }\n private creatorHash: HashTable<(name: string) => Question> = {};\n\n public registerQuestion(\n questionType: string,\n questionCreator: (name: string) => Question\n ) {\n this.creatorHash[questionType] = questionCreator;\n }\n public unregisterElement(elementType: string) {\n delete this.creatorHash[elementType];\n }\n public clear() {\n this.creatorHash = {};\n }\n public getAllTypes(): Array {\n var result = new Array();\n for (var key in this.creatorHash) {\n result.push(key);\n }\n return result.sort();\n }\n public createQuestion(questionType: string, name: string): Question {\n var creator = this.creatorHash[questionType];\n if (creator == null) return null;\n return creator(name);\n }\n}\n\nexport class ElementFactory {\n public static Instance: ElementFactory = new ElementFactory();\n private creatorHash: HashTable<(name: string) => IElement> = {};\n\n public registerElement(\n elementType: string,\n elementCreator: (name: string) => IElement\n ) {\n this.creatorHash[elementType] = elementCreator;\n }\n public clear() {\n this.creatorHash = {};\n }\n public unregisterElement(\n elementType: string,\n removeFromSerializer: boolean = false\n ) {\n delete this.creatorHash[elementType];\n QuestionFactory.Instance.unregisterElement(elementType);\n if (removeFromSerializer) {\n Serializer.removeClass(elementType);\n }\n }\n public getAllTypes(): Array {\n var result = QuestionFactory.Instance.getAllTypes();\n for (var key in this.creatorHash) {\n result.push(key);\n }\n return result.sort();\n }\n public createElement(elementType: string, name: string): IElement {\n var creator = this.creatorHash[elementType];\n if (creator == null)\n return QuestionFactory.Instance.createQuestion(elementType, name);\n return creator(name);\n }\n}\n","import { Question, IConditionObject } from \"./question\";\nimport { Serializer } from \"./jsonobject\";\nimport { SurveyError } from \"./base\";\n\n/**\n * A Model for non value question. This question doesn't add any new functionality. It hides some properties, including the value.\n */\nexport class QuestionNonValue extends Question {\n constructor(name: string) {\n super(name);\n }\n public getType(): string {\n return \"nonvalue\";\n }\n public get hasInput(): boolean {\n return false;\n }\n public get hasTitle(): boolean {\n return false;\n }\n public getTitleLocation(): string {\n return \"\";\n }\n public get hasComment(): boolean {\n return false;\n }\n public hasErrors(fireCallback: boolean = true, rec: any = null): boolean {\n return false;\n }\n public getAllErrors(): Array {\n return [];\n }\n public supportGoNextPageAutomatic() {\n return false;\n }\n public addConditionObjectsByContext(\n objects: Array,\n context: any\n ) {}\n public getConditionJson(operator: string = null, path: string = null): any {\n return null;\n }\n}\nSerializer.addClass(\n \"nonvalue\",\n [\n { name: \"title\", visible: false },\n { name: \"description\", visible: false },\n { name: \"valueName\", visible: false },\n { name: \"enableIf\", visible: false },\n { name: \"defaultValue\", visible: false },\n { name: \"correctAnswer\", visible: false },\n { name: \"isRequired\", visible: false, isSerializable: false },\n { name: \"requiredErrorText\", visible: false },\n { name: \"readOnly\", visible: false },\n { name: \"requiredIf\", visible: false },\n { name: \"validators\", visible: false },\n { name: \"titleLocation\", visible: false },\n { name: \"useDisplayValuesInTitle\", visible: false },\n ],\n function () {\n return new QuestionNonValue(\"\");\n },\n \"question\"\n);\n","import * as React from \"react\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { SurveyQuestionBoolean } from \"./boolean\";\nimport { RendererFactory } from \"survey-core\";\n\nexport class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {\n constructor(props: any) {\n super(props);\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var itemClass = this.getItemClass();\n return (\n
\n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\n \"sv-boolean-checkbox\",\n (props) => {\n return React.createElement(SurveyQuestionBooleanCheckbox, props);\n }\n);\n\nRendererFactory.Instance.registerRenderer(\n \"boolean\",\n \"checkbox\",\n \"sv-boolean-checkbox\"\n);\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionBooleanModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionBoolean extends SurveyQuestionElementBase {\n protected checkRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n this.handleOnClick = this.handleOnClick.bind(this);\n this.handleOnLabelClick = this.handleOnLabelClick.bind(this);\n this.handleOnSwitchClick = this.handleOnSwitchClick.bind(this);\n this.checkRef = React.createRef();\n }\n protected get question(): QuestionBooleanModel {\n return this.questionBase as QuestionBooleanModel;\n }\n private preventDefaults(event: any) {\n event.preventDefault();\n event.stopPropagation();\n }\n private doCheck(value: boolean) {\n this.question.checkedValue = value;\n this.setState({ value: this.question.checkedValue });\n }\n handleOnChange(event: any) {\n this.doCheck(event.target.checked);\n }\n handleOnClick(event: any) {\n if (this.question.isIndeterminate) {\n this.preventDefaults(event);\n this.question.checkedValue = true;\n this.setState({ value: this.question.checkedValue });\n }\n }\n handleOnSwitchClick(event: any) {\n if (this.question.isIndeterminate) {\n this.preventDefaults(event);\n var isRightClick =\n event.nativeEvent.offsetX / event.target.offsetWidth > 0.5;\n var isRtl =\n document.defaultView.getComputedStyle(event.target).direction == \"rtl\";\n var value = isRtl ? !isRightClick : isRightClick;\n return this.doCheck(value);\n }\n }\n handleOnLabelClick(event: any, value: boolean) {\n if (this.question.isIndeterminate) {\n this.preventDefaults(event);\n this.doCheck(value);\n }\n }\n\n protected updateDomElement() {\n if (!this.question) return;\n var el = this.checkRef.current;\n if (el) {\n el.indeterminate = this.question.isIndeterminate;\n }\n this.control = el;\n super.updateDomElement();\n }\n protected getItemClass(): string {\n var cssClasses = this.question.cssClasses;\n var isChecked = this.question.checkedValue;\n var isDisabled = this.question.isReadOnly;\n var itemClass = cssClasses.item;\n if (isDisabled) itemClass += \" \" + cssClasses.itemDisabled;\n if (isChecked) itemClass += \" \" + cssClasses.itemChecked;\n else if (isChecked === null)\n itemClass += \" \" + cssClasses.itemIndeterminate;\n return itemClass;\n }\n private getLabelClass(checked: boolean): string {\n var question = this.question;\n var cssClasses = this.question.cssClasses;\n return (\n cssClasses.label +\n \" \" +\n (question.checkedValue === !checked || question.isReadOnly\n ? question.cssClasses.disabledLabel\n : \"\")\n );\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var itemClass = this.getItemClass();\n return (\n
\n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"boolean\", (props) => {\n return React.createElement(SurveyQuestionBoolean, props);\n});\n","import React from \"react\";\r\nimport { ReactElementFactory } from \"../../element-factory\";\r\nimport { Popup } from \"../popup/popup\";\r\nimport { SurveyActionBarItem } from \"./action-bar-item\";\r\n\r\nexport class SurveyActionBarItemDropdown extends SurveyActionBarItem {\r\n renderButtonContent() {\r\n const buttonContent = super.renderButtonContent();\r\n return (\r\n <>\r\n {buttonContent}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nReactElementFactory.Instance.registerElement(\"sv-action-bar-item-dropdown\", (props) => {\r\n return React.createElement(SurveyActionBarItemDropdown, props);\r\n});\r\n","import React from \"react\";\r\nimport { AdaptiveActionBarItemWrapper } from \"survey-core\";\r\nimport { Base } from \"survey-core\";\r\nimport { ReactElementFactory } from \"../../element-factory\";\r\nimport { SurveyElementBase } from \"../../reactquestion_element\";\r\nimport { SvgIcon } from \"../svg-icon/svg-icon\";\r\nimport { SurveyActionBarSeparator } from \"./action-bar-separator\";\r\n\r\ninterface IActionBarItemProps {\r\n item: AdaptiveActionBarItemWrapper;\r\n}\r\n\r\nexport class SurveyAction extends SurveyElementBase {\r\n get item() {\r\n return this.props.item;\r\n }\r\n protected getStateElement(): Base {\r\n return this.item;\r\n }\r\n\r\n render() {\r\n const itemClass =\r\n \"sv-action \" + (!this.item.isVisible ? \"sv-action--hidden\" : \"\");\r\n const separator = this.item.needSeparator ? (\r\n \r\n ) : null;\r\n\r\n const itemComponent = ReactElementFactory.Instance.createElement(\r\n this.item.component || \"sv-action-bar-item\",\r\n {\r\n item: this.item,\r\n }\r\n );\r\n return (\r\n \r\n {separator}\r\n {itemComponent}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport class SurveyActionBarItem extends SurveyElementBase {\r\n get item(): AdaptiveActionBarItemWrapper {\r\n return this.props.item;\r\n }\r\n protected getStateElement(): Base {\r\n return this.item;\r\n }\r\n\r\n render() {\r\n const itemClass =\r\n \"sv-action \" +\r\n this.item.css +\r\n (!this.item.isVisible ? \" sv-action--hidden\" : \"\");\r\n const separator = this.item.needSeparator ? (\r\n \r\n ) : null;\r\n return (\r\n <>\r\n {separator}\r\n {this.renderInnerButton()}\r\n \r\n );\r\n }\r\n\r\n renderButtonContent() {\r\n const text = this.renderText();\r\n const svgIcon = !!this.item.iconName ? (\r\n \r\n ) : null;\r\n return (\r\n <>\r\n {svgIcon}\r\n {text}\r\n \r\n );\r\n }\r\n\r\n renderInnerButton() {\r\n const className =\r\n \"sv-action-bar-item \" +\r\n this.item.innerCss +\r\n (this.item.active ? \" sv-action-bar-item--active\" : \"\");\r\n const title = this.item.tooltip || this.item.title;\r\n const isDisabled = this.item.enabled !== undefined && !this.item.enabled;\r\n const buttonContent = this.renderButtonContent();\r\n const button = (\r\n this.item.action(this.item)}\r\n title={title}\r\n >\r\n {buttonContent}\r\n \r\n );\r\n\r\n return button;\r\n }\r\n\r\n renderText() {\r\n if (\r\n this.item.showTitle === undefined ||\r\n this.item.showTitle ||\r\n !this.item.iconName\r\n ) {\r\n var titleClass =\r\n \"sv-action-bar-item__title \" +\r\n (!!this.item.iconName ? \"sv-action-bar-item__title--with-icon\" : \"\");\r\n return {this.item.title};\r\n } else return null;\r\n }\r\n}\r\n\r\nReactElementFactory.Instance.registerElement(\"sv-action-bar-item\", (props) => {\r\n return React.createElement(SurveyActionBarItem, props);\r\n});\r\n","import React from \"react\";\nimport { ReactElementFactory } from \"../../element-factory\";\n\nexport class SurveyActionBarSeparator extends React.Component {\n constructor(props: any) {\n super(props);\n }\n render() {\n var className = `sv-action-bar-separator ${this.props.cssClasses}`;\n return
;\n }\n}\nReactElementFactory.Instance.registerElement(\n \"sv-action-bar-separator\",\n (props) => {\n return React.createElement(SurveyActionBarSeparator, props);\n }\n);\n","import React from \"react\";\nimport {\n AdaptiveActionBarItemWrapper,\n AdaptiveElement,\n IActionBarItem,\n} from \"survey-core\";\nimport { ReactElementFactory } from \"../../element-factory\";\nimport { SurveyElementBase } from \"../../reactquestion_element\";\nimport { SurveyAction } from \"./action-bar-item\";\n\nimport { Base } from \"survey-core\";\nimport { ResponsibilityManager } from \"survey-core\";\n\nexport * from \"./action-bar-item\";\nexport * from \"./action-bar-item-dropdown\";\nexport * from \"./action-bar-separator\";\n\ninterface IActionBarProps {\n items: Array;\n}\n\nexport class SurveyActionBar extends SurveyElementBase {\n private adaptiveElement = new AdaptiveElement();\n private manager: ResponsibilityManager;\n private rootRef: React.RefObject;\n private updateVisibleItems: any;\n\n constructor(props: IActionBarProps) {\n super(props);\n\n const sourceItems: Array = this.props.items;\n this.adaptiveElement.items = sourceItems.map(\n (item: IActionBarItem, itemIndex: number) => {\n return new AdaptiveActionBarItemWrapper(this.adaptiveElement, item);\n }\n );\n this.rootRef = React.createRef();\n }\n componentDidMount() {\n super.componentDidMount();\n\n const container = this.rootRef.current;\n this.manager = new ResponsibilityManager(container, this.adaptiveElement);\n this.manager.getItemSizes = () => {\n const widths: number[] = [];\n container\n .querySelectorAll(\"span.sv-action\")\n .forEach((actionContainer) => {\n widths.push((actionContainer as HTMLDivElement).offsetWidth);\n });\n return widths;\n };\n\n this.updateVisibleItems = setInterval(() => {\n this.manager.process();\n }, 100);\n }\n componentWillUnmount() {\n clearInterval(this.updateVisibleItems);\n super.componentWillUnmount();\n }\n\n protected getStateElement(): Base {\n return this.adaptiveElement;\n }\n render(): any {\n if (!this.hasItems) {\n return null;\n }\n\n const items = this.renderItems();\n return (\n \n {items}\n \n );\n }\n\n get hasItems(): boolean {\n return (this.adaptiveElement.items || []).length > 0;\n }\n\n renderItems() {\n return this.adaptiveElement.items.map(\n (item: AdaptiveActionBarItemWrapper, itemIndex: number) => {\n if (!item.visible && item.visible !== undefined) {\n return null;\n }\n return ;\n }\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-action-bar\", (props) => {\n return React.createElement(SurveyActionBar, (props as any) as IActionBarProps);\n});\n","import React from \"react\";\nimport { Question } from \"survey-core\";\nimport { ReactElementFactory } from \"../../element-factory\";\n\nimport { TitleContent } from \"../title-content/title-content\";\n\nexport class DefaultTitle extends React.Component {\n private isNeedFocus = false;\n\n protected get cssClasses() {\n return this.props.cssClasses;\n }\n protected get element(): Question {\n return this.props.element;\n }\n\n render() {\n var expandCollapse = null;\n if (this.element.isCollapsed || this.element.isExpanded) {\n var iconCss = this.cssClasses.icon;\n if (!this.element.isCollapsed)\n iconCss += \" \" + this.cssClasses.iconExpanded;\n var changeExpanded = (event: any) => {\n let question = this.element;\n\n if (!question.isExpanded && !question.isCollapsed) return;\n\n question.toggleState();\n this.isNeedFocus = question.isCollapsed;\n };\n var pressExpand = (event: any) => {\n if (event.keyCode == 13) changeExpanded(event);\n };\n var ariaExpanded = this.element.isExpanded;\n var ariaControls = this.element.isExpanded\n ? this.element.contentId\n : null;\n expandCollapse = (\n \n );\n }\n return (\n <>\n \n {expandCollapse}\n \n );\n }\n\n componentDidMount() {\n this.doAfterRender();\n }\n\n private doAfterRender() {\n if (this.isNeedFocus) {\n this.element.clickTitleFunction();\n this.isNeedFocus = false;\n }\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-default-title\", (props) => {\n return React.createElement(DefaultTitle, props);\n});\n","import React from \"react\";\r\nimport { IActionBarItem } from \"survey-core\";\r\nimport { ListModel } from \"survey-core\";\r\nimport { ReactElementFactory } from \"../../element-factory\";\r\nimport { SurveyElementBase } from \"../../reactquestion_element\";\r\nimport { SvgIcon } from \"../svg-icon/svg-icon\";\r\n\r\ninterface IListProps {\r\n model: ListModel;\r\n}\r\n\r\nexport class List extends SurveyElementBase {\r\n get model(): ListModel {\r\n return this.props.model;\r\n }\r\n\r\n getStateElement() {\r\n return this.model;\r\n }\r\n\r\n render() {\r\n const items = this.renderItems();\r\n return (\r\n {\r\n e.preventDefault();\r\n }}\r\n >\r\n {items}\r\n \r\n );\r\n }\r\n\r\n renderItems() {\r\n if (!this.model) {\r\n return null;\r\n }\r\n const items = this.model.items;\r\n if (!items) {\r\n return null;\r\n }\r\n return items.map((item: IActionBarItem, itemIndex: number) => {\r\n const className = this.model.getItemClass(item);\r\n const icon = item.iconName ? (\r\n \r\n ) : null;\r\n return (\r\n {\r\n this.model.selectItem(item);\r\n }}\r\n >\r\n {icon}\r\n {item.title}\r\n \r\n );\r\n });\r\n }\r\n}\r\n\r\nReactElementFactory.Instance.registerElement(\"sv-list\", (props) => {\r\n const model: ListModel = props;\r\n const listProps: IListProps = {\r\n model: model,\r\n };\r\n return React.createElement(List, listProps);\r\n});\r\n","import React from \"react\";\nimport { ActionBarItem } from \"survey-core\";\nimport {\n MatrixDropdownRowModelBase,\n QuestionMatrixDropdownModelBase,\n} from \"survey-core\";\nimport { ReactElementFactory } from \"../../../element-factory\";\nimport { ReactSurveyElement } from \"../../../reactquestion_element\";\n\nexport class SurveyQuestionMatrixDetailButton extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.handleOnShowHideClick = this.handleOnShowHideClick.bind(this);\n }\n protected getStateElement() {\n return this.props.item;\n }\n get item(): ActionBarItem {\n return this.props.item;\n }\n private get question(): QuestionMatrixDropdownModelBase {\n return this.props.item.data.question;\n }\n private get row(): MatrixDropdownRowModelBase {\n return this.props.item.data.row;\n }\n handleOnShowHideClick(event: any) {\n this.row.showHideDetailPanelClick();\n }\n protected renderElement(): JSX.Element {\n var isExpanded = this.row.isDetailPanelShowing;\n var ariaExpanded = isExpanded;\n var ariaControls = isExpanded ? this.row.detailPanelId : null;\n return (\n \n \n \n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\n \"sv-matrix-detail-button\",\n props => {\n return React.createElement(SurveyQuestionMatrixDetailButton, props);\n }\n);\n","import React from \"react\";\nimport {\n MatrixDropdownRowModelBase,\n QuestionMatrixDropdownModelBase,\n} from \"survey-core\";\nimport { ReactElementFactory } from \"../../../element-factory\";\nimport { ReactSurveyElement } from \"../../../reactquestion_element\";\n\nexport class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.handleOnRowRemoveClick = this.handleOnRowRemoveClick.bind(this);\n }\n private get question(): QuestionMatrixDropdownModelBase {\n return this.props.item.data.question;\n }\n private get row(): MatrixDropdownRowModelBase {\n return this.props.item.data.row;\n }\n handleOnRowRemoveClick(event: any) {\n this.question.removeRowUI(this.row);\n }\n protected renderElement(): JSX.Element {\n return (\n \n {this.question.removeRowText}\n \n \n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\n \"sv-matrix-remove-button\",\n props => {\n return React.createElement(SurveyQuestionMatrixDynamicRemoveButton, props);\n }\n);\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { PopupModel, PopupViewModel } from \"survey-core\";\nimport { ReactElementFactory } from \"../../element-factory\";\nimport { SurveyElementBase } from \"../../reactquestion_element\";\n\ninterface IPopupProps {\n model: PopupModel;\n}\n\nexport class Popup extends SurveyElementBase {\n private container: any;\n private popup: PopupViewModel;\n private containerRef: React.RefObject;\n constructor(props: IPopupProps) {\n super(props);\n this.containerRef = React.createRef();\n this.popup = new PopupViewModel(this.props.model);\n }\n\n get model(): PopupModel {\n return this.props.model;\n }\n\n protected getStateElement() {\n return this.model;\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.popup.targetElement = this.containerRef.current.parentElement;\n }\n\n render() {\n return (\n
\n \n
\n );\n }\n componentWillUnmount() {\n if (this.container) {\n this.container.remove();\n this.container = undefined;\n }\n super.componentWillUnmount();\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-popup\", (props) => {\n return React.createElement(Popup, (props as any) as IPopupProps);\n});\n\nexport class PopupContainer extends SurveyElementBase {\n private container: HTMLElement;\n\n constructor(props: any) {\n super(props);\n this.container = document.createElement(\"div\");\n document.body.appendChild(this.container);\n this.model.container = this.container;\n }\n get model(): PopupViewModel {\n return this.props.model;\n }\n\n protected getStateElement() {\n return this.model;\n }\n\n clickInside = (ev: any) => {\n ev.stopPropagation();\n };\n\n renderContainer() {\n const pointer = this.model.showPointer ? this.renderPointer() : null;\n const header = this.renderHeader();\n const content = this.renderContent();\n const footer = this.model.isModal ? this.renderFooter() : null;\n\n return (\n {\n this.clickInside(ev);\n }}\n >\n {pointer}\n {header}\n {content}\n {footer}\n \n );\n }\n\n renderPointer() {\n return (\n
\n );\n }\n\n renderHeader() {\n return
;\n }\n\n renderContent() {\n const contentComponent = ReactElementFactory.Instance.createElement(\n this.model.contentComponentName,\n this.model.contentComponentData\n );\n return
{contentComponent}
;\n }\n renderFooter() {\n return (\n
\n {\n this.model.cancel();\n }}\n >\n {this.model.cancelButtonText}\n \n {\n this.model.apply();\n }}\n >\n {this.model.applyButtonText}\n \n
\n );\n }\n\n render() {\n const container = this.renderContainer();\n var className = \"sv-popup \" + this.model.styleClass;\n const style = {\n display: this.model.isVisible ? \"block\" : \"none\",\n };\n var content = (\n {\n this.model.clickOutside();\n e.stopPropagation();\n }}\n >\n {container}\n \n );\n\n return ReactDOM.createPortal(content, this.container);\n }\n}\n","import React from \"react\";\nimport { ReactElementFactory } from \"../../element-factory\";\nimport { createSvg } from \"survey-core\";\n\nexport class SvgIcon extends React.Component {\n private svgIconRef: any;\n constructor(props: any) {\n super(props);\n this.svgIconRef = React.createRef();\n }\n\n render() {\n return (\n \n \n \n );\n }\n componentDidMount() {\n createSvg(\n this.props.size,\n this.props.width,\n this.props.height,\n this.props.iconName,\n this.svgIconRef.current\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-svg-icon\", (props) => {\n return React.createElement(SvgIcon, props);\n});\n","import React from \"react\";\nimport { ISurveyElement } from \"survey-core\";\nimport { RendererFactory } from \"survey-core\";\nimport { ReactElementFactory } from \"../../element-factory\";\nimport { SurveyElementBase } from \"../../reactquestion_element\";\nimport { SurveyActionBar } from \"../action-bar/action-bar\";\n\nimport { TitleContent } from \"../title-content/title-content\";\n\nexport class TitleActions extends React.Component {\n protected get cssClasses() {\n return this.props.cssClasses;\n }\n protected get element(): ISurveyElement {\n return this.props.element;\n }\n\n render() {\n var titleContent = !this.element.isPage ? (\n \n ) : (\n <>{SurveyElementBase.renderLocString((this.element as any).locTitle)}\n );\n return (\n
\n {titleContent}\n \n
\n );\n }\n}\n\nRendererFactory.Instance.registerRenderer(\n \"element\",\n \"title-actions\",\n \"sv-title-actions\"\n);\n\nReactElementFactory.Instance.registerElement(\"sv-title-actions\", (props) => {\n return React.createElement(TitleActions, props);\n});\n","import React from \"react\";\n\nimport { Question } from \"survey-core\";\nimport { SurveyElementBase } from \"../../reactquestion_element\";\nimport { ITitleOwner } from \"survey-core\";\n\nexport class TitleContent extends React.Component {\n constructor(props: any) {\n super(props);\n }\n\n private get cssClasses() {\n return this.props.cssClasses;\n }\n\n private get element(): Question {\n return this.props.element;\n }\n\n private titleKeyIndex = 0;\n private titleKeyPrefix = \"-titleKey-\";\n render() {\n var spans = this.renderTitleSpans(this.element, this.cssClasses);\n return <>{spans};\n }\n\n protected renderTitleSpans(element: ITitleOwner, cssClasses: any) {\n var getSpaceSpan = () => {\n return (\n \n  \n
\n );\n };\n var spans = [];\n if (element.isRequireTextOnStart) {\n spans.push(this.renderRequireText(element, cssClasses));\n spans.push(getSpaceSpan());\n }\n var questionNumber = element.no;\n if (questionNumber) {\n spans.push(\n \n {questionNumber}\n \n );\n spans.push(getSpaceSpan());\n }\n if (element.isRequireTextBeforeTitle) {\n spans.push(this.renderRequireText(element, cssClasses));\n spans.push(getSpaceSpan());\n }\n spans.push(\n SurveyElementBase.renderLocString(\n element.locTitle,\n null,\n this.getTitleKey(element)\n )\n );\n if (element.isRequireTextAfterTitle) {\n spans.push(getSpaceSpan());\n spans.push(this.renderRequireText(element, cssClasses));\n }\n return spans;\n }\n\n private renderRequireText(\n element: ITitleOwner,\n cssClasses: any\n ): JSX.Element {\n return (\n \n {element.requiredText}\n \n );\n }\n\n private getTitleKey = (element: ITitleOwner) => {\n this.titleKeyIndex++;\n return element.name + this.titleKeyPrefix + this.titleKeyIndex;\n };\n}\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\n\nexport class SurveyCustomWidget extends SurveyQuestionElementBase {\n private widgetRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.widgetRef = React.createRef();\n }\n private _afterRender() {\n if (this.questionBase.customWidget) {\n let el = this.widgetRef.current;\n if (!!el) {\n this.questionBase.customWidget.afterRender(this.questionBase, el);\n this.questionBase.customWidgetData.isNeedRender = false;\n }\n }\n }\n componentDidMount() {\n super.componentDidMount();\n if (this.questionBase) {\n this._afterRender();\n }\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n var isDefaultRender =\n !!this.questionBase.customWidget &&\n this.questionBase.customWidget.isDefaultRender;\n if (this.questionBase && !isDefaultRender) {\n this._afterRender();\n }\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (this.questionBase.customWidget) {\n let el = this.widgetRef.current;\n if (!!el) {\n this.questionBase.customWidget.willUnmount(this.questionBase, el);\n }\n }\n }\n protected canRender(): boolean {\n return super.canRender() && this.questionBase.visible;\n }\n protected renderElement(): JSX.Element {\n let customWidget = this.questionBase.customWidget;\n\n if (customWidget.isDefaultRender) {\n return (\n
\n {this.creator.createQuestionElement(this.questionBase)}\n
\n );\n }\n\n let widget = null;\n if (customWidget.widgetJson.render) {\n widget = customWidget.widgetJson.render(this.questionBase);\n } else {\n if (customWidget.htmlTemplate) {\n let htmlValue = { __html: customWidget.htmlTemplate };\n return
;\n }\n }\n return
{widget}
;\n }\n}\n","import * as React from \"react\";\n\nexport const dragDropTD = (question:any) => {\n return (\n \n \n \n \n \n );\n }","import { HashTable } from \"survey-core\";\n\nexport class ReactElementFactory {\n public static Instance: ReactElementFactory = new ReactElementFactory();\n private creatorHash: HashTable<(name: string) => JSX.Element> = {};\n\n public registerElement(\n elementType: string,\n elementCreator: (props: any) => JSX.Element\n ) {\n this.creatorHash[elementType] = elementCreator;\n }\n public getAllTypes(): Array {\n var result = new Array();\n for (var key in this.creatorHash) {\n result.push(key);\n }\n return result.sort();\n }\n public isElementRegistered(elementType: string) {\n return !!this.creatorHash[elementType];\n }\n public createElement(elementType: string, params: any): JSX.Element {\n var creator = this.creatorHash[elementType];\n if (creator == null) return null;\n return creator(params);\n }\n}\n","import * as React from \"react\";\nimport { SurveyQuestion } from \"./reactquestion\";\nimport { Question } from \"survey-core\";\nimport { FlowPanelModel } from \"survey-core\";\nimport { ReactElementFactory } from \"./element-factory\";\n\nimport { SurveyPanel } from \"./panel\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyFlowPanel extends SurveyPanel {\n constructor(props: any) {\n super(props);\n }\n public get flowPanel(): FlowPanelModel {\n return this.panel as FlowPanelModel;\n }\n componentDidMount() {\n super.componentDidMount();\n if (!!this.flowPanel) {\n var self = this;\n this.flowPanel.onCustomHtmlProducing = function() {\n return \"\";\n };\n this.flowPanel.onGetHtmlForQuestion = self.renderQuestion;\n }\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (!!this.flowPanel) {\n this.flowPanel.onCustomHtmlProducing = null;\n this.flowPanel.onGetHtmlForQuestion = null;\n }\n }\n protected getQuestion(name: string): Question {\n return this.flowPanel.getQuestionByName(name);\n }\n protected renderQuestion(question: Question): string {\n return \"\" + question.name + \"\";\n }\n protected renderRows(): Array {\n return [this.renderHtml()];\n }\n private renderedIndex: number;\n private getNodeIndex(): number {\n return this.renderedIndex++;\n }\n protected renderHtml(): JSX.Element {\n if (!this.flowPanel) return null;\n let html = \"\" + this.flowPanel.produceHtml() + \"\";\n if (!DOMParser) {\n var htmlValue = { __html: html };\n return
;\n }\n let doc = new DOMParser().parseFromString(html, \"text/xml\");\n this.renderedIndex = 0;\n return this.renderParentNode(doc);\n }\n protected renderNodes(domNodes: Array): Array {\n var nodes = [];\n for (var i = 0; i < domNodes.length; i++) {\n nodes.push(this.renderNode(domNodes[i]));\n }\n return nodes;\n }\n private getStyle(nodeType: string) {\n var style: any = {};\n if (nodeType.toLowerCase() === \"b\") {\n style.fontWeight = \"bold\";\n }\n if (nodeType.toLowerCase() === \"i\") {\n style.fontStyle = \"italic\";\n }\n if (nodeType.toLowerCase() === \"u\") {\n style.textDecoration = \"underline\";\n }\n return style;\n }\n protected renderParentNode(node: Node): JSX.Element {\n var nodeType = node.nodeName.toLowerCase();\n var children = this.renderNodes(this.getChildDomNodes(node));\n if (nodeType == \"div\")\n return
{children}
;\n return (\n \n {children}\n \n );\n }\n protected renderNode(node: Node): JSX.Element {\n if (!this.hasTextChildNodesOnly(node)) {\n return this.renderParentNode(node);\n }\n var nodeType = node.nodeName.toLowerCase();\n if (nodeType === \"question\") {\n var question = this.flowPanel.getQuestionByName(node.textContent);\n if (!question) return null;\n var questionBody = (\n \n );\n return {questionBody};\n }\n if (nodeType === \"div\") {\n return
{node.textContent}
;\n }\n return (\n \n {node.textContent}\n \n );\n }\n private getChildDomNodes(node: Node): Array {\n var domNodes = [];\n for (var i = 0; i < node.childNodes.length; i++) {\n domNodes.push(node.childNodes[i]);\n }\n return domNodes;\n }\n private hasTextChildNodesOnly(node: Node): boolean {\n var nodes = node.childNodes;\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].nodeName.toLowerCase() !== \"#text\") return false;\n }\n return true;\n }\n protected renderContent(style: any, rows: JSX.Element[]): JSX.Element {\n return React.createElement(\"f-panel\", { style: style }, rows);\n }\n}\n\nReactElementFactory.Instance.registerElement(\"flowpanel\", props => {\n return React.createElement(SurveyFlowPanel, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionImageModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionImage extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionImageModel {\n return this.questionBase as QuestionImageModel;\n }\n protected canRender(): boolean {\n return super.canRender() && !!this.question.imageLink;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var style: any = { objectFit: this.question.imageFit };\n var control = null;\n if (this.question.contentMode === \"image\") {\n control = (\n \n );\n }\n if (this.question.contentMode === \"video\") {\n control = (\n \n );\n }\n return
{control}
;\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"image\", (props) => {\n return React.createElement(SurveyQuestionImage, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionImagePickerModel } from \"survey-core\";\nimport { ItemValue } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionImagePicker extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n }\n protected get question(): QuestionImagePickerModel {\n return this.questionBase as QuestionImagePickerModel;\n }\n handleOnChange(event: any) {\n if (this.question.multiSelect) {\n if (event.target.checked) {\n this.question.value = this.question.value.concat(event.target.value);\n } else {\n var currValue = this.question.value;\n currValue.splice(this.question.value.indexOf(event.target.value), 1);\n this.question.value = currValue;\n }\n } else {\n this.question.value = event.target.value;\n }\n this.setState({ value: this.question.value });\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n return (\n
\n \n {this.getItems(cssClasses)}\n
\n );\n }\n protected getItems(cssClasses: any): Array {\n var items = [];\n for (var i = 0; i < this.question.visibleChoices.length; i++) {\n var item = this.question.visibleChoices[i];\n var key = \"item\" + i;\n items.push(this.renderItem(key, item, cssClasses));\n }\n return items;\n }\n protected get textStyle(): any {\n return { marginLeft: \"3px\", display: \"inline\", position: \"static\" };\n }\n protected renderItem(\n key: string,\n item: ItemValue,\n cssClasses: any\n ): JSX.Element {\n var isChecked = this.question.isItemSelected(item);\n var id = this.question.inputId + \"_\" + item.value;\n var itemClass = this.question.getItemClass(item);\n var text = null;\n if (this.question.showLabel) {\n text = (\n \n {item.text || item.value}\n \n );\n }\n\n var style: any = { objectFit: this.question.imageFit };\n\n var control = null;\n if (this.question.contentMode === \"image\") {\n control = (\n \n );\n }\n if (this.question.contentMode === \"video\") {\n control = (\n \n );\n }\n\n return (\n
\n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"imagepicker\", (props) => {\n return React.createElement(SurveyQuestionImagePicker, props);\n});\n","import * as React from \"react\";\nimport { PageModel } from \"survey-core\";\nimport { SurveyElementBase } from \"./reactquestion_element\";\nimport { PanelModelBase } from \"survey-core\";\nimport { SurveyPanelBase } from \"./panel-base\";\nimport { TitleActions } from \"./components/title-actions/title-actions\";\n\nexport class SurveyPage extends SurveyPanelBase {\n constructor(props: any) {\n super(props);\n }\n protected getPanelBase(): PanelModelBase {\n return this.props.page;\n }\n public get page(): PageModel {\n return this.panelBase as PageModel;\n }\n protected renderElement(): JSX.Element {\n var title = this.renderTitle();\n var description = this.renderDescription();\n var rows = this.renderRows(this.panelBase.cssClasses);\n return (\n
\n {title}\n {description}\n {rows}\n
\n );\n }\n protected renderTitle(): JSX.Element {\n if (!this.page._showTitle) return null;\n var titleContent = null;\n if (!this.survey.renderTitleActions(this.page)) {\n var text = SurveyElementBase.renderLocString(this.page.locTitle);\n titleContent = <>{text};\n } else {\n titleContent = (\n <>\n \n \n );\n }\n return (\n

{titleContent}

\n );\n }\n protected renderDescription(): JSX.Element {\n if (!this.page._showDescription) return null;\n var text = SurveyElementBase.renderLocString(this.page.locDescription);\n return (\n
{text}
\n );\n }\n}\n","import * as React from \"react\";\nimport { ISurveyCreator } from \"./reactquestion\";\nimport { SurveyModel } from \"survey-core\";\nimport { QuestionRowModel, PanelModel, PanelModelBase } from \"survey-core\";\nimport { SurveyElementBase } from \"./reactquestion_element\";\nimport { Base } from \"survey-core\";\nimport { SurveyRow } from \"./row\";\n\nexport class SurveyPanelBase extends SurveyElementBase {\n protected rootRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.rootRef = React.createRef();\n }\n protected getStateElement(): Base {\n return this.panelBase;\n }\n protected modifyNonStateProps(nonStateProps: Array) {\n super.modifyNonStateProps(nonStateProps);\n nonStateProps.push(\"elements\");\n }\n protected get survey(): SurveyModel {\n return this.getSurvey();\n }\n protected get creator(): ISurveyCreator {\n return this.props.creator;\n }\n protected get css(): any {\n return this.getCss();\n }\n public get panelBase(): PanelModelBase {\n return this.getPanelBase();\n }\n protected getPanelBase(): PanelModelBase {\n return this.props.element || this.props.question;\n }\n protected getSurvey(): SurveyModel {\n return (\n this.props.survey || (!!this.panelBase ? this.panelBase.survey : null)\n );\n }\n protected getCss(): any {\n return this.props.css;\n }\n componentDidMount() {\n super.componentDidMount();\n this.doAfterRender();\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n var el = this.rootRef.current;\n if (!!el) {\n el.removeAttribute(\"data-rendered\");\n }\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n if (\n !!prevProps.page &&\n !!this.survey &&\n !!this.survey.currentPage &&\n prevProps.page.name === this.survey.currentPage.name\n )\n return;\n this.doAfterRender();\n }\n private doAfterRender() {\n var el = this.rootRef.current;\n if (el && this.survey) {\n if (this.panelBase.isPanel) {\n this.survey.afterRenderPanel(this.panelBase as PanelModel, el);\n } else {\n this.survey.afterRenderPage(el);\n }\n }\n }\n protected canRender(): boolean {\n return (\n super.canRender() &&\n !!this.survey &&\n !!this.panelBase &&\n this.panelBase.visible\n );\n }\n private renderedRowsCache: any = {};\n protected renderRows(css: any): Array {\n if (this.changedStatePropName !== \"rows\") {\n this.renderedRowsCache = {};\n }\n var rows = [];\n var questionRows = this.panelBase.rows;\n for (var i = 0; i < questionRows.length; i++) {\n var row = this.renderedRowsCache[questionRows[i].id];\n if (!row) {\n row = this.createRow(questionRows[i], css);\n this.renderedRowsCache[questionRows[i].id] = row;\n }\n rows.push(row);\n }\n return rows;\n }\n protected createRow(row: QuestionRowModel, css: any): JSX.Element {\n return (\n \n );\n }\n}\n","import * as React from \"react\";\nimport { SurveyElementErrors } from \"./reactquestion\";\nimport { SurveyElementBase } from \"./reactquestion_element\";\nimport { ReactElementFactory } from \"./element-factory\";\n\nimport { SurveyPanelBase } from \"./panel-base\";\nimport { PanelModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyPanel extends SurveyPanelBase {\n private hasBeenExpanded: boolean = false;\n constructor(props: any) {\n super(props);\n this.handleEditClick = this.handleEditClick.bind(this);\n }\n public get panel(): PanelModel {\n return this.panelBase as PanelModel;\n }\n handleEditClick(event: any) {\n this.panel.cancelPreview();\n }\n protected renderElement(): JSX.Element {\n var title = this.renderTitle();\n var description = this.renderDescription();\n var errors = (\n \n );\n var style = {\n paddingLeft: this.panel.innerPaddingLeft,\n display: !this.panel.isCollapsed ? \"block\" : \"none\",\n };\n var content = null;\n if (!this.panel.isCollapsed || this.hasBeenExpanded) {\n this.hasBeenExpanded = true;\n var rows = this.renderRows(this.panelBase.cssClasses);\n var className = this.panelBase.cssClasses.panel.content;\n content = this.renderContent(style, rows, className);\n }\n var rootStyle: { [index: string]: any } = {};\n if (this.panel.renderWidth) {\n rootStyle[\"width\"] = this.panel.renderWidth;\n rootStyle[\"flexGrow\"] = 1;\n rootStyle[\"flexShrink\"] = 1;\n rootStyle[\"flexBasis\"] = this.panel.renderWidth;\n rootStyle[\"minWidth\"] = this.panel[\"minWidth\"];\n rootStyle[\"maxWidth\"] = this.panel[\"maxWidth\"];\n }\n var bottom = this.renderBottom();\n return (\n \n {title}\n {description}\n {errors}\n {content}\n {bottom}\n
\n );\n }\n protected renderContent(\n style: any,\n rows: JSX.Element[],\n className: string\n ): JSX.Element {\n return (\n
\n {rows}\n
\n );\n }\n protected renderTitle(): JSX.Element {\n if (!this.panelBase.title) return null;\n const titleComponent = ReactElementFactory.Instance.createElement(\n this.panel.getTitleComponentName(),\n { element: this.panel, cssClasses: this.panel.cssClasses.panel }\n );\n var titleStyle = this.panel.cssClasses.panel.title;\n if (this.panel.isCollapsed || this.panel.isExpanded) {\n titleStyle += \" \" + this.panel.cssClasses.panel.titleExpandable;\n }\n\n if (this.panel.containsErrors) {\n titleStyle += \" \" + this.panel.cssClasses.panel.titleOnError;\n }\n\n return (\n {\n this.panel.toggleState();\n }}\n >\n {titleComponent}\n \n );\n }\n protected renderDescription(): JSX.Element {\n if (!this.panelBase.description) return null;\n var text = SurveyElementBase.renderLocString(this.panelBase.locDescription);\n return (\n
{text}
\n );\n }\n protected renderBottom(): JSX.Element {\n if (!this.panel.hasEditButton || !this.survey) return;\n return (\n
\n \n
\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"panel\", props => {\n return React.createElement(SurveyPanel, props);\n});\n","import * as React from \"react\";\nimport { ReactSurveyModel } from \"./reactsurveymodel\";\nimport { SurveyPage } from \"./page\";\nimport { SurveyNavigation } from \"./reactSurveyNavigation\";\nimport { SurveyError, Base } from \"survey-core\";\nimport { Question } from \"survey-core\";\nimport { ISurveyCreator } from \"./reactquestion\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { surveyCss } from \"survey-core\";\nimport { SurveyTimerPanel } from \"./reacttimerpanel\";\nimport {\n SurveyElementBase,\n SurveyQuestionElementBase,\n} from \"./reactquestion_element\";\nimport { SurveyLocStringViewer } from \"./string-viewer\";\nimport { PageModel } from \"survey-core\";\nimport { StylesManager } from \"survey-core\";\nimport { Helpers } from \"survey-core\";\nimport { ReactElementFactory } from \"./element-factory\";\n\nexport class Survey extends SurveyElementBase\n implements ISurveyCreator {\n private previousJSON = {};\n private rootRef: React.RefObject;\n public static get cssType(): string {\n return surveyCss.currentType;\n }\n public static set cssType(value: string) {\n StylesManager.applyTheme(value);\n }\n protected survey: ReactSurveyModel;\n private isCurrentPageChanged: boolean = false;\n private onCurrentPageChangedHandler = (sender: any, options: any): any => {\n this.isCurrentPageChanged = true;\n };\n\n constructor(props: any) {\n super(props);\n this.handleTryAgainClick = this.handleTryAgainClick.bind(this);\n this.createSurvey(props);\n this.updateSurvey(props, {});\n //set the first page\n var dummy = this.survey.currentPage;\n this.rootRef = React.createRef();\n }\n protected getStateElement(): Base {\n return this.survey;\n }\n shouldComponentUpdate(nextProps: any, nextState: any) {\n if (this.isModelJSONChanged(nextProps)) {\n this.createSurvey(nextProps);\n this.updateSurvey(nextProps, {});\n }\n return true;\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n if (this.isCurrentPageChanged) {\n this.isCurrentPageChanged = false;\n this.survey.scrollToTopOnPageChange();\n }\n this.updateSurvey(this.props, prevProps);\n }\n componentDidMount() {\n super.componentDidMount();\n var el = this.rootRef.current;\n if (el && this.survey) this.survey.doAfterRenderSurvey(el);\n if (this.survey) {\n this.survey.startTimerFromUI();\n }\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (this.survey) {\n this.survey.stopTimer();\n this.survey.onCurrentPageChanged.remove(this.onCurrentPageChangedHandler);\n }\n }\n doRender(): JSX.Element {\n var renderResult;\n if (this.survey.state == \"completed\") {\n renderResult = this.renderCompleted();\n } else if (this.survey.state == \"completedbefore\") {\n renderResult = this.renderCompletedBefore();\n } else if (this.survey.state == \"loading\") {\n renderResult = this.renderLoading();\n } else if (this.survey.state == \"starting\") {\n renderResult = this.renderStartPage();\n } else {\n renderResult = this.renderSurvey();\n }\n var header = this.renderHeader();\n var onSubmit = function(event: React.FormEvent) {\n event.preventDefault();\n };\n var customHeader =
;\n if (this.survey.hasLogo) {\n customHeader = null;\n }\n return (\n
\n
\n {customHeader}\n
\n {header}\n {renderResult}\n
\n
\n
\n );\n }\n protected renderElement(): JSX.Element {\n return this.doRender();\n }\n public get css(): any {\n return this.survey.css;\n }\n public set css(value: any) {\n this.survey.css = value;\n }\n handleTryAgainClick(event: any) {\n this.survey.doComplete();\n }\n protected renderCompleted(): JSX.Element {\n if (!this.survey.showCompletedPage) return null;\n var completedState = null;\n if (this.survey.completedState) {\n var tryAgainButton = null;\n if (this.survey.completedState == \"error\") {\n var btnText = this.survey.getLocString(\"saveAgainButton\");\n tryAgainButton = (\n \n );\n }\n var css = this.css.saveData[this.survey.completedState];\n completedState = (\n
\n
\n {this.survey.completedStateText}\n {tryAgainButton}\n
\n
\n );\n }\n var htmlValue = { __html: this.survey.processedCompletedHtml };\n return (\n
\n \n {completedState}\n
\n );\n }\n protected renderCompletedBefore(): JSX.Element {\n var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };\n return (\n
\n );\n }\n protected renderLoading(): JSX.Element {\n var htmlValue = { __html: this.survey.processedLoadingHtml };\n return (\n
\n );\n }\n protected renderStartPage(): JSX.Element {\n var startedPage = this.survey.startedPage\n ? this.renderPage(this.survey.startedPage)\n : null;\n var pageId = this.survey.startedPage ? this.survey.startedPage.id : \"\";\n return (\n
\n
\n {this.renderNavigation(\"top\")}\n {startedPage}\n {this.renderNavigation(\"bottom\")}\n
\n
\n );\n }\n protected renderSurvey(): JSX.Element {\n var currentPage = this.survey.currentPage\n ? this.renderPage(this.survey.currentPage)\n : null;\n var pageId = this.survey.currentPage ? this.survey.currentPage.id : \"\";\n var topProgress = this.survey.isShowProgressBarOnTop\n ? this.renderProgress(true)\n : null;\n var bottomProgress = this.survey.isShowProgressBarOnBottom\n ? this.renderProgress(false)\n : null;\n if (!currentPage) {\n currentPage = this.renderEmptySurvey();\n }\n return (\n \n {topProgress}\n {this.renderTimerPanel(\"top\")}\n {this.renderNavigation(\"top\")}\n {currentPage}\n {this.renderTimerPanel(\"bottom\")}\n {bottomProgress}\n {this.renderNavigation(\"bottom\")}\n
\n );\n }\n protected renderTitle(): JSX.Element {\n let title = null;\n let description = null;\n if (this.survey.title && this.survey.showTitle) {\n title = SurveyElementBase.renderLocString(this.survey.locTitle);\n description = SurveyElementBase.renderLocString(\n this.survey.locDescription\n );\n }\n return title ? (\n \n

{title}

\n
{description}
\n
\n ) : null;\n }\n protected renderHeader(): JSX.Element {\n if ((this.survey.title && this.survey.showTitle) || this.survey.hasLogo) {\n let title = this.renderTitle();\n let style: any = { objectFit: this.survey.logoFit };\n let imageBefore = null;\n let imageAfter = [];\n if (this.survey.isLogoBefore) {\n imageBefore = (\n
\n \n
\n );\n }\n if (this.survey.isLogoAfter) {\n imageAfter.push(\n
\n \n
\n );\n imageAfter.push(
);\n }\n return (\n
\n {imageBefore}\n {title}\n {imageAfter}\n
\n );\n }\n return null;\n }\n protected renderTimerPanel(location: string) {\n if (location === \"top\" && !this.survey.isTimerPanelShowingOnTop)\n return null;\n if (location === \"bottom\" && !this.survey.isTimerPanelShowingOnBottom)\n return null;\n return ;\n }\n protected renderPage(page: PageModel): JSX.Element {\n return (\n \n );\n }\n protected renderProgress(isTop: boolean): JSX.Element {\n return ReactElementFactory.Instance.createElement(\n \"sv-progress-\" + this.survey.progressBarType.toLowerCase(),\n { survey: this.survey, css: this.css, isTop: isTop }\n );\n }\n protected renderNavigation(navPosition: string): JSX.Element {\n if (\n this.survey.isNavigationButtonsShowing !== \"both\" &&\n (this.survey.isNavigationButtonsShowing === \"none\" ||\n this.survey.isNavigationButtonsShowing !== navPosition)\n ) {\n return null;\n }\n return ;\n }\n protected renderEmptySurvey(): JSX.Element {\n return {this.survey.emptySurveyText};\n }\n protected createSurvey(newProps: any) {\n if (!newProps) newProps = {};\n this.previousJSON = {};\n if (newProps) {\n if (newProps.model) {\n this.survey = newProps.model;\n } else {\n if (newProps.json) {\n this.previousJSON = newProps.json;\n this.survey = new ReactSurveyModel(newProps.json);\n }\n }\n } else {\n this.survey = new ReactSurveyModel();\n }\n if (!!newProps.css) {\n this.survey.mergeCss(newProps.css, this.css);\n }\n this.setSurveyEvents();\n }\n private isModelJSONChanged(newProps: any): boolean {\n if (!!newProps[\"model\"]) {\n return this.survey !== newProps[\"model\"];\n }\n if (!!newProps[\"json\"]) {\n return !Helpers.isTwoValueEquals(newProps[\"json\"], this.previousJSON);\n }\n return false;\n }\n protected updateSurvey(newProps: any, oldProps?: any) {\n if (!newProps) return;\n oldProps = oldProps || {};\n for (var key in newProps) {\n if (key == \"model\" || key == \"children\" || key == \"json\") {\n continue;\n }\n if (key == \"css\") {\n this.survey.mergeValues(newProps.css, this.survey.getCss());\n this.survey[\"updateElementCss\"]();\n continue;\n }\n if (newProps[key] === oldProps[key]) continue;\n if (key.indexOf(\"on\") == 0 && this.survey[key] && this.survey[key].add) {\n if (!!oldProps[key]) {\n this.survey[key].remove(oldProps[key]);\n }\n this.survey[key].add(newProps[key]);\n } else {\n this.survey[key] = newProps[key];\n }\n }\n }\n protected setSurveyEvents() {\n var self = this;\n\n this.survey.renderCallback = function() {\n var counter =\n !!self.state && !!self.state.modelChanged ? self.state.modelChanged : 0;\n self.setState({ modelChanged: counter + 1 });\n };\n this.survey.onPartialSend.add(sender => {\n if (!!self.state) {\n self.setState(self.state);\n }\n });\n this.survey.onCurrentPageChanged.add(this.onCurrentPageChangedHandler);\n }\n\n //ISurveyCreator\n public createQuestionElement(question: Question): JSX.Element {\n return ReactQuestionFactory.Instance.createQuestion(\n !question.isDefaultRendering || question.isDefaultRendering()\n ? question.getTemplate()\n : question.getComponentName(),\n {\n question: question,\n isDisplayMode: question.isReadOnly,\n creator: this,\n }\n );\n }\n public renderError(\n key: string,\n error: SurveyError,\n cssClasses: any\n ): JSX.Element {\n return (\n
\n \n \n \n \n
\n );\n }\n public questionTitleLocation(): string {\n return this.survey.questionTitleLocation;\n }\n public questionErrorLocation(): string {\n return this.survey.questionErrorLocation;\n }\n}\n","import * as React from \"react\";\nimport { SurveyNavigationBase } from \"./reactSurveyNavigationBase\";\n\nexport class SurveyNavigation extends SurveyNavigationBase {\n private mouseDownPage: any = null;\n constructor(props: any) {\n super(props);\n this.handlePrevClick = this.handlePrevClick.bind(this);\n this.handleNextClick = this.handleNextClick.bind(this);\n this.handleNextMouseDown = this.handleNextMouseDown.bind(this);\n this.handleMouseDown = this.handleMouseDown.bind(this);\n this.handleCompleteClick = this.handleCompleteClick.bind(this);\n this.handlePreviewClick = this.handlePreviewClick.bind(this);\n this.handleStartClick = this.handleStartClick.bind(this);\n }\n handlePrevClick(event: any) {\n this.survey.prevPage();\n }\n handleNextClick(event: any) {\n if (!!this.mouseDownPage && this.mouseDownPage !== this.survey.currentPage)\n return;\n this.mouseDownPage = null;\n this.survey.nextPage();\n }\n handleNextMouseDown(event: any) {\n this.mouseDownPage = this.survey.currentPage;\n return this.survey.navigationMouseDown();\n }\n handleMouseDown(event: any) {\n return this.survey.navigationMouseDown();\n }\n handleCompleteClick(event: any) {\n this.survey.completeLastPage();\n }\n handlePreviewClick(event: any) {\n this.survey.showPreview();\n }\n handleStartClick(event: any) {\n this.survey.start();\n }\n render(): JSX.Element {\n if (!this.survey || this.survey.isNavigationButtonsShowing === \"none\")\n return null;\n var isStartedPage = this.survey.state === \"starting\";\n var prevButton =\n !isStartedPage && !this.survey.isFirstPage && this.survey.isShowPrevButton\n ? this.renderButton(\n this.handlePrevClick,\n this.handleMouseDown,\n this.survey.pagePrevText,\n this.survey.cssNavigationPrev\n )\n : null;\n var nextButton =\n !isStartedPage && !this.survey.isLastPage\n ? this.renderButton(\n this.handleNextClick,\n this.handleNextMouseDown,\n this.survey.pageNextText,\n this.survey.cssNavigationNext\n )\n : null;\n var completeButton =\n !isStartedPage &&\n this.survey.isLastPage &&\n this.survey.isCompleteButtonVisible\n ? this.renderButton(\n this.handleCompleteClick,\n this.handleMouseDown,\n this.survey.completeText,\n this.survey.cssNavigationComplete\n )\n : null;\n var previewButton =\n !isStartedPage &&\n this.survey.isLastPage &&\n this.survey.isPreviewButtonVisible\n ? this.renderButton(\n this.handlePreviewClick,\n this.handleMouseDown,\n this.survey.previewText,\n this.survey.cssNavigationPreview\n )\n : null;\n var startButton = isStartedPage\n ? this.renderButton(\n this.handleStartClick,\n null,\n this.survey.startSurveyText,\n this.survey.cssNavigationStart\n )\n : null;\n return (\n
\n {startButton}\n {prevButton}\n {nextButton}\n {previewButton}\n {completeButton}\n
\n );\n }\n protected renderButton(\n click: any,\n mouseDown: any,\n text: string,\n btnClassName: string\n ): JSX.Element {\n var style = { marginRight: \"5px\" };\n return (\n \n );\n }\n}\n","import * as React from \"react\";\nimport { SurveyModel } from \"survey-core\";\n\nexport class SurveyNavigationBase extends React.Component {\n constructor(props: any) {\n super(props);\n this.state = { update: 0 };\n }\n protected get survey(): SurveyModel {\n return this.props.survey;\n }\n protected get css(): any {\n return this.props.css;\n }\n private updateStateFunction: any = null;\n componentDidMount() {\n if (this.survey) {\n var self = this;\n this.updateStateFunction = function () {\n self.setState({ update: self.state.update + 1 });\n };\n this.survey.onPageVisibleChanged.add(this.updateStateFunction);\n }\n }\n componentWillUnmount() {\n if (this.survey && this.updateStateFunction) {\n this.survey.onPageVisibleChanged.remove(this.updateStateFunction);\n this.updateStateFunction = null;\n }\n }\n}\n","import * as React from \"react\";\nimport { SurveyNavigationBase } from \"./reactSurveyNavigationBase\";\nimport { ReactElementFactory } from \"./element-factory\";\n\nexport class SurveyProgress extends SurveyNavigationBase {\n constructor(props: any) {\n super(props);\n }\n protected get isTop(): boolean {\n return this.props.isTop;\n }\n protected get progress(): number {\n return this.survey.progressValue;\n }\n protected get progressText(): string {\n return this.survey.progressText;\n }\n render(): JSX.Element {\n var style = this.isTop ? {} : { marginTop: \"1em\" };\n var progressStyle = {\n width: this.progress + \"%\",\n };\n return (\n
\n \n \n {this.progressText}\n \n
\n \n {this.progressText}\n \n
\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-progress-pages\", props => {\n return React.createElement(SurveyProgress, props);\n});\nReactElementFactory.Instance.registerElement(\"sv-progress-questions\", props => {\n return React.createElement(SurveyProgress, props);\n});\nReactElementFactory.Instance.registerElement(\n \"sv-progress-correctQuestions\",\n props => {\n return React.createElement(SurveyProgress, props);\n }\n);\nReactElementFactory.Instance.registerElement(\n \"sv-progress-requiredQuestions\",\n props => {\n return React.createElement(SurveyProgress, props);\n }\n);\n","import * as React from \"react\";\nimport { SurveyNavigationBase } from \"./reactSurveyNavigationBase\";\nimport { ReactElementFactory } from \"./element-factory\";\nimport { PageModel } from \"survey-core\";\nimport { SurveyProgressButtonsModel } from \"survey-core\";\n\nexport class SurveyProgressButtons extends SurveyNavigationBase {\n private progressButtonsModel: SurveyProgressButtonsModel;\n private updateScroller: any = undefined;\n private listContainerRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.progressButtonsModel = new SurveyProgressButtonsModel(this.survey);\n this.listContainerRef = React.createRef();\n }\n render(): JSX.Element {\n return (\n
\n
\n \n this.clickScrollButton(this.listContainerRef.current, true)\n }\n >
\n \n
    \n {this.getListElements()}\n
\n
\n \n this.clickScrollButton(this.listContainerRef.current, false)\n }\n >
\n \n \n );\n }\n protected getListElements(): JSX.Element[] {\n let buttons: JSX.Element[] = [];\n this.survey.visiblePages.forEach((page: PageModel, index: number) => {\n buttons.push(this.renderListElement(page, index));\n });\n return buttons;\n }\n protected renderListElement(page: PageModel, index: number): JSX.Element {\n return (\n this.clickListElement(index)\n : undefined\n }\n >\n \n {page.navigationTitle || page.name}\n \n \n {page.navigationDescription}\n \n \n );\n }\n protected isListElementClickable(index: number): boolean {\n return this.progressButtonsModel.isListElementClickable(index);\n }\n protected getListElementCss(index: number): string {\n return this.progressButtonsModel.getListElementCss(index);\n }\n protected clickListElement(index: number): void {\n this.progressButtonsModel.clickListElement(index);\n }\n protected getScrollButtonCss(isLeftScroll: boolean): string {\n let scrollCss: string = isLeftScroll\n ? this.survey.css.progressButtonsImageButtonLeft\n : this.survey.css.progressButtonsImageButtonRight;\n if (!this.state.hasScroller)\n scrollCss += \" \" + this.survey.css.progressButtonsImageButtonHidden;\n return scrollCss;\n }\n protected clickScrollButton(\n listContainerElement: Element,\n isLeftScroll: boolean\n ): void {\n listContainerElement.scrollLeft += (isLeftScroll ? -1 : 1) * 70;\n }\n componentDidMount() {\n this.updateScroller = setInterval(() => {\n this.setState({\n hasScroller:\n this.listContainerRef.current.scrollWidth >\n this.listContainerRef.current.offsetWidth,\n });\n }, 100);\n }\n componentWillUnmount() {\n if (typeof this.updateScroller !== \"undefined\") {\n clearInterval(this.updateScroller);\n this.updateScroller = undefined;\n }\n }\n}\n\nReactElementFactory.Instance.registerElement(\"sv-progress-buttons\", (props) => {\n return React.createElement(SurveyProgressButtons, props);\n});\n","import * as React from \"react\";\nimport { Survey } from \"./reactSurvey\";\nimport { ReactWindowModel } from \"./reactsurveymodel\";\nimport { SurveyElementBase } from \"./reactquestion_element\";\nimport { Base } from \"survey-core\";\n\nexport class SurveyWindow extends Survey {\n protected window: ReactWindowModel;\n constructor(props: any) {\n super(props);\n this.handleOnExpanded = this.handleOnExpanded.bind(this);\n }\n protected getStateElements(): Array {\n return [this.window, this.window.survey];\n }\n handleOnExpanded(event: any) {\n this.window.isExpanded = !this.window.isExpanded;\n }\n protected canRender(): boolean {\n return super.canRender() && this.window.isShowing;\n }\n protected renderElement(): JSX.Element {\n var header = this.renderWindowHeader();\n var body = this.window.isExpanded ? this.renderBody() : null;\n let style: React.CSSProperties = {\n position: \"fixed\",\n bottom: 3,\n right: 10,\n maxWidth: \"60%\",\n };\n return (\n
\n {header}\n {body}\n
\n );\n }\n protected renderWindowHeader(): JSX.Element {\n var styleA = { width: \"100%\", cursor: \"pointer\" };\n var styleTitle = { paddingRight: \"10px\" };\n var glyphClassName = this.window.isExpanded\n ? this.css.window.header.buttonCollapsed\n : this.css.window.header.buttonExpanded;\n glyphClassName = \"glyphicon pull-right \" + glyphClassName;\n var title = SurveyElementBase.renderLocString(this.survey.locTitle);\n return (\n
\n \n \n {title}\n \n \n \n {this.window.isExpanded ? (\n \n \n X\n \n \n ) : null}\n
\n );\n }\n protected renderBody(): JSX.Element {\n return
{this.doRender()}
;\n }\n protected createSurvey(newProps: any) {\n if (!newProps) newProps = {};\n super.createSurvey(newProps);\n this.window = new ReactWindowModel(null, this.survey);\n if (newProps.closeOnCompleteTimeout) {\n this.window.closeOnCompleteTimeout = newProps.closeOnCompleteTimeout;\n }\n this.window.isShowing = true;\n if (!this.window.isExpanded && (newProps.expanded || newProps.isExpanded))\n this.window.expand();\n var self = this;\n this.window.closeWindowOnCompleteCallback = function () {\n self.window.hide();\n };\n }\n}\n","import * as React from \"react\";\nimport { Question } from \"survey-core\";\nimport { SurveyElement, SurveyError, Base } from \"survey-core\";\nimport { SurveyQuestionCommentItem } from \"./reactquestion_comment\";\nimport { SurveyElementBase, ReactSurveyElement } from \"./reactquestion_element\";\nimport { SurveyCustomWidget } from \"./custom-widget\";\nimport { ReactElementFactory } from \"./element-factory\";\nimport { ReactSurveyModel } from \"./reactsurveymodel\";\n\nexport interface ISurveyCreator {\n createQuestionElement(question: Question): JSX.Element;\n renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;\n questionTitleLocation(): string;\n questionErrorLocation(): string;\n}\n\nexport class SurveyQuestion extends SurveyElementBase {\n private isNeedFocus = false;\n public static renderQuestionBody(\n creator: ISurveyCreator,\n question: Question\n ): JSX.Element {\n if (!question.visible) return null;\n var customWidget = question.customWidget;\n if (!customWidget) {\n return creator.createQuestionElement(question);\n }\n return ;\n }\n private rootRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.rootRef = React.createRef();\n }\n protected getStateElement(): Base {\n return this.question;\n }\n protected get question(): Question {\n return this.props.element;\n }\n private get creator(): ISurveyCreator {\n return this.props.creator;\n }\n componentDidMount() {\n super.componentDidMount();\n if (!!this.question) {\n this.question[\"react\"] = this;\n }\n this.doAfterRender();\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (!!this.question) {\n this.question[\"react\"] = null;\n }\n var el = this.rootRef.current;\n if (!!el) {\n el.removeAttribute(\"data-rendered\");\n }\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n this.doAfterRender();\n }\n private doAfterRender() {\n if (this.isNeedFocus) {\n this.question.clickTitleFunction();\n this.isNeedFocus = false;\n }\n if (this.question) {\n var el = this.rootRef.current;\n if (el && el.getAttribute(\"data-rendered\") !== \"r\") {\n el.setAttribute(\"data-rendered\", \"r\");\n el.setAttribute(\"name\", this.question.name);\n if (this.question.afterRender) {\n this.question.afterRender(el);\n }\n }\n }\n }\n protected canRender(): boolean {\n return (\n super.canRender() &&\n !!this.question &&\n !!this.creator &&\n this.question.isVisible\n );\n }\n protected renderElement(): JSX.Element {\n var question = this.question;\n var cssClasses = question.cssClasses;\n var questionRender = this.renderQuestion();\n var header = this.renderHeader(question);\n var headerTop = question.hasTitleOnLeftTop ? header : null;\n var headerBottom = question.hasTitleOnBottom ? header : null;\n var descriptionUnderInput = question.hasDescriptionUnderInput\n ? this.renderDescription(cssClasses, true)\n : null;\n let questionRootClass = question.cssRoot;\n\n var comment =\n question && question.hasComment ? this.renderComment(cssClasses) : null;\n var errorsTop =\n this.creator.questionErrorLocation() === \"top\"\n ? this.renderErrors(cssClasses, \"top\")\n : null;\n var errorsBottom =\n this.creator.questionErrorLocation() === \"bottom\"\n ? this.renderErrors(cssClasses, \"bottom\")\n : null;\n let rootStyle: { [index: string]: any } = {};\n if (question.renderWidth) {\n rootStyle[\"width\"] = question.renderWidth;\n rootStyle[\"flexGrow\"] = 1;\n rootStyle[\"flexShrink\"] = 1;\n rootStyle[\"flexBasis\"] = question.renderWidth;\n rootStyle[\"minWidth\"] = question.minWidth;\n rootStyle[\"maxWidth\"] = question.maxWidth;\n }\n if (!!question.paddingLeft) rootStyle[\"paddingLeft\"] = question.paddingLeft;\n if (!!question.paddingRight)\n rootStyle[\"paddingRight\"] = question.paddingRight;\n\n var contentStyle = {\n display: !this.question.isCollapsed ? \"block\" : \"none\",\n };\n\n if (question.isReadOnly) {\n questionRootClass += \" \" + cssClasses.disabled;\n }\n\n return (\n \n {headerTop}\n
\n {errorsTop}\n {questionRender}\n {comment}\n {errorsBottom}\n {descriptionUnderInput}\n
\n {headerBottom}\n \n );\n }\n protected wrapElement(element: JSX.Element): JSX.Element {\n const survey: ReactSurveyModel = this.question.survey as ReactSurveyModel;\n let wrapper: JSX.Element;\n if (survey) {\n wrapper = survey.wrapQuestion(element, this.question);\n }\n return wrapper ?? element;\n }\n protected renderQuestion(): JSX.Element {\n return SurveyQuestion.renderQuestionBody(this.creator, this.question);\n }\n protected renderTitle(cssClasses: any): JSX.Element {\n const titleComponent = ReactElementFactory.Instance.createElement(\n this.question.getTitleComponentName(),\n { element: this.question, cssClasses: this.question.cssClasses }\n );\n return (\n {\n this.question.toggleState();\n }}\n >\n {titleComponent}\n \n );\n }\n protected renderDescription(\n cssClasses: any,\n isUnderInput: boolean = false\n ): JSX.Element {\n var descriptionText = SurveyElementBase.renderLocString(\n this.question.locDescription\n );\n var className = isUnderInput\n ? cssClasses.descriptionUnderInput\n : cssClasses.description;\n return
{descriptionText}
;\n }\n protected renderComment(cssClasses: any): JSX.Element {\n // var commentText = SurveyElementBase.renderLocString(\n // this.question.locCommentText\n // );\n var commentText = this.question.commentText;\n return (\n
\n
{commentText}
\n \n
\n );\n }\n protected renderHeader(question: Question): JSX.Element {\n var cssClasses = question.cssClasses;\n var title = question.hasTitle ? this.renderTitle(cssClasses) : null;\n var description = question.hasDescriptionUnderTitle\n ? this.renderDescription(cssClasses)\n : null;\n return (\n
\n {title}\n {description}\n
\n );\n }\n protected renderErrors(cssClasses: any, location: string): JSX.Element {\n return (\n \n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"question\", props => {\n return React.createElement(SurveyQuestion, props);\n});\n\nexport class SurveyElementErrors extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.state = this.getState();\n }\n protected get id(): string {\n return this.props.id;\n }\n protected get element(): SurveyElement {\n var element = this.props.element;\n return element instanceof SurveyElement ? element : null;\n }\n private get creator(): ISurveyCreator {\n return this.props.creator;\n }\n protected get location(): string {\n return this.props.location;\n }\n private getState(prevState: any = null) {\n return !prevState ? { error: 0 } : { error: prevState.error + 1 };\n }\n protected canRender(): boolean {\n return !!this.element && this.element.hasVisibleErrors;\n }\n protected renderElement(): JSX.Element {\n var errors = [];\n for (var i = 0; i < this.element.errors.length; i++) {\n var key = \"error\" + i;\n errors.push(\n this.creator.renderError(key, this.element.errors[i], this.cssClasses)\n );\n }\n var classes = this.cssClasses.error.root;\n\n if (this.location === \"top\") {\n classes += \" \" + this.cssClasses.error.locationTop;\n } else if (this.location === \"bottom\") {\n classes += \" \" + this.cssClasses.error.locationBottom;\n }\n\n return (\n
\n {errors}\n
\n );\n }\n}\n\nexport class SurveyQuestionAndErrorsCell extends ReactSurveyElement {\n [index: string]: any;\n protected cellRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.cellRef = React.createRef();\n }\n protected getStateElement(): Base {\n return this.question;\n }\n protected get question(): Question {\n return this.getQuestion();\n }\n protected get creator(): ISurveyCreator {\n return this.props.creator;\n }\n protected getQuestion(): Question {\n return this.props.question;\n }\n componentDidMount() {\n super.componentDidMount();\n this.doAfterRender();\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (this.question) {\n var el = this.cellRef.current;\n if (!!el) {\n el.removeAttribute(\"data-rendered\");\n }\n }\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n this.doAfterRender();\n }\n protected doAfterRender() {}\n protected getCellClass(): any {\n return null;\n }\n protected canRender(): boolean {\n return !!this.question;\n }\n protected renderElement(): JSX.Element {\n var errorsLocation = this.creator.questionErrorLocation();\n var errors = this.getShowErrors() ? (\n \n ) : null;\n var errorsTop = errorsLocation === \"top\" ? errors : null;\n var errorsBottom = errorsLocation === \"bottom\" ? errors : null;\n var renderedCell = this.renderQuestion();\n var style = this.getCellStyle();\n return (\n \n {errorsTop}\n {renderedCell}\n {errorsBottom}\n \n );\n }\n protected getShowErrors(): boolean {\n return this.question.isVisible;\n }\n protected getCellStyle(): any {\n return null;\n }\n protected renderQuestion(): JSX.Element {\n return SurveyQuestion.renderQuestionBody(this.creator, this.question);\n }\n protected getHeaderText(): string {\n return \"\";\n }\n}\n","import * as React from \"react\";\nimport {\n ReactSurveyElement,\n SurveyQuestionElementBase,\n} from \"./reactquestion_element\";\nimport { SurveyQuestionCommentItem } from \"./reactquestion_comment\";\nimport { QuestionCheckboxModel } from \"survey-core\";\nimport { ItemValue } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { Base } from \"survey-core\";\n\nexport class SurveyQuestionCheckbox extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionCheckboxModel {\n return this.questionBase as QuestionCheckboxModel;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n return (\n (this.control = fieldset)}\n >\n \n {this.question.hasColumns\n ? this.getColumns(cssClasses)\n : this.getItems(cssClasses)}\n \n );\n }\n protected getColumns(cssClasses: any) {\n return this.question.columns.map((column: any, ci: number) => {\n var items = column.map((item: any, ii: number) =>\n this.renderItem(\n \"item\" + ii,\n item,\n ci === 0 && ii === 0,\n cssClasses,\n \"\" + ci + ii\n )\n );\n return (\n
\n {items}\n
\n );\n });\n }\n protected getItems(cssClasses: any): Array {\n var items = [];\n for (var i = 0; i < this.question.visibleChoices.length; i++) {\n var item = this.question.visibleChoices[i];\n var key = \"item\" + i;\n items.push(this.renderItem(key, item, i == 0, cssClasses, \"\" + i));\n }\n return items;\n }\n protected get textStyle(): any {\n return null;\n }\n protected renderItem(\n key: string,\n item: any,\n isFirst: boolean,\n cssClasses: any,\n index: string\n ): JSX.Element {\n return (\n \n );\n }\n}\nexport class SurveyQuestionCheckboxItem extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n this.selectAllChanged = this.selectAllChanged.bind(this);\n }\n protected getStateElement(): Base {\n return this.item;\n }\n protected get question(): QuestionCheckboxModel {\n return this.props.question;\n }\n protected get item(): ItemValue {\n return this.props.item;\n }\n protected get textStyle(): any {\n return this.props.textStyle;\n }\n protected get isFirst(): any {\n return this.props.isFirst;\n }\n protected get index(): number {\n return this.props.index;\n }\n private get hideCaption(): boolean {\n return this.props.hideCaption === true;\n }\n public shouldComponentUpdate(): boolean {\n return (\n !this.question.customWidget ||\n !!this.question.customWidgetData.isNeedRender ||\n !!this.question.customWidget.widgetJson.isDefaultRender ||\n !!this.question.customWidget.widgetJson.render\n );\n }\n handleOnChange(event: any) {\n var newValue = [].concat(this.question.renderedValue || []);\n var index = newValue.indexOf(this.item.value);\n if (event.target.checked) {\n if (index < 0) {\n newValue.push(this.item.value);\n }\n } else {\n if (index > -1) {\n newValue.splice(index, 1);\n }\n }\n this.question.renderedValue = newValue;\n }\n selectAllChanged(event: any) {\n this.question.toggleSelectAll();\n }\n protected canRender(): boolean {\n return !!this.item && !!this.question;\n }\n protected renderElement(): JSX.Element {\n var isChecked = this.question.isItemSelected(this.item);\n var otherItem =\n this.item.value === this.question.otherItem.value && isChecked\n ? this.renderOther()\n : null;\n return this.renderCheckbox(isChecked, otherItem);\n }\n protected get inputStyle(): any {\n return { marginRight: \"3px\" };\n }\n protected renderCheckbox(\n isChecked: boolean,\n otherItem: JSX.Element\n ): JSX.Element {\n var id = this.question.inputId + \"_\" + this.index;\n var text = !this.hideCaption ? this.renderLocString(this.item.locText) : \"\";\n let itemClass = this.question.getItemClass(this.item);\n let labelClass = this.question.getLabelClass(this.item);\n var onItemChanged =\n this.item == this.question.selectAllItem\n ? this.selectAllChanged\n : this.handleOnChange;\n\n var locText: any = this.item.locText;\n\n return (\n
\n \n {otherItem}\n
\n );\n }\n protected renderOther(): JSX.Element {\n return (\n
\n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"checkbox\", (props) => {\n return React.createElement(SurveyQuestionCheckbox, props);\n});\n","import * as React from \"react\";\nimport {\n ReactSurveyElement,\n SurveyQuestionUncontrolledElement,\n} from \"./reactquestion_element\";\nimport { QuestionCommentModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionComment extends SurveyQuestionUncontrolledElement {\n constructor(props: any) {\n super(props);\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var onBlur = !this.question.isInputTextUpdate\n ? this.updateValueOnEvent\n : null;\n var onInput = this.question.isInputTextUpdate\n ? this.updateValueOnEvent\n : null;\n var placeHolder = this.question.isReadOnly ? \"\" : this.question.placeHolder;\n if (this.question.isReadOnlyRenderDiv()) {\n return
{this.question.value}
;\n }\n return (\n (this.control = tetxarea)}\n maxLength={this.question.getMaxLength()}\n placeholder={placeHolder}\n onBlur={onBlur}\n onInput={onInput}\n cols={this.question.cols}\n rows={this.question.rows}\n aria-required={this.question.isRequired}\n aria-label={this.question.locTitle.renderedHtml}\n aria-invalid={this.question.errors.length > 0}\n aria-describedby={\n this.question.errors.length > 0 ? this.question.id + \"_errors\" : null\n }\n />\n );\n }\n}\n\nexport class SurveyQuestionCommentItem extends ReactSurveyElement {\n protected canRender(): boolean {\n return !!this.props.question;\n }\n protected renderElement(): JSX.Element {\n let question = this.props.question;\n let className = this.props.otherCss || this.cssClasses.comment;\n let handleOnChange = (event: any) => {\n this.setState({ comment: event.target.value });\n };\n let updateValueOnEvent = (event: any) => {\n question.comment = event.target.value;\n };\n var onBlur = !question.isInputTextUpdate ? updateValueOnEvent : null;\n var onInput = question.isInputTextUpdate ? updateValueOnEvent : null;\n\n let comment =\n !!this.state && this.state.comment !== undefined\n ? this.state.comment\n : question.comment || \"\";\n if (question.isReadOnlyRenderDiv()) {\n return
{comment}
;\n }\n return (\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"comment\", (props) => {\n return React.createElement(SurveyQuestionComment, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionUncontrolledElement } from \"./reactquestion_element\";\nimport { SurveyQuestion } from \"./reactquestion\";\nimport { QuestionCustomModel, QuestionCompositeModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { SurveyPanel } from \"./panel\";\n\nexport class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement {\n constructor(props: any) {\n super(props);\n }\n protected renderElement(): JSX.Element {\n return SurveyQuestion.renderQuestionBody(\n this.creator,\n this.question.contentQuestion\n );\n }\n}\n\nexport class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement {\n constructor(props: any) {\n super(props);\n }\n protected canRender(): boolean {\n return !!this.question.contentPanel;\n }\n protected renderElement(): JSX.Element {\n return (\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"custom\", (props) => {\n return React.createElement(SurveyQuestionCustom, props);\n});\nReactQuestionFactory.Instance.registerQuestion(\"composite\", (props) => {\n return React.createElement(SurveyQuestionComposite, props);\n});\n","import * as React from \"react\";\nimport {\n SurveyQuestionUncontrolledElement,\n ReactSurveyElement,\n} from \"./reactquestion_element\";\nimport { QuestionDropdownModel } from \"survey-core\";\nimport { SurveyQuestionCommentItem } from \"./reactquestion_comment\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { ItemValue } from \"survey-core\";\nimport { Base } from \"survey-core\";\n\nexport class SurveyQuestionDropdown extends SurveyQuestionUncontrolledElement {\n constructor(props: any) {\n super(props);\n }\n protected setValueCore(newValue: any) {\n this.questionBase.renderedValue = newValue;\n }\n protected getValueCore(): any {\n return this.questionBase.renderedValue;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var comment = this.question.isOtherSelected\n ? this.renderOther(cssClasses)\n : null;\n var select = this.renderSelect(cssClasses);\n return (\n
\n {select}\n {comment}\n
\n );\n }\n protected renderSelect(cssClasses: any): JSX.Element {\n if (this.isDisplayMode) {\n var isOtherSelected = this.question.isOtherSelected;\n return (\n // @ts-ignore\n
\n {isOtherSelected\n ? this.question.otherText\n : this.question.displayValue}\n
\n );\n }\n var options = [];\n for (var i = 0; i < this.question.visibleChoices.length; i++) {\n var item = this.question.visibleChoices[i];\n var key = \"item\" + i;\n var option = ;\n options.push(option);\n }\n var captionOption = this.question.showOptionsCaption ? (\n \n ) : null;\n\n return (\n
\n (this.control = select)}\n onChange={this.updateValueOnEvent}\n onInput={this.updateValueOnEvent}\n aria-label={this.question.locTitle.renderedHtml}\n aria-invalid={this.question.errors.length > 0}\n aria-describedby={\n this.question.errors.length > 0\n ? this.question.id + \"_errors\"\n : null\n }\n >\n {captionOption}\n {options}\n \n
\n );\n }\n protected renderOther(cssClasses: any): JSX.Element {\n return (\n
\n \n
\n );\n }\n}\n\nexport class SurveyQuestionOptionItem extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n }\n protected getStateElement(): Base {\n return this.item;\n }\n private get item(): ItemValue {\n return this.props.item;\n }\n protected canRender(): boolean {\n return !!this.item;\n }\n protected renderElement(): JSX.Element {\n return (\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"dropdown\", (props) => {\n return React.createElement(SurveyQuestionDropdown, props);\n});\n","import * as React from \"react\";\nimport { Helpers } from \"survey-core\";\nimport { LocalizableString } from \"survey-core\";\nimport { Question } from \"survey-core\";\nimport { ISurveyCreator } from \"./reactquestion\";\nimport { Survey } from \"./reactSurvey\";\nimport { Base, ITitleOwner, ArrayChanges, ISurvey } from \"survey-core\";\nimport { ReactElementFactory } from \"./element-factory\";\nexport class SurveyElementBase extends React.Component {\n public static renderLocString(\n locStr: LocalizableString,\n style: any = null,\n key?: string\n ): JSX.Element {\n return ReactElementFactory.Instance.createElement(locStr.renderAs, {\n locStr: locStr,\n style: style,\n key: key,\n });\n }\n private isRenderingValue: boolean;\n private changedStatePropNameValue: string;\n private nonStateProps: Array = [];\n constructor(props: any) {\n super(props);\n this.modifyNonStateProps(this.nonStateProps);\n }\n componentDidMount() {\n this.makeBaseElementsReact();\n }\n componentWillUnmount() {\n this.unMakeBaseElementsReact();\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n this.makeBaseElementsReact();\n }\n render(): JSX.Element {\n if (!this.canRender()) {\n return null;\n }\n\n this.isRenderingValue = true;\n var res = this.renderElement();\n this.isRenderingValue = false;\n\n res = this.wrapElement(res);\n\n this.changedStatePropNameValue = undefined;\n return res;\n }\n protected wrapElement(element: JSX.Element): JSX.Element {\n return element;\n }\n protected get isRendering(): boolean {\n return this.isRenderingValue;\n }\n protected canRender(): boolean {\n return true;\n }\n protected renderElement(): JSX.Element {\n return null;\n }\n protected get changedStatePropName(): string {\n return this.changedStatePropNameValue;\n }\n private makeBaseElementsReact() {\n var els = this.getStateElements();\n for (var i = 0; i < els.length; i++) {\n this.makeBaseElementReact(els[i]);\n }\n }\n private unMakeBaseElementsReact() {\n var els = this.getStateElements();\n for (var i = 0; i < els.length; i++) {\n this.unMakeBaseElementReact(els[i]);\n }\n }\n protected modifyNonStateProps(nonStateProps: Array) {}\n protected getStateElements(): Array {\n var el = this.getStateElement();\n return !!el ? [el] : [];\n }\n protected getStateElement(): Base {\n return null;\n }\n protected get isDisplayMode(): boolean {\n const props: any = this.props;\n return props.isDisplayMode || false;\n }\n protected renderLocString(\n locStr: LocalizableString,\n style: any = null\n ): JSX.Element {\n return SurveyElementBase.renderLocString(locStr, style);\n }\n\n private makeBaseElementReact(stateElement: Base) {\n if (!stateElement) return;\n stateElement.iteratePropertiesHash((hash, key) => {\n if (this.nonStateProps.indexOf(key) > -1) return;\n var val: any = hash[key];\n if (Array.isArray(val)) {\n var val: any = val;\n val[\"onArrayChanged\"] = (arrayChanges: ArrayChanges) => {\n if (this.isRendering) return;\n this.changedStatePropNameValue = key;\n this.setState((state: any) => {\n var newState: { [index: string]: any } = {};\n newState[key] = val;\n return newState as S;\n });\n };\n }\n });\n stateElement.setPropertyValueCoreHandler = (\n hash: any,\n key: string,\n val: any\n ) => {\n if (hash[key] !== val) {\n hash[key] = val;\n if (this.isRendering) return;\n this.changedStatePropNameValue = key;\n this.setState((state: any) => {\n var newState: { [index: string]: any } = {};\n newState[key] = val;\n return newState as S;\n });\n }\n };\n }\n private unMakeBaseElementReact(stateElement: Base) {\n if (!stateElement) return;\n stateElement.setPropertyValueCoreHandler = undefined;\n stateElement.iteratePropertiesHash((hash, key) => {\n var val: any = hash[key];\n if (Array.isArray(val)) {\n var val: any = val;\n val[\"onArrayChanged\"] = () => {};\n }\n });\n }\n}\n\nexport class ReactSurveyElement extends SurveyElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get cssClasses(): any {\n return this.props.cssClasses;\n }\n}\n\nexport class SurveyQuestionElementBase extends SurveyElementBase {\n control: HTMLElement;\n constructor(props: any) {\n super(props);\n }\n componentDidUpdate(prevProps: any, prevState: any) {\n super.componentDidUpdate(prevProps, prevState);\n this.updateDomElement();\n }\n componentDidMount() {\n this.updateDomElement();\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (!!this.questionBase) {\n this.questionBase.beforeDestroyQuestionElement(this.control);\n }\n }\n protected updateDomElement() {\n const el: HTMLElement = this.control;\n if (!!el) {\n if (el.getAttribute(\"data-rendered\") !== \"r\") {\n el.setAttribute(\"data-rendered\", \"r\");\n this.questionBase.afterRenderQuestionElement(el);\n }\n }\n }\n protected get questionBase(): Question {\n return this.props.question;\n }\n protected get creator(): ISurveyCreator {\n return this.props.creator;\n }\n protected canRender(): boolean {\n return !!this.questionBase && !!this.creator;\n }\n public shouldComponentUpdate(): boolean {\n return (\n !this.questionBase.customWidget ||\n !!this.questionBase.customWidgetData.isNeedRender ||\n !!this.questionBase.customWidget.widgetJson.isDefaultRender ||\n !!this.questionBase.customWidget.widgetJson.render\n );\n }\n}\n\nexport class SurveyQuestionUncontrolledElement<\n T extends Question\n> extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.updateValueOnEvent = this.updateValueOnEvent.bind(this);\n }\n protected get question(): T {\n return this.questionBase as T;\n }\n updateValueOnEvent = (event: any) => {\n if (\n !Helpers.isTwoValueEquals(this.questionBase.value, event.target.value)\n ) {\n this.setValueCore(event.target.value);\n }\n };\n protected setValueCore(newValue: any) {\n this.questionBase.value = newValue;\n }\n protected getValueCore(): any {\n return this.questionBase.value;\n }\n protected updateDomElement() {\n if (!!this.control) {\n const control: any = this.control;\n const newValue = this.getValueCore();\n if (!Helpers.isTwoValueEquals(newValue, control.value)) {\n control.value = this.getValue(newValue);\n }\n }\n super.updateDomElement();\n }\n private getValue(val: any): any {\n if (Helpers.isValueEmpty(val)) return \"\";\n return val;\n }\n}\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionEmptyModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionEmpty extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.state = { value: this.question.value };\n }\n protected get question(): QuestionEmptyModel {\n return this.questionBase as QuestionEmptyModel;\n }\n protected renderElement(): JSX.Element {\n return
;\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"empty\", (props) => {\n return React.createElement(SurveyQuestionEmpty, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionExpressionModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionExpression extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionExpressionModel {\n return this.questionBase as QuestionExpressionModel;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n return (\n (this.control = div)}\n >\n {this.question.displayValue}\n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"expression\", (props) => {\n return React.createElement(SurveyQuestionExpression, props);\n});\n","import { HashTable } from \"survey-core\";\n\nexport class ReactQuestionFactory {\n public static Instance: ReactQuestionFactory = new ReactQuestionFactory();\n private creatorHash: HashTable<(name: string) => JSX.Element> = {};\n\n public registerQuestion(\n questionType: string,\n questionCreator: (name: string) => JSX.Element\n ) {\n this.creatorHash[questionType] = questionCreator;\n }\n public getAllTypes(): Array {\n var result = new Array();\n for (var key in this.creatorHash) {\n result.push(key);\n }\n return result.sort();\n }\n public createQuestion(questionType: string, params: any): JSX.Element {\n var creator = this.creatorHash[questionType];\n if (creator == null) return null;\n return creator(params);\n }\n}\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionFileModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { confirmAction, detectIEOrEdge, loadFileFromBase64 } from \"survey-core\";\nexport class SurveyQuestionFile extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.state = {\n fileLoaded: 0,\n state: \"empty\",\n rootClass: this.question.cssClasses.root,\n };\n this.handleOnChange = this.handleOnChange.bind(this);\n this.question.onStateChanged.add((state: any) =>\n this.setState({ fileLoaded: this.state.fileLoaded + 1, state: state })\n );\n }\n protected get question(): QuestionFileModel {\n return this.questionBase as QuestionFileModel;\n }\n handleOnDragOver = (event: any) => {\n if (this.question.isReadOnly) {\n event.returnValue = false;\n return false;\n }\n event.dataTransfer.dropEffect = \"copy\";\n event.preventDefault();\n };\n handleOnDrop = (event: any) => {\n event.preventDefault();\n let src = event.dataTransfer;\n this.onChange(src);\n };\n handleOnChange = (event: any) => {\n var src = event.target || event.srcElement;\n this.onChange(src);\n };\n handleOnClean = (event: any) => {\n var question = this.question;\n var src = event.target || event.srcElement;\n if (question.needConfirmRemoveFile) {\n var isConfirmed = confirmAction(question.confirmRemoveAllMessage);\n if (!isConfirmed) return;\n }\n question.clear();\n src.parentElement.querySelectorAll(\"input\")[0].value = \"\";\n this.setState({ fileLoaded: this.state.fileLoaded + 1 });\n };\n handleOnRemoveFile = (event: any) => {\n var question = this.question;\n if (question.needConfirmRemoveFile) {\n var isConfirmed = confirmAction(\n question.getConfirmRemoveMessage(event.name)\n );\n if (!isConfirmed) return;\n }\n question.removeFile(event);\n this.setState({ fileLoaded: this.state.fileLoaded + 1 });\n };\n handleOnDownloadFile = (event: any, data: any) => {\n if (detectIEOrEdge()) {\n event.preventDefault();\n loadFileFromBase64(data.content, data.name);\n }\n };\n private onChange = (src: any) => {\n if (!(window as any)[\"FileReader\"]) return;\n if (!src || !src.files || src.files.length < 1) return;\n let files = [];\n let allowCount = this.question.allowMultiple ? src.files.length : 1;\n for (let i = 0; i < allowCount; i++) {\n files.push(src.files[i]);\n }\n src.value = \"\";\n this.question.loadFiles(files);\n this.setState({ fileLoaded: this.state.fileLoaded + 1 });\n };\n protected renderElement(): JSX.Element {\n var preview = this.renderPreview();\n var fileInput = null;\n var fileDecorator = this.renderFileDecorator();\n var clearButton = this.renderClearButton(\n this.question.cssClasses.removeButton\n );\n var clearButtonBottom = this.renderClearButton(\n this.question.cssClasses.removeButtonBottom\n );\n fileInput = (\n (this.control = input)}\n type=\"file\"\n onChange={!this.isDisplayMode ? this.handleOnChange : null}\n aria-required={this.question.isRequired}\n aria-label={this.question.locTitle.renderedHtml}\n aria-invalid={this.question.errors.length > 0}\n aria-describedby={\n this.question.errors.length > 0 ? this.question.id + \"_errors\" : null\n }\n multiple={this.question.allowMultiple}\n title={this.question.inputTitle}\n accept={this.question.acceptedTypes}\n />\n );\n return (\n
\n {fileInput}\n {fileDecorator}\n {clearButton}\n {preview}\n {clearButtonBottom}\n
\n );\n }\n protected renderFileDecorator(): JSX.Element {\n let noFileChosen = null;\n let chooseFile = null;\n let chooseFileCss =\n this.question.cssClasses.chooseFile +\n (this.isDisplayMode ? \" \" + this.question.cssClasses.disabled : \"\");\n chooseFile = (\n \n {this.question.chooseButtonCaption}\n \n );\n if (this.question.isEmpty()) {\n noFileChosen = (\n \n {this.question.noFileChosenCaption}\n \n );\n }\n return (\n \n
\n {chooseFile}\n {noFileChosen}\n
\n \n );\n }\n protected renderClearButton(className: string): JSX.Element {\n return !this.question.isEmpty() && !this.isDisplayMode ? (\n \n ) : null;\n }\n protected renderPreview(): JSX.Element {\n if (!this.question.previewValue) return null;\n var previews = this.question.previewValue.map((val, index) => {\n if (!val) return null;\n var fileSign = (\n {\n this.handleOnDownloadFile(event, val);\n }}\n title={val.name}\n download={val.name}\n style={{ width: this.question.imageWidth + \"px\" }}\n >\n {val.name}\n
\n );\n return (\n \n {val.name ? (\n
{fileSign}
\n ) : null}\n {this.question.canPreviewImage(val) ? (\n \n ) : null}\n {val.name && !this.question.isReadOnly ? (\n
\n this.handleOnRemoveFile(val)}\n >\n {this.question.removeFileCaption}\n \n this.handleOnRemoveFile(val)}\n viewBox=\"0 0 16 16\"\n >\n \n \n
\n ) : null}\n
\n {fileSign}\n
\n \n );\n });\n return
{previews}
;\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"file\", (props) => {\n return React.createElement(SurveyQuestionFile, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionHtmlModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionHtml extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionHtmlModel {\n return this.questionBase as QuestionHtmlModel;\n }\n protected canRender(): boolean {\n return super.canRender() && !!this.question.html;\n }\n protected renderElement(): JSX.Element {\n var htmlValue = { __html: this.question.locHtml.renderedHtml };\n return (\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"html\", (props) => {\n return React.createElement(SurveyQuestionHtml, props);\n});\n","import * as React from \"react\";\nimport {\n ReactSurveyElement,\n SurveyQuestionElementBase,\n} from \"./reactquestion_element\";\nimport { QuestionMatrixModel } from \"survey-core\";\nimport { MatrixRowModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { Helpers } from \"survey-core\";\nimport {dragDropTD as getDragDropTD} from \"./drag-drop-td\"\n\nexport class SurveyQuestionMatrix extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.state = { rowsChanged: 0 };\n }\n protected get question(): QuestionMatrixModel {\n return this.questionBase as QuestionMatrixModel;\n }\n componentDidMount() {\n super.componentDidMount();\n if (this.question) {\n var self = this;\n this.question.visibleRowsChangedCallback = function () {\n self.setState({ rowsChanged: self.state.rowsChanged + 1 });\n };\n }\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n if (this.question) {\n this.question.visibleRowsChangedCallback = null;\n }\n }\n\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var dragDropTH = this.question.allowRowsDragAndDrop ? : null;\n var rowsTH = this.question.hasRows ? : null;\n var headers = [];\n for (var i = 0; i < this.question.visibleColumns.length; i++) {\n var column = this.question.visibleColumns[i];\n var key = \"column\" + i;\n var columText = this.renderLocString(column.locText);\n headers.push(\n \n {columText}\n \n );\n }\n var rows = [];\n var visibleRows = this.question.visibleRows;\n for (var i = 0; i < visibleRows.length; i++) {\n var row = visibleRows[i];\n var key = \"row-\" + row.name + \"-\" + i;\n rows.push(\n \n );\n }\n var header = !this.question.showHeader ? null : (\n \n \n {dragDropTH}\n {rowsTH}\n {headers}\n \n \n );\n return (\n (this.control = root)}\n >\n
\n \n \n {header}\n {rows}\n
\n
\n \n );\n }\n}\n\nexport class SurveyQuestionMatrixRow extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n }\n private get question(): QuestionMatrixModel {\n return this.props.question;\n }\n private get row(): MatrixRowModel {\n return this.props.row;\n }\n handleOnChange(event: any) {\n this.row.value = event.target.value;\n this.setState({ value: this.row.value });\n }\n protected canRender(): boolean {\n return !!this.row;\n }\n protected renderElement(): JSX.Element {\n var dragDropTD = null;\n var rowsTD = null;\n\n if (this.question.allowRowsDragAndDrop) {\n dragDropTD = getDragDropTD(this.question);\n };\n if (this.question.hasRows) {\n var rowText = this.renderLocString(this.row.locText);\n rowsTD = {rowText};\n }\n\n var tds = this.generateTds();\n return (\n \n {dragDropTD}\n {rowsTD}\n {tds}\n \n );\n }\n\n generateTds() {\n var tds = [];\n var row = this.row;\n\n for (var i = 0; i < this.question.visibleColumns.length; i++) {\n var td = null;\n var column = this.question.visibleColumns[i];\n var key = \"value\" + i;\n\n //var isChecked = Helpers.isTwoValueEquals(row.value, column.value);\n var isChecked = row.value == column.value;\n let itemClass = this.question.getItemClass(row, column);\n var inputId = this.question.inputId + \"_\" + row.name + \"_\" + i;\n if (this.question.hasCellText) {\n var getHandler = !this.question.isReadOnly\n ? (column: any) => () => this.cellClick(row, column)\n : null;\n td = (\n \n {this.renderLocString(\n this.question.getCellDisplayLocText(row.name, column)\n )}\n \n );\n } else {\n td = (\n \n \n \n );\n }\n tds.push(td);\n }\n\n return tds;\n }\n cellClick(row: any, column: any) {\n row.value = column.value;\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"matrix\", (props) => {\n return React.createElement(SurveyQuestionMatrix, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionMatrixDropdownBase } from \"./reactquestion_matrixdropdownbase\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {\n constructor(props: any) {\n super(props);\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"matrixdropdown\", props => {\n return React.createElement(SurveyQuestionMatrixDropdown, props);\n});\n","import * as React from \"react\";\nimport {\n ReactSurveyElement,\n SurveyQuestionElementBase,\n} from \"./reactquestion_element\";\nimport { SurveyQuestion, SurveyQuestionAndErrorsCell } from \"./reactquestion\";\nimport {\n MatrixDropdownRowModelBase,\n QuestionMatrixDropdownModelBase,\n QuestionMatrixDropdownRenderedRow,\n QuestionMatrixDropdownRenderedCell,\n} from \"survey-core\";\nimport { Question } from \"survey-core\";\nimport { SurveyQuestionCheckboxItem } from \"./reactquestion_checkbox\";\nimport { SurveyQuestionRadioItem } from \"./reactquestion_radiogroup\";\nimport { SurveyPanel } from \"./panel\";\n\nimport { SurveyActionBar } from \"./components/action-bar/action-bar\";\nimport { IActionBarItem } from \"survey-core\";\nimport {dragDropTD} from \"./drag-drop-td\"\n\n\nexport class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.state = this.getState();\n }\n protected get question(): QuestionMatrixDropdownModelBase {\n return this.questionBase as QuestionMatrixDropdownModelBase;\n }\n private getState(prevState: any = null) {\n return { rowCounter: !prevState ? 0 : prevState.rowCounter + 1 };\n }\n private updateVisibleRowsChangedCallback() {\n this.question.visibleRowsChangedCallback = () => {\n this.updateStateOnCallback();\n };\n }\n private renderedTableResetCallback() {\n this.question.onRenderedTableResetCallback = () => {\n this.updateStateOnCallback();\n };\n }\n private updateStateOnCallback() {\n if (this.isRendering) return;\n this.setState(this.getState(this.state));\n }\n componentDidMount() {\n super.componentDidMount();\n this.updateVisibleRowsChangedCallback();\n this.renderedTableResetCallback();\n }\n protected renderElement(): JSX.Element {\n return this.renderTableDiv();\n }\n renderTableDiv(): JSX.Element {\n var header = this.renderHeader();\n var footers = this.renderFooter();\n var rows = this.renderRows();\n var divStyle = this.question.horizontalScroll\n ? ({ overflowX: \"scroll\" } as React.CSSProperties)\n : ({} as React.CSSProperties);\n return (\n
(this.control = root)}>\n \n {header}\n {rows}\n {footers}\n
\n
\n );\n }\n renderHeader(): JSX.Element {\n var table = this.question.renderedTable;\n if (!table.showHeader) return null;\n var headers: any[] = [];\n var dragDropTH = this.question.allowRowsDragAndDrop ? : null;\n var cells = table.headerRow.cells;\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n var key = \"column\" + i;\n var columnStyle: any = {};\n if (!!cell.width) {\n columnStyle.width = cell.width;\n }\n if (!!cell.minWidth) {\n columnStyle.minWidth = cell.minWidth;\n }\n var columnTitle = this.renderLocString(cell.locTitle);\n var requiredSpace = !!cell.requiredText ?   : null;\n var requiredText = !!cell.requiredText ? (\n {cell.requiredText}\n ) : null;\n headers.push(\n \n {columnTitle}\n {requiredSpace}\n {requiredText}\n \n );\n }\n return (\n \n \n {dragDropTH}\n {headers}\n \n \n );\n }\n renderFooter(): JSX.Element {\n var table = this.question.renderedTable;\n if (!table.showFooter) return null;\n var row = this.renderRow(\n \"footer\",\n table.footerRow,\n this.question.cssClasses\n );\n return {row};\n }\n renderRows(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var rows = [];\n var renderedRows = this.question.renderedTable.rows;\n for (var i = 0; i < renderedRows.length; i++) {\n rows.push(\n this.renderRow(renderedRows[i].id, renderedRows[i], cssClasses)\n );\n }\n return {rows};\n }\n renderRow(\n keyValue: any,\n row: QuestionMatrixDropdownRenderedRow,\n cssClasses: any\n ): JSX.Element {\n var matrixrow = [];\n var cells = row.cells;\n\n matrixrow.push(this.question.allowRowsDragAndDrop ? dragDropTD(this.question): null);\n\n for (var i = 0; i < cells.length; i++) {\n matrixrow.push(this.renderCell(cells[i], i, cssClasses));\n }\n var key = \"row\" + keyValue;\n return (\n \n {matrixrow}\n \n );\n }\n\n renderCell(\n cell: QuestionMatrixDropdownRenderedCell,\n index: number,\n cssClasses: any\n ): JSX.Element {\n var key = \"cell\" + index;\n if (cell.hasQuestion) {\n return (\n \n );\n }\n var cellContent = null;\n var requiredSpace = null;\n var requiredText = null;\n var cellStyle: any = null;\n if (!!cell.width || !!cell.minWidth) {\n cellStyle = {};\n if (!!cell.width) cellStyle.width = cell.width;\n if (!!cell.minWidth) cellStyle.minWidth = cell.minWidth;\n }\n if (cell.hasTitle) {\n cellContent = this.renderLocString(cell.locTitle);\n if (cell.requiredText) {\n requiredSpace =  ;\n requiredText = {cell.requiredText};\n }\n }\n if (cell.isActionsCell) {\n cellContent = (\n \n );\n }\n if (cell.hasPanel) {\n cellContent = (\n \n );\n }\n return (\n \n {cellContent}\n {requiredSpace}\n {requiredText}\n \n );\n }\n}\n\nclass SurveyQuestionMatrixActionsCell extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n }\n\n get items(): Array {\n return this.props.items;\n }\n protected renderElement(): JSX.Element {\n return ;\n }\n}\n\nexport class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {\n constructor(props: any) {\n super(props);\n }\n private get cell(): QuestionMatrixDropdownRenderedCell {\n return this.props.cell;\n }\n protected getQuestion(): Question {\n var q = super.getQuestion();\n if (!!q) return q;\n return !!this.cell ? this.cell.question : null;\n }\n protected doAfterRender() {\n var el = this.cellRef.current;\n if (\n el &&\n this.cell &&\n this.question &&\n this.question.survey &&\n el.getAttribute(\"data-rendered\") !== \"r\"\n ) {\n el.setAttribute(\"data-rendered\", \"r\");\n var options = {\n cell: this.cell,\n cellQuestion: this.question,\n htmlElement: el,\n row: this.cell.row,\n column: this.cell.cell.column,\n };\n this.question.survey.matrixAfterCellRender(this.question, options);\n }\n }\n protected getShowErrors(): boolean {\n return (\n this.question.isVisible &&\n (!this.cell.isChoice || this.cell.isFirstChoice)\n );\n }\n protected getCellClass(): any {\n return this.cell.className;\n }\n protected getCellStyle(): any {\n var res: any = super.getCellStyle();\n if (!!this.cell.width || !!this.cell.minWidth) {\n if (!res) res = {};\n if (!!this.cell.width) res.width = this.cell.width;\n if (!!this.cell.minWidth) res.minWidth = this.cell.minWidth;\n }\n\n return res;\n }\n\n protected getHeaderText(): string {\n return this.cell.headers;\n }\n protected renderQuestion(): JSX.Element {\n if (!this.cell.isChoice)\n return SurveyQuestion.renderQuestionBody(this.creator, this.question);\n if (this.cell.isCheckbox) return this.renderCellCheckboxButton();\n return this.renderCellRadiogroupButton();\n }\n private renderCellCheckboxButton(): JSX.Element {\n var key = this.cell.question.id + \"item\" + this.cell.choiceIndex;\n return (\n \n );\n }\n private renderCellRadiogroupButton(): JSX.Element {\n var key = this.cell.question.id + \"item\" + this.cell.choiceIndex;\n return (\n \n );\n }\n}\n","import * as React from \"react\";\n\nimport { ReactSurveyElement } from \"./reactquestion_element\";\nimport { MatrixDropdownRowModelBase } from \"survey-core\";\nimport { QuestionMatrixDynamicModel } from \"survey-core\";\n\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { SurveyQuestionMatrixDropdownBase } from \"./reactquestion_matrixdropdownbase\";\n\nexport class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDropdownBase {\n constructor(props: any) {\n super(props);\n this.handleOnRowAddClick = this.handleOnRowAddClick.bind(this);\n }\n protected get matrix(): QuestionMatrixDynamicModel {\n return this.questionBase as QuestionMatrixDynamicModel;\n }\n handleOnRowAddClick(event: any) {\n this.matrix.addRow();\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var showTable = this.question.renderedTable.showTable;\n var mainDiv = showTable\n ? this.renderTableDiv()\n : this.renderNoRowsContent(cssClasses);\n return (\n
\n {this.renderAddRowButtonOnTop(cssClasses)}\n {mainDiv}\n {this.renderAddRowButtonOnBottom(cssClasses)}\n
\n );\n }\n protected renderAddRowButtonOnTop(cssClasses: any): JSX.Element {\n if (!this.matrix.renderedTable.showAddRowOnTop) return null;\n return this.renderAddRowButton(cssClasses);\n }\n protected renderAddRowButtonOnBottom(cssClasses: any): JSX.Element {\n if (!this.matrix.renderedTable.showAddRowOnBottom) return null;\n return this.renderAddRowButton(cssClasses);\n }\n protected renderNoRowsContent(cssClasses: any): JSX.Element {\n var text = this.renderLocString(this.matrix.locEmptyRowsText);\n var textDiv =
{text}
;\n var btn = this.renderAddRowButton(cssClasses, true);\n return (\n
\n {textDiv}\n {btn}\n
\n );\n }\n protected renderAddRowButton(\n cssClasses: any,\n isEmptySection: boolean = false\n ): JSX.Element {\n var btnCss =\n cssClasses.button +\n \" \" +\n cssClasses.buttonAdd +\n (isEmptySection ? \" \" + cssClasses.emptyRowsButton : \"\");\n return (\n
\n \n {this.matrix.addRowText}\n \n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"matrixdynamic\", (props) => {\n return React.createElement(SurveyQuestionMatrixDynamic, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { SurveyQuestionAndErrorsCell } from \"./reactquestion\";\nimport { QuestionMultipleTextModel } from \"survey-core\";\nimport { MultipleTextItemModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionMultipleText extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionMultipleTextModel {\n return this.questionBase as QuestionMultipleTextModel;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var tableRows = this.question.getRows();\n var rows = [];\n for (var i = 0; i < tableRows.length; i++) {\n rows.push(this.renderRow(i, tableRows[i], cssClasses));\n }\n return (\n \n {rows}\n
\n );\n }\n protected renderRow(\n rowIndex: number,\n items: Array,\n cssClasses: any\n ) {\n var key: string = \"item\" + rowIndex;\n var tds = [];\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n var itemTitle = this.renderLocString(item.locTitle);\n var spans = [];\n var ed = item.editor;\n if (!!ed.isRequireTextOnStart || ed.isRequireTextBeforeTitle) {\n spans.push(\n \n {ed.requiredText}\n \n );\n spans.push( );\n }\n spans.push(\n \n {itemTitle}\n \n );\n if (!!ed.isRequireTextAfterTitle) {\n spans.push( );\n spans.push(\n \n {ed.requiredText}\n \n );\n }\n tds.push(\n \n {spans}\n \n );\n tds.push(\n \n );\n }\n return (\n \n {tds}\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"multipletext\", (props) => {\n return React.createElement(SurveyQuestionMultipleText, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionPanelDynamicModel } from \"survey-core\";\nimport { SurveyPanel } from \"./panel\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { SurveyModel } from \"survey-core\";\nimport { Question } from \"survey-core\";\n\nexport class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.handleOnPanelAddClick = this.handleOnPanelAddClick.bind(this);\n this.handleOnPanelPrevClick = this.handleOnPanelPrevClick.bind(this);\n this.handleOnPanelNextClick = this.handleOnPanelNextClick.bind(this);\n this.handleOnRangeChange = this.handleOnRangeChange.bind(this);\n }\n protected get question(): QuestionPanelDynamicModel {\n return this.questionBase as QuestionPanelDynamicModel;\n }\n componentDidMount() {\n super.componentDidMount();\n this.setState({ panelCounter: 0 });\n var self = this;\n this.question.panelCountChangedCallback = function() {\n self.updateQuestionRendering();\n };\n this.question.currentIndexChangedCallback = function() {\n self.updateQuestionRendering();\n };\n this.question.renderModeChangedCallback = function() {\n self.updateQuestionRendering();\n };\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n this.question.panelCountChangedCallback = null;\n this.question.currentIndexChangedCallback = null;\n this.question.renderModeChangedCallback = null;\n }\n private updateQuestionRendering() {\n this.setState({\n panelCounter: this.state ? this.state.panelCounter + 1 : 1,\n });\n }\n handleOnPanelAddClick(event: any) {\n this.question.addPanelUI();\n }\n handleOnPanelPrevClick(event: any) {\n this.question.goToPrevPanel();\n }\n handleOnPanelNextClick(event: any) {\n this.question.goToNextPanel();\n }\n handleOnRangeChange(event: any) {\n this.question.currentIndex = event.target.value;\n }\n protected renderElement(): JSX.Element {\n var panels = [];\n if (this.question.isRenderModeList) {\n for (var i = 0; i < this.question.panels.length; i++) {\n var panel = this.question.panels[i];\n panels.push(\n \n );\n }\n } else {\n if (this.question.currentPanel != null) {\n var panel = this.question.currentPanel;\n panels.push(\n \n );\n }\n }\n var btnAdd = this.question.isRenderModeList\n ? this.renderAddRowButton()\n : null;\n var navTop = this.question.isProgressTopShowing\n ? this.renderNavigator()\n : null;\n var navBottom = this.question.isProgressBottomShowing\n ? this.renderNavigator()\n : null;\n\n var style: any = {};\n if (this.question.horizontalScroll) {\n style[\"overflowX\"] = \"scroll\";\n }\n\n return (\n
\n {navTop}\n
{panels}
\n {navBottom}\n {btnAdd}\n
\n );\n }\n protected renderNavigator(): JSX.Element {\n var range = this.question.isRangeShowing ? this.renderRange() : null;\n var btnPrev = this.rendrerPrevButton();\n var btnNext = this.rendrerNextButton();\n var btnAdd = this.renderAddRowButton();\n var progressClass = this.question.isProgressTopShowing\n ? this.question.cssClasses.progressTop\n : this.question.cssClasses.progressBottom;\n return (\n
\n
\n {btnPrev}\n {range}\n {btnNext}\n
\n {btnAdd}\n
\n {this.question.progressText}\n
\n
\n );\n }\n\n protected rendrerPrevButton() {\n var getButtonPrevCss = (question: Question) => {\n var btnClasses = question.cssClasses.buttonPrev;\n if (!question.isPrevButtonShowing) {\n btnClasses += \" \" + question.cssClasses.buttonPrev + \"--disabled\";\n }\n return btnClasses;\n };\n\n return (\n
\n \n \n \n
\n );\n }\n protected rendrerNextButton() {\n var getButtonNextCss = function(question: Question) {\n var btnClasses = question.cssClasses.buttonNext;\n if (!question.isNextButtonShowing) {\n btnClasses += \" \" + question.cssClasses.buttonNext + \"--disabled\";\n }\n return btnClasses;\n };\n\n return (\n
\n \n \n \n
\n );\n }\n\n protected renderRange(): JSX.Element {\n var getProgress = () => {\n var rangeMax = this.question.panelCount - 1;\n return (this.question.currentIndex / rangeMax) * 100 + \"%\";\n };\n\n return (\n
\n \n
\n );\n }\n protected renderAddRowButton(): JSX.Element {\n if (!this.question.canAddPanel) return null;\n\n var classes =\n this.question.cssClasses.button +\n \" \" +\n this.question.cssClasses.buttonAdd;\n\n if (this.question.renderMode === \"list\") {\n classes += \" \" + this.question.cssClasses.buttonAdd + \"--list-mode\";\n }\n\n return (\n \n );\n }\n}\n\nexport class SurveyQuestionPanelDynamicItem extends SurveyPanel {\n constructor(props: any) {\n super(props);\n this.handleOnPanelRemoveClick = this.handleOnPanelRemoveClick.bind(this);\n }\n private get question(): QuestionPanelDynamicModel {\n return this.props.question;\n }\n private get index(): number {\n return this.props.index;\n }\n protected getSurvey(): SurveyModel {\n return !!this.question ? (this.question.survey as SurveyModel) : null;\n }\n protected getCss(): any {\n var survey = this.getSurvey();\n return !!survey ? survey.getCss() : {};\n }\n handleOnPanelRemoveClick(event: any) {\n this.question.removePanelUI(this.index);\n }\n public render() {\n let panel = super.render();\n let removeButton = this.renderButton();\n var separator =\n this.question.isRenderModeList &&\n this.index < this.question.panelCount - 1 ? (\n
\n ) : null;\n return (\n <>\n
\n {panel}\n {removeButton}\n
\n {separator}\n \n );\n }\n protected renderButton(): JSX.Element {\n if (\n !this.question.canRemovePanel ||\n (this.question.isRenderModeList && this.panel.isCollapsed)\n )\n return null;\n return (\n \n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"paneldynamic\", props => {\n return React.createElement(SurveyQuestionPanelDynamic, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase, ReactSurveyElement } from \"./reactquestion_element\";\nimport { QuestionRadiogroupModel } from \"survey-core\";\nimport { ItemValue } from \"survey-core\";\nimport { SurveyQuestionCommentItem } from \"./reactquestion_comment\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\nimport { Base } from \"survey-core\";\n\nexport class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n }\n protected get question(): QuestionRadiogroupModel {\n return this.questionBase as QuestionRadiogroupModel;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var clearButton = null;\n if (this.question.canShowClearButton) {\n clearButton = (\n
\n this.question.clearValue()}\n value={this.question.clearButtonCaption}\n />\n
\n );\n }\n return (\n (this.control = fieldset)}\n role=\"radiogroup\"\n >\n {this.question.hasTitle ? null\n : }\n {this.question.hasColumns\n ? this.getColumns(cssClasses)\n : this.getItems(cssClasses)}\n {clearButton}\n \n );\n }\n protected getColumns(cssClasses: any) {\n var value = this.getStateValue();\n return this.question.columns.map((column: any, ci: number) => {\n var items = column.map((item: any, ii: number) =>\n this.renderItem(item, value, cssClasses, \"\" + ci + ii)\n );\n return (\n
\n {items}\n
\n );\n });\n }\n protected getItems(cssClasses: any): Array {\n var items = [];\n var value = this.getStateValue();\n for (var i = 0; i < this.question.visibleChoices.length; i++) {\n var item = this.question.visibleChoices[i];\n items.push(this.renderItem(item, value, cssClasses, \"\" + i));\n }\n return items;\n }\n protected get textStyle(): any {\n return { marginLeft: \"3px\", display: \"inline\", position: \"static\" };\n }\n private renderItem(\n item: ItemValue,\n value: any,\n cssClasses: any,\n index: string\n ): JSX.Element {\n var key = \"item\" + index;\n return (\n \n );\n }\n private getStateValue(): any {\n return !this.question.isEmpty() ? this.question.renderedValue : \"\";\n }\n}\n\nexport class SurveyQuestionRadioItem extends ReactSurveyElement {\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n }\n protected getStateElement(): Base {\n return this.item;\n }\n protected get question(): QuestionRadiogroupModel {\n return this.props.question;\n }\n protected get item(): ItemValue {\n return this.props.item;\n }\n protected get textStyle(): any {\n return this.props.textStyle;\n }\n protected get index(): number {\n return this.props.index;\n }\n protected get isChecked(): boolean {\n return this.props.isChecked;\n }\n private get hideCaption(): boolean {\n return this.props.hideCaption === true;\n }\n public shouldComponentUpdate(): boolean {\n return (\n !this.question.customWidget ||\n !!this.question.customWidgetData.isNeedRender ||\n !!this.question.customWidget.widgetJson.isDefaultRender ||\n !!this.question.customWidget.widgetJson.render\n );\n }\n handleOnChange(event: any) {\n this.question.renderedValue = this.item.value;\n }\n protected canRender(): boolean {\n return !!this.question && !!this.item;\n }\n protected renderElement(): JSX.Element {\n var otherItem =\n this.isChecked && this.item.value === this.question.otherItem.value\n ? this.renderOther(this.cssClasses)\n : null;\n\n var id = this.question.inputId + \"_\" + this.index;\n var itemText = !this.hideCaption\n ? this.renderLocString(this.item.locText, this.textStyle)\n : \"\";\n var itemClass = this.question.getItemClass(this.item);\n var labelClass = this.question.getLabelClass(this.item);\n var locText: any = this.item.locText;\n var controlLabelClass = this.question.getControlLabelClass(this.item);\n\n return (\n
\n \n {otherItem}\n
\n );\n }\n protected renderOther(cssClasses: any): JSX.Element {\n return (\n
\n \n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"radiogroup\", (props) => {\n return React.createElement(SurveyQuestionRadiogroup, props);\n});\n","import * as React from \"react\";\nimport {\n ReactSurveyElement,\n SurveyQuestionElementBase,\n} from \"./reactquestion_element\";\nimport { QuestionRankingModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionRanking extends SurveyQuestionElementBase {\n protected get question(): QuestionRankingModel {\n return this.questionBase as QuestionRankingModel;\n }\n\n protected renderElement(): JSX.Element {\n return (\n (this.control = root)}\n >\n {this.getItems()}\n \n );\n }\n\n protected getItems(): Array {\n var items = [];\n var rankingChoices = this.question.rankingChoices;\n for (var i = 0; i < rankingChoices.length; i++) {\n var item = rankingChoices[i];\n var key = item.value + \"-\" + i + \"-item\";\n var text = this.renderLocString(item.locText);\n var index = this.question.getNumberByIndex(i);\n items.push(\n this.renderItem(\n key,\n text,\n index,\n this.question.handleKeydown,\n this.question.cssClasses,\n this.question.getItemClass(item)\n )\n );\n }\n return items;\n }\n\n protected renderItem(\n key: string,\n text: JSX.Element,\n index: string,\n handleKeydown: (event: any) => void,\n cssClasses: any,\n itemClass: string\n ): JSX.Element {\n return (\n \n );\n }\n}\n\nexport class SurveyQuestionRankingItem extends ReactSurveyElement {\n protected get text(): string {\n return this.props.text;\n }\n protected get index(): string {\n return this.props.index;\n }\n protected get handleKeydown(): (event: any) => void {\n return this.props.handleKeydown;\n }\n protected get cssClasses(): any {\n return this.props.cssClasses;\n }\n protected get itemClass(): string {\n return this.props.itemClass;\n }\n\n protected renderElement(): JSX.Element {\n return (\n \n
\n
\n
\n
\n \n \n \n \n \n \n \n
\n\n
{this.index}
\n
{this.text}
\n
\n
\n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"ranking\", (props) => {\n return React.createElement(SurveyQuestionRanking, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { SurveyQuestionCommentItem } from \"./reactquestion_comment\";\nimport { QuestionRatingModel } from \"survey-core\";\nimport { ItemValue } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionRating extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.handleOnChange = this.handleOnChange.bind(this);\n }\n protected get question(): QuestionRatingModel {\n return this.questionBase as QuestionRatingModel;\n }\n handleOnChange(event: any) {\n this.question.value = event.target.value;\n this.setState({ value: this.question.value });\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var values = [];\n var minText = this.question.minRateDescription\n ? this.renderLocString(this.question.locMinRateDescription)\n : null;\n var maxText = this.question.maxRateDescription\n ? this.renderLocString(this.question.locMaxRateDescription)\n : null;\n for (var i = 0; i < this.question.visibleRateValues.length; i++) {\n var minTextValue = i == 0 ? minText : null;\n var maxTextValue =\n i == this.question.visibleRateValues.length - 1 ? maxText : null;\n values.push(\n this.renderItem(\n \"value\" + i,\n this.question.visibleRateValues[i],\n i,\n minTextValue,\n maxTextValue,\n cssClasses\n )\n );\n }\n var comment = this.question.hasOther ? this.renderOther(cssClasses) : null;\n return (\n
(this.control = div)}>\n
\n \n {values}\n
\n {comment}\n
\n );\n }\n protected renderItem(\n key: string,\n item: ItemValue,\n index: number,\n minText: JSX.Element,\n maxText: JSX.Element,\n cssClasses: any\n ): JSX.Element {\n var isChecked = this.question.value == item.value;\n var className = cssClasses.item;\n if (isChecked) className += \" \" + cssClasses.selected;\n if (this.isDisplayMode) className += \" \" + cssClasses.disabled;\n\n var itemText = this.renderLocString(item.locText);\n var minTextBlock = !!minText ? (\n {minText}\n ) : null;\n var maxTextBlock = !!maxText ? (\n {maxText}\n ) : null;\n return (\n \n );\n }\n protected renderOther(cssClasses: any): JSX.Element {\n return (\n
\n \n
\n );\n }\n}\nReactQuestionFactory.Instance.registerQuestion(\"rating\", (props) => {\n return React.createElement(SurveyQuestionRating, props);\n});\n","import * as React from \"react\";\nimport { SurveyQuestionUncontrolledElement } from \"./reactquestion_element\";\nimport { QuestionTextModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionText extends SurveyQuestionUncontrolledElement<\n QuestionTextModel\n> {\n private _isWaitingForEnter = false;\n //controlRef: React.RefObject;\n constructor(props: any) {\n super(props);\n //this.controlRef = React.createRef();\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n var style: any = {};\n if (!!this.question.inputWidth) {\n style.width = this.question.inputWidth;\n }\n var onKeyDown = null;\n var onKeyUp = null;\n var onCompositionUpdate = null;\n if (this.question.isInputTextUpdate) {\n onKeyDown = (e: any) => (this._isWaitingForEnter = e.keyCode === 229);\n onKeyUp = (e: any) => {\n if (!this._isWaitingForEnter || e.keyCode === 13) {\n this.updateValueOnEvent(e);\n this._isWaitingForEnter = false;\n }\n };\n onCompositionUpdate = (e: any) => {\n e.persist();\n setTimeout(() => {\n this.updateValueOnEvent(e);\n }, 1);\n };\n }\n var onChange = (e: any) => {\n if(e.target === document.activeElement) {\n if (this.question.isInputTextUpdate) {\n this.updateValueOnEvent(e);\n }\n } else {\n this.updateValueOnEvent(e);\n }\n }\n var placeHolder =\n this.question.inputType === \"range\" || this.question.isReadOnly\n ? \"\"\n : this.question.placeHolder;\n var dataList = this.renderDataList();\n return (\n \n (this.control = input)}\n style={style}\n maxLength={this.question.getMaxLength()}\n min={this.question.renderedMin}\n max={this.question.renderedMax}\n step={this.question.renderedStep}\n size={this.question.inputSize}\n placeholder={placeHolder}\n list={this.question.dataListId}\n autoComplete={this.question.autoComplete}\n onBlur={this.updateValueOnEvent}\n onChange={onChange}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onCompositionUpdate={onCompositionUpdate}\n aria-required={this.question.isRequired}\n aria-label={this.question.locTitle.renderedHtml}\n aria-invalid={this.question.errors.length > 0}\n aria-describedby={\n this.question.errors.length > 0\n ? this.question.id + \"_errors\"\n : null\n }\n />\n {dataList}\n \n );\n }\n private renderDataList(): JSX.Element {\n if (!this.question.dataListId) return null;\n var items = this.question.dataList;\n if (items.length == 0) return null;\n var options = [];\n for (var i = 0; i < items.length; i++) {\n options.push();\n }\n return {options};\n }\n // protected updateDomElement() {\n // this.control = this.controlRef.current;\n // super.updateDomElement();\n // }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"text\", props => {\n return React.createElement(SurveyQuestionText, props);\n});\n","import { SurveyModel } from \"survey-core\";\nimport { SurveyWindowModel, Question } from \"survey-core\";\nimport { ReactElementFactory } from \"./element-factory\";\nexport class ReactSurveyModel extends SurveyModel {\n renderCallback: () => void;\n constructor(jsonObj: any = null) {\n super(jsonObj);\n }\n public render() {\n if (this.renderCallback) {\n this.renderCallback();\n }\n }\n public mergeCss(src: any, dest: any) {\n this.mergeValues(src, dest);\n }\n public doAfterRenderSurvey(el: any) {\n this.afterRenderSurvey(el);\n }\n protected onLoadSurveyFromService() {\n if (!!this.currentPage) {\n this.currentPage.setWasShown(false);\n this.currentPage.onFirstRendering();\n }\n this.render();\n }\n protected onLoadingSurveyFromService() {\n this.render();\n }\n public setCompletedState(value: string, text: string) {\n super.setCompletedState(value, text);\n this.render();\n }\n public start(): boolean {\n var res = super.start();\n this.render();\n return res;\n }\n public wrapQuestion(element: JSX.Element, question: Question): JSX.Element {\n const componentName = this.getElementWrapperComponentName(question);\n const componentData = this.getElementWrapperComponentData(question);\n return ReactElementFactory.Instance.createElement(componentName, {\n element,\n question,\n componentData,\n });\n }\n}\n\nexport class ReactWindowModel extends SurveyWindowModel {\n constructor(jsonObj: any = null, model: ReactSurveyModel = null) {\n super(jsonObj, model);\n }\n protected createSurvey(jsonObj: any): SurveyModel {\n return new ReactSurveyModel(jsonObj);\n }\n public get renderCallback(): () => void {\n return this.survey.renderCallback;\n }\n public set renderCallback(val: () => void) {\n this.survey.renderCallback = val;\n }\n}\n\nSurveyModel.platform = \"react\";\n","import * as React from \"react\";\nimport { SurveyModel } from \"survey-core\";\n\nexport class SurveyTimerPanel extends React.Component {\n constructor(props: any) {\n super(props);\n }\n protected get survey(): SurveyModel {\n return this.props.survey;\n }\n update = () => {\n this.setState({ timeSpent: this.survey.timeSpent });\n };\n componentDidMount() {\n this.survey.onTimer.add(this.update);\n }\n componentWillUnmount() {\n this.survey.onTimer.remove(this.update);\n }\n render(): JSX.Element {\n return
{this.survey.timerInfoText}
;\n }\n}\n","import * as React from \"react\";\nimport { ISurveyCreator } from \"./reactquestion\";\nimport { SurveyModel } from \"survey-core\";\nimport { QuestionRowModel } from \"survey-core\";\nimport { SurveyElementBase } from \"./reactquestion_element\";\nimport { IElement, Base } from \"survey-core\";\nimport { ReactElementFactory } from \"./element-factory\";\nimport { settings } from \"survey-core\";\n\nexport class SurveyRow extends SurveyElementBase {\n private rootRef: React.RefObject;\n constructor(props: any) {\n super(props);\n this.rootRef = React.createRef();\n }\n protected getStateElement(): Base {\n return this.row;\n }\n private get row(): QuestionRowModel {\n return this.props.row;\n }\n private get survey(): SurveyModel {\n return this.props.survey;\n }\n private get creator(): ISurveyCreator {\n return this.props.creator;\n }\n protected get css(): any {\n return this.props.css;\n }\n protected canRender(): boolean {\n return !!this.row && !!this.survey && !!this.creator && this.row.visible;\n }\n protected renderElement(): JSX.Element {\n var elements = null;\n if (this.row.isNeedRender) {\n elements = this.row.elements.map(element => this.createElement(element));\n }\n return (\n
\n {elements}\n
\n );\n }\n componentDidMount() {\n super.componentDidMount();\n var el = this.rootRef.current;\n if (!!el) {\n if (!this.row.isNeedRender) {\n var rowContainerDiv = el;\n setTimeout(() => {\n this.row.startLazyRendering(rowContainerDiv);\n }, 10);\n }\n }\n }\n public shouldComponentUpdate(nextProps: any, nextState: any): boolean {\n if (nextProps.row !== this.row) {\n nextProps.row.isNeedRender = this.row.isNeedRender;\n this.stopLazyRendering();\n }\n return true;\n }\n private stopLazyRendering() {\n this.row.stopLazyRendering();\n this.row.isNeedRender = !this.row.isLazyRendering;\n }\n componentWillUnmount() {\n super.componentWillUnmount();\n this.stopLazyRendering();\n }\n\n protected createElement(element: IElement): JSX.Element {\n var elementType = element.getType();\n if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {\n elementType = \"question\";\n }\n return ReactElementFactory.Instance.createElement(elementType, {\n key: element.name,\n element: element,\n creator: this.creator,\n survey: this.survey,\n css: this.css,\n });\n }\n}\n","import * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestion_element\";\nimport { QuestionSignaturePadModel } from \"survey-core\";\nimport { ReactQuestionFactory } from \"./reactquestion_factory\";\n\nexport class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {\n constructor(props: any) {\n super(props);\n this.state = { value: this.question.value };\n }\n protected get question(): QuestionSignaturePadModel {\n return this.questionBase as QuestionSignaturePadModel;\n }\n protected renderElement(): JSX.Element {\n var cssClasses = this.question.cssClasses;\n return (\n
(this.control = root)}>\n
\n \n
\n
\n \n ✖\n \n
\n
\n );\n }\n}\n\nReactQuestionFactory.Instance.registerQuestion(\"signaturepad\", (props) => {\n return React.createElement(SurveyQuestionSignaturePad, props);\n});\n","import React from \"react\";\r\nimport { LocalizableString } from \"survey-core\";\r\nimport { ReactElementFactory } from \"./element-factory\";\r\n\r\nexport class SurveyLocStringEditor extends React.Component {\r\n constructor(props: any) {\r\n super(props);\r\n this.state = { changed: 0 };\r\n }\r\n private get locStr(): LocalizableString {\r\n return this.props.locStr;\r\n }\r\n private get style(): any {\r\n return this.props.style;\r\n }\r\n componentDidMount() {\r\n if (!this.locStr) return;\r\n var self = this;\r\n this.locStr.onChanged = function () {\r\n self.setState({ changed: self.state.changed + 1 });\r\n };\r\n }\r\n componentWillUnmount() {\r\n if (!this.locStr) return;\r\n this.locStr.onChanged = function () {};\r\n }\r\n onInput = (event: any) => {\r\n this.locStr.text = event.target.innerText;\r\n };\r\n onClick = (event: any) => {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n };\r\n render(): JSX.Element {\r\n if (!this.locStr) {\r\n return null;\r\n }\r\n if (this.locStr.hasHtml) {\r\n const htmlValue = { __html: this.locStr.renderedHtml };\r\n return (\r\n \r\n );\r\n }\r\n return (\r\n \r\n {this.locStr.renderedHtml}\r\n \r\n );\r\n }\r\n}\r\n\r\nReactElementFactory.Instance.registerElement(\r\n LocalizableString.editableRenderer,\r\n (props) => {\r\n return React.createElement(SurveyLocStringEditor, props);\r\n }\r\n);\r\n","import React from \"react\";\r\nimport { LocalizableString } from \"survey-core\";\r\nimport { ReactElementFactory } from \"./element-factory\";\r\n\r\nexport class SurveyLocStringViewer extends React.Component {\r\n constructor(props: any) {\r\n super(props);\r\n this.state = { changed: 0 };\r\n }\r\n private get locStr(): LocalizableString {\r\n return this.props.locStr;\r\n }\r\n private get style(): any {\r\n return this.props.style;\r\n }\r\n componentDidMount() {\r\n if (!this.locStr) return;\r\n var self = this;\r\n this.locStr.onChanged = function () {\r\n self.setState({ changed: self.state.changed + 1 });\r\n };\r\n }\r\n componentWillUnmount() {\r\n if (!this.locStr) return;\r\n this.locStr.onChanged = function () {};\r\n }\r\n render(): JSX.Element {\r\n if (!this.locStr) return null;\r\n if (this.locStr.hasHtml) {\r\n let htmlValue = { __html: this.locStr.renderedHtml };\r\n return ;\r\n }\r\n return {this.locStr.renderedHtml};\r\n }\r\n}\r\n\r\nReactElementFactory.Instance.registerElement(\r\n LocalizableString.defaultRenderer,\r\n (props) => {\r\n return React.createElement(SurveyLocStringViewer, props);\r\n }\r\n);\r\n","import { Question } from \"./question\";\n\nexport class RendererFactory {\n public static Instance: RendererFactory = new RendererFactory();\n\n private renderersHash: {\n [questionType: string]: { [renderAs: string]: any };\n } = {};\n\n public unregisterRenderer(questionType: string, rendererAs: string) {\n delete this.renderersHash[questionType][rendererAs];\n }\n\n public registerRenderer(\n questionType: string,\n renderAs: string,\n renderer: any\n ) {\n if (!this.renderersHash[questionType]) {\n this.renderersHash[questionType] = {};\n }\n this.renderersHash[questionType][renderAs] = renderer;\n }\n\n public getRenderer(questionType: string, renderAs: string) {\n return (\n (this.renderersHash[questionType] &&\n this.renderersHash[questionType][renderAs]) ||\n \"default\"\n );\n }\n\n public getRendererByQuestion(question: Question): any {\n return this.getRenderer(question.getType(), question.renderAs);\n }\n}\n","/**\n * Global survey settings\n */\nexport var settings = {\n /**\n * The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.\n * The default\n */\n commentPrefix: \"-Comment\",\n /**\n * Encode parameter on calling restful web API\n */\n webserviceEncodeParameters: true,\n /**\n * Cache the result for choices getting from web services. Set this property to false, to disable the caching.\n */\n useCachingForChoicesRestful: true,\n get useCachingForChoicesRestfull() {\n return settings.useCachingForChoicesRestful;\n },\n set useCachingForChoicesRestfull(val: boolean) {\n settings.useCachingForChoicesRestful = val;\n },\n /**\n * SurveyJS web service API url\n */\n surveyServiceUrl: \"https://api.surveyjs.io/public/v1/Survey\",\n /**\n * separator that can allow to set value and text of ItemValue object in one string as: \"value|text\"\n */\n itemValueSeparator: \"|\",\n /**\n * default locale name for localizable strings that uses during serialization, {\"default\": \"My text\", \"de\": \"Mein Text\"}\n */\n defaultLocaleName: \"default\",\n /**\n * Default row name for matrix (single choice)\n */\n matrixDefaultRowName: \"default\",\n /**\n * Default cell type for dropdown and dynamic matrices\n */\n matrixDefaultCellType: \"dropdown\",\n /**\n * Total value postfix for dropdown and dynamic matrices. The total value stores as: {matrixName} + {postfix}\n */\n matrixTotalValuePostFix: \"-total\",\n /**\n * Maximum row count in dynamic matrix\n */\n matrixMaximumRowCount: 1000,\n /**\n * Maximum rowCount that returns in addConditionObjectsByContext function\n */\n matrixMaxRowCountInCondition: 1,\n /**\n * Maximum panel count in dynamic panel\n */\n panelMaximumPanelCount: 100,\n /**\n * Maximum rate value count in rating question\n */\n ratingMaximumRateValueCount: 20,\n /**\n * Disable the question while choices are getting from the web service\n */\n disableOnGettingChoicesFromWeb: false,\n /**\n * Set to true to always serialize the localization string as object even if there is only one value for default locale. Instead of string \"MyStr\" serialize as {default: \"MyStr\"}\n */\n serializeLocalizableStringAsObject: false,\n /**\n * Set to false to hide empty page title and description in design mode\n */\n allowShowEmptyTitleInDesignMode: true,\n /**\n * Set to false to hide empty page description in design mode\n */\n allowShowEmptyDescriptionInDesignMode: true,\n /**\n * Set this property to true to execute the complete trigger on value change instead of on next page.\n */\n executeCompleteTriggerOnValueChanged: false,\n /**\n * Set this property to false to execute the skip trigger on next page instead of on value change.\n */\n executeSkipTriggerOnValueChanged: true,\n /**\n * Set this property to change readOnlyCommentRenderMode: \"textarea\" (default) or (div)\n */\n readOnlyCommentRenderMode: \"textarea\",\n /**\n * Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.\n * @param message\n */\n confirmActionFunc: function(message: string): boolean {\n return confirm(message);\n },\n /**\n * Set this property to change the default value of the minWidth constraint\n */\n minWidth: \"300px\",\n /**\n * Set this property to change the default value of the minWidth constraint\n */\n maxWidth: \"initial\",\n /**\n * This property tells how many times survey re-run expressions on value changes during condition running. We need it to avoid recursions in the expressions\n */\n maximumConditionRunCountOnValueChanged: 10,\n /**\n * By default visibleIndex for question with titleLocation = \"hidden\" is -1, and survey doesn't count these questions when set questions numbers.\n * Set it true, and a question next to a question with hidden title will increase it's number.\n */\n setQuestionVisibleIndexForHiddenTitle: false,\n /**\n * By default visibleIndex for question with hideNumber = true is -1, and survey doesn't count these questions when set questions numbers.\n * Set it true, and a question next to a question with hidden title number will increase it's number.\n */\n setQuestionVisibleIndexForHiddenNumber: false,\n /**\n * By default all rows are rendered no matters whwther they are visible.\n * Set it true, and survey markup rows will be rendered only if they are visible in viewport.\n * This feature is experimantal and might do not support all the use cases.\n */\n lazyRowsRendering: false,\n /**\n * By default checkbox and radiogroup items are ordered in rows.\n * Set it \"column\", and items will be ordered in columns.\n */\n showItemsInOrder: \"default\",\n /**\n * Supported validators by question types. You can modify this variable to add validators for new question types or add/remove for existing question types.\n */\n supportedValidators: {\n question: [\"expression\"],\n comment: [\"text\", \"regex\"],\n text: [\"numeric\", \"text\", \"regex\", \"email\"],\n checkbox: [\"answercount\"],\n },\n /**\n * Set the value as string \"yyyy-mm-dd\". text questions with inputType \"date\" will not allow to set to survey date that less than this value\n */\n minDate: \"\",\n /**\n * Set the value as string \"yyyy-mm-dd\". text questions with inputType \"date\" will not allow to set to survey date that greater than this value\n */\n maxDate: \"\",\n showModal: <\n (\n componentName: string,\n data: any,\n onApply: () => void,\n onCancel?: () => void\n ) => void\n >undefined,\n};\n","import { surveyCss } from \"./defaultCss/cssstandard\";\nexport class StylesManager {\n private static SurveyJSStylesSheetId = \"surveyjs-styles\";\n\n public static Styles: { [key: string]: string } = {\n // \".sv_bootstrap_css\":\n // \"position: relative; width: 100%; background-color: #f4f4f4\",\n // \".sv_bootstrap_css .sv_custom_header\":\n // \"position: absolute; width: 100%; height: 275px; background-color: #e7e7e7;\",\n // \".sv_bootstrap_css .sv_container\":\n // \"max-width: 80%; margin: auto; position: relative; color: #6d7072; padding: 0 1em;\",\n // \".sv_bootstrap_css .panel-body\":\n // \"background-color: white; padding: 1em 1em 5em 1em; border-top: 2px solid lightgray;\",\n \".sv_main span\": \"word-break: break-word;\",\n\n \".sv_main legend\": \"border: none; margin: 0;\",\n\n \".sv_bootstrap_css .sv_qstn\": \"padding: 0.5em 1em 1.5em 1em;\",\n \".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]\":\n \"vertical-align: middle; margin-top: -1px\",\n \".sv_bootstrap_css .sv_qstn fieldset\": \"display: block;\",\n \".sv_bootstrap_css .sv_qstn .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline\":\n \"display: inline-block;\",\n\n \".sv_bootstrap_css .sv-paneldynamic__progress-container \":\n \"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;\",\n\n \".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label\":\n \"display: inline; position: static;\",\n \".sv_main.sv_bootstrapmaterial_css .checkbox\":\n \"margin-top:10px;margin-bottom:10px;\",\n\n \".sv_row\": \"clear: both; min-width:300px;\",\n \".sv_row .sv_qstn\": \"float: left\",\n \".sv_row .sv_qstn:last-child\": \"float: none\",\n \".sv_qstn\":\n \"display: inline-block; vertical-align: top; overflow: auto; min-width:300px;\",\n \".sv_p_container\":\n \"display: inline-block; vertical-align: top; min-width:300px;\",\n\n \".sv_q_title .sv_question_icon\": \"float: right; margin-right: 1em;\",\n \".sv_q_title .sv_question_icon::before\":\n \"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);\",\n \".sv_q_title .sv_question_icon.sv_expanded::before\":\n \"transform: rotate(180deg);\",\n \".sv_qbln .checkbox-material\": \"margin-right: 3px;\",\n \".sv_qcbx .checkbox-material\": \"margin-right: 5px;\",\n \".sv_qcbx .checkbox label\": \"justify-content: left; display: inline-block;\",\n \".sv_qstn .radio label\": \"justify-content: left; display: inline-block;\",\n \".sv_qstn .sv_q_imgsel > label img\": \"pointer-events: none;\",\n \".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline\": \"display: inline-block;\",\n \".sv_qstn label.sv_q_m_label\":\n \"position: absolute; margin: 0; display: block; width: 100%;\",\n \".sv_qstn td\": \"position: relative;\",\n \".sv_q_mt_item_value\": \"float: left;\",\n '[dir=\"rtl\"] .sv_q_mt_item_value': \"float: right;\",\n \".sv_qstn.sv_qstn_left\": \"margin-top: 0.75em;\",\n \".sv_qstn .title-left\": \"float: left; margin-right: 1em;\",\n '[dir=\"rtl\"] .sv_qstn .title-left': \"float: right; margin-left: 1em;\",\n \".sv_qstn .content-left\": \"overflow: hidden\",\n \".sv_q_radiogroup_inline .sv_q_radiogroup_other\": \"display: inline-block;\",\n \".sv_q_checkbox_inline .sv_q_checkbox_other\": \"display: inline-block;\",\n \".sv_q_checkbox_inline, .sv_q_radiogroup_inline, .sv_q_imagepicker_inline\":\n \"line-height: 2.5em;\",\n \".form-inline .sv_q_checkbox_inline:not(:last-child)\": \"margin-right: 1em;\",\n \".form-inline .sv_q_radiogroup_inline:not(:last-child)\":\n \"margin-right: 1em;\",\n \".sv_imgsel .sv_q_imagepicker_inline:not(:last-child)\":\n \"margin-right: 1em;\",\n \".sv_qstn fieldset\": \"border: none; margin: 0; padding: 0;\",\n \".sv_qstn .sv_q_file_placeholder\": \"display:none\",\n\n \".sv_p_title\": \"padding-left: 1em; padding-bottom: 0.3em;\",\n \".sv_p_title_expandable\": \"cursor: pointer;\",\n \".sv_q_title_expandable\": \"cursor: pointer;\",\n \".sv_p_title .sv_panel_icon\": \"float: right; margin-right: 1em;\",\n \".sv_p_title .sv_panel_icon::before\":\n \"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);\",\n \".sv_p_title .sv_panel_icon.sv_expanded::before\":\n \"transform: rotate(180deg);\",\n \".sv_p_footer\": \"padding-left: 1em; padding-bottom: 1em;padding-top: 1em;\",\n\n \".sv_matrix_cell_detail_button\": \"position: relative\",\n \".sv_detail_panel_icon\":\n \"display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px;\",\n \".sv_detail_panel_icon::before\":\n \"content: ''; background-repeat: no-repeat; background-position: center; width: 14px; height: 14px; display: block; transform: rotate(270deg); background-image: url(\\\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 15 15' style='enable-background:new 0 0 15 15;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='14,5.5 12.6,4.1 7.5,9.1 2.4,4.1 1,5.5 7.5,12 '/%3E%3C/svg%3E%0A\\\");\",\n \".sv_detail_panel_icon.sv_detail_expanded::before\":\n \"transform: rotate(0deg)\",\n \".sv_matrix_empty_rows_section\":\n \"text-align: center; vertical-align: middle;\",\n \".sv_matrix_empty_rows_text\": \"padding:20px\",\n\n \".sv_q_file > input[type=file], .sv_q_file > button\":\n \"display: inline-block;\",\n \".sv_q_file_preview\":\n \"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;\",\n \".sv_q_file_preview > a\":\n \"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;\",\n \".sv_q_file_remove_button\": \"line-height: normal;\",\n \".sv_q_file_remove\": \"display: block; cursor: pointer;\",\n\n \".sv_q_m_cell_text\": \"cursor: pointer;\",\n\n \".sv_q_dd_other\": \"margin-top: 1em;\",\n \".sv_q_dd_other input\": \"width: 100%;\",\n\n \".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1\":\n \"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2\":\n \"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3\":\n \"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4\":\n \"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5\":\n \"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n\n \".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1\":\n \"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2\":\n \"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3\":\n \"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4\":\n \"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n \".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5\":\n \"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;\",\n\n \".sv_qstn .sv_q_file_input\": \"color: transparent;\",\n\n \".sv_qstn .sv_q_imgsel label > div\":\n \"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;\",\n \".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed\":\n \"display: block;\",\n\n \".sv_qstn table tr td .sv_q_m_cell_label\":\n \"position: absolute; left: 0; right: 0; top: 0; bottom: 0;\",\n\n \"f-panel\": \"padding: 0.5em 1em; display: inline-block; line-height: 2em;\",\n\n \".sv_progress_bar > span\": \"white-space: nowrap;\",\n\n //progress buttons\n \".sv_progress-buttons__container-center\": \"text-align: center;\",\n \".sv_progress-buttons__container\":\n \"display: inline-block; font-size:0; width: 100%; max-width: 1100px; white-space: nowrap; overflow: hidden;\",\n \".sv_progress-buttons__image-button-left\":\n \"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=);\",\n \".sv_progress-buttons__image-button-right\":\n \"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==);\",\n \".sv_progress-buttons__image-button--hidden\": \"visibility: hidden;\",\n \".sv_progress-buttons__list-container\":\n \"max-width: calc(100% - 36px); display: inline-block; overflow: hidden;\",\n \".sv_progress-buttons__list\":\n \"display: inline-block; width: max-content; padding-left: 28px; padding-right: 28px; margin-top: 14px; margin-bottom: 14px;\",\n \".sv_progress-buttons__list li\":\n \"width: 138px; font-size: 14px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; text-align: center; vertical-align: top; display: inline-block;\",\n \".sv_progress-buttons__list li:before\":\n \"width: 24px; height: 24px; content: ''; line-height: 30px; border: 3px solid #8dd9ca; display: block; margin: 0 auto 10px auto; border-radius: 50%; box-sizing: content-box; background-color: #8dd9ca; cursor: pointer;\",\n \".sv_progress-buttons__list li:after\":\n \"width: 73%; height: 3px; content: ''; position: absolute; background-color: #d4d4d4; top: 15px; left: -36.5%;\",\n \".sv_progress-buttons__list li:first-child:after\": \"content: none;\",\n \".sv_progress-buttons__list .sv_progress-buttons__page-title\":\n \"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: $text-color; font-weight: bold;\",\n \".sv_progress-buttons__list .sv_progress-buttons__page-description\":\n \"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: $text-color;\",\n \".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before\":\n \"border-color: #1ab394; background-color: #1ab394;\",\n \".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after\":\n \"background-color: #8dd9ca;\",\n \".sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before\":\n \"border-color: #1ab394; background-color: white;\",\n \".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before\":\n \"border-color: #1ab394; background-color: white;\",\n \".sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before\":\n \"cursor: not-allowed;\",\n\n // ranking\n \".sv-ranking\": \"outline: none;\",\n \".sv-ranking-item\":\n \"cursor: pointer; margin-bottom: 5px;position: relative;\",\n \".sv-ranking-item:focus .sv-ranking-item__icon--hover\":\n \"visibility: hidden;\",\n \".sv-ranking-item:hover .sv-ranking-item__icon--hover\":\n \"visibility: visible;\",\n \".sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover\":\n \"visibility: hidden;\",\n \".sv-ranking-item:focus\": \"outline: none;\",\n \".sv-ranking-item:focus .sv-ranking-item__icon--focus\":\n \"visibility: visible; top: 15px;\",\n \".sv-ranking-item:focus .sv-ranking-item__index\":\n \"background: white; border: 2px solid #19b394;\",\n \".sv-ranking-item__content\":\n \"display: inline-block;background-color: white;padding-top: 5px;padding-bottom: 5px;padding-left: 35px;padding-right: 10px; border-radius: 100px;\",\n \".sv-ranking-item__icon-container\":\n \"position: absolute;left: 0;top: 0;bottom: 0;width: 35px;\",\n \".sv-ranking-item__icon\":\n \"visibility: hidden;left:10px;top:20px;fill:#19b394;position: absolute;\",\n \".sv-ranking-item__index\":\n \"display: inline-block;padding: 10px 16px;background: rgba(25, 179, 148, 0.1);border-radius: 100px;border: 2px solid transparent; margin-right: 10px;\",\n \".sv-ranking-item__text\": \"display: inline-block;\",\n \".sv-ranking-item__ghost\":\n \"display: none;background: #f3f3f3;border-radius: 100px;width: 200px;height: 55px;z-index: 1;position: absolute;left: 35px;\",\n \".sv-ranking-item--ghost .sv-ranking-item__ghost\": \"display: block;\",\n \".sv-ranking-item--ghost .sv-ranking-item__content\": \"visibility: hidden;\",\n \".sv-ranking-item--drag .sv-ranking-item__content\":\n \"box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);border-radius: 100px;\",\n \".sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon\":\n \"visibility: hidden;\",\n \".sv-ranking-item--drag .sv-ranking-item__icon--hover\":\n \"visibility: visible;\",\n \".sv-ranking--mobile .sv-ranking-item__icon--hover\":\n \"visibility:visible; fill:#9f9f9f;\",\n \".sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover\":\n \"visibility:hidden;\",\n\n \".sv_qstn .sv_q_select_column\":\n \"display: inline-block; vertical-align: top; min-width: 10%;\",\n\n \".sv_qstn .sv_q_select_column > *:not(.sv_technical)\": \"display: block;\",\n\n \".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea\":\n \"margin-left: 0; padding-left: 0; line-height: initial;\",\n \".sv_main .sv-hidden\": \"display: none !important;\",\n \".sv_main .sv-visuallyhidden\":\n \"position: absolute; height: 1px !important; width: 1px !important; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);\",\n\n // paneldynamic progress\n \".sv_main .sv-progress\":\n \"height: 0.19em; background-color: $header-background-color;\",\n \".sv_main .sv-progress__bar\":\n \"background-color: $main-color; height: 100%; position: relative;\",\n // EO paneldynamic progress\n\n // paneldynamic\n \".sv_main .sv-paneldynamic__progress-container\":\n \"position: relative; display: inline-block; width: calc(100% - 250px); margin-top: 20px;\",\n \".sv_main .sv-paneldynamic__add-btn\": \"float: right;\",\n \".sv_main .sv-paneldynamic__add-btn--list-mode\":\n \"float: none; margin-top: 0;\",\n \".sv_main .sv-paneldynamic__remove-btn\": \"margin-top: 1.25em;\",\n \".sv_main .sv-paneldynamic__remove-btn--right\":\n \"margin-top: 0; margin-left: 1.25em;\",\n \".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn\":\n \"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;\",\n \".sv_main .sv-paneldynamic__prev-btn\":\n \"left: -1.3em; transform: rotate(90deg);\",\n \".sv_main .sv-paneldynamic__next-btn \":\n \"right: -1.3em; transform: rotate(270deg);\",\n \".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled\":\n \"cursor: auto;\",\n \".sv_main .sv-paneldynamic__progress-text\":\n \"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em\",\n // EO paneldynamic\n //boolean\n \".sv_main .sv-boolean__switch\":\n \"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;\",\n \".sv_main .sv-boolean__slider\":\n \"display: inline-block; width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;\",\n \".sv_main .sv-boolean__label\": \"vertical-align: middle; cursor: pointer;\",\n \".sv_main .sv-boolean--indeterminate .sv-boolean__slider\":\n \"margin-left: calc(50% - 10px);\",\n \".sv_main .sv-boolean--checked .sv-boolean__slider\":\n \"margin-left: calc(100% - 20px);\",\n \"[dir='rtl'] .sv-boolean__label \": \"float: right;\",\n \"[dir='rtl'] .sv-boolean--indeterminate .sv-boolean__slider\":\n \"margin-right: calc(50% - 0.625em);\",\n \"[dir='rtl'] .sv-boolean--checked .sv-boolean__slider\":\n \"margin-right: calc(100% - 1.25em);\",\n \"[dir='rtl'] .sv-boolean__switch\": \"float: right;\",\n \"[style*='direction:rtl'] .sv-boolean__label \": \"float: right;\",\n \"[style*='direction:rtl'] .sv-boolean--indeterminate .sv-boolean__slider\":\n \"margin-right: calc(50% - 0.625em);\",\n \"[style*='direction:rtl'] .sv-boolean--checked .sv-boolean__slider\":\n \"margin-right: calc(100% - 1.25em);\",\n \"[style*='direction:rtl'] .sv-boolean__switch\": \"float: right;\",\n\n // EO boolean\n \".sv_main .sv_q_num\": \"\",\n \".sv_main .sv_q_num + span\": \"\",\n\n // SignaturePad\n \".sv_main .sjs_sp_container\": \"position: relative;\",\n \".sv_main .sjs_sp_controls\": \"position: absolute; left: 0; bottom: 0;\",\n \".sv_main .sjs_sp_controls > button\": \"user-select: none;\",\n \".sv_main .sjs_sp_container>div>canvas:focus\": \"outline: none;\",\n\n // logo\n // \".sv_main .sv_header\": \"white-space: nowrap;\",\n \".sv_main .sv_logo\": \"\",\n \".sv_main .sv-logo--left\":\n \"display: inline-block; vertical-align: top; margin-right: 2em;\",\n \".sv_main .sv-logo--right\":\n \"display: inline-block; vertical-align: top; margin-left: 2em; float: right;\",\n \".sv_main .sv-logo--right+.sv-logo--right-tail\": \"clear: both;\",\n \".sv_main .sv-logo--top\":\n \"display: block; width: 100%; text-align: center;\",\n \".sv_main .sv-logo--bottom\":\n \"display: block; width: 100%; text-align: center;\",\n \".sv_main .sv_header__text\":\n \"display: inline-block; vertical-align: top; max-width: 100%\",\n\n \".sv_main .sv-expand-action:before\": `content: \"\"; display: inline-block; background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A\"); background-repeat: no-repeat; background-position: center center; height: 10px; width: 12px; margin: auto 8px;`,\n\n \".sv_main .sv-expand-action--expanded:before\": `transform: rotate(180deg);`,\n\n \".sv_main sv-action-bar, .sv_main .sv-action-bar\": `display: flex; position: relative; align-items: center; margin-left: auto; padding: 0 0 0 16px; overflow: hidden; white-space: nowrap;`,\n \".sv_main .sv-action-bar-separator\": `display: inline-block; width: 1px; height: 24px; vertical-align: middle; margin-right: 16px; background-color: #d6d6d6;`,\n \".sv_main .sv-action-bar-item\": `-webkit-appearance: none; -moz-appearance: none; appearance: none; display: flex; height: 40px; padding: 8px; box-sizing: border-box; margin-right: 16px; border: none; border-radius: 2px; background-color: transparent; cursor: pointer; line-height: 24px; font-size: 16px; overflow-x: hidden; white-space: nowrap; min-width: auto; font-weight: normal`,\n \".sv_main .sv-action-bar-item__title\": `vertical-align: middle; white-space: nowrap;`,\n \".sv_main .sv-action-bar-item__title--with-icon\": `margin-left: 8px;`,\n \".sv_main .sv-action\": `display: flex; align-items: center;`,\n \".sv_main .sv-action--hidden\": \"visibility: hidden\",\n \".sv_main .sv-action-bar-item__icon svg\": \"display: block;\",\n \".sv_main .sv-action-bar-item:active\": \"opacity: 0.5;\",\n \".sv_main .sv-action-bar-item:focus\": \"outline: none;\",\n\n \".sv_main .sv-title-actions\": \"display: flex;align-items: center;\",\n \".sv_main .sv-title-actions__title\":\n \"flex-wrap: wrap; max-width: 90%; min-width: 50%;\",\n \".sv_main .sv-title-actions__bar\": \"min-width: 56px;\",\n \".sv_main .sv_matrix_cell_actions .sv-action-bar, .sv_main .sv_matrix_cell_actions sv-action-bar\":\n \"margin-left: 0; padding-left: 0;\",\n \".sv_main .sv_p_wrapper_in_row\":\n \"display: flex; flex-direction: row; align-items: center;\",\n \".sv_main .sv_p_remove_btn_right\": \"margin-left: 1em;\",\n };\n\n public static Media: { [key: string]: { media: string; style: string } } = {\n \".sv_qstn fieldset .sv-q-col-1\": {\n style: \"width: 100%;\",\n media: \"@media only screen and (max-width: 480px)\",\n },\n \".sv_qstn fieldset .sv-q-col-2\": {\n style: \"width: 100%;\",\n media: \"@media only screen and (max-width: 480px)\",\n },\n \".sv_qstn fieldset .sv-q-col-3\": {\n style: \"width: 100%;\",\n media: \"@media only screen and (max-width: 480px)\",\n },\n \".sv_qstn fieldset .sv-q-col-4\": {\n style: \"width: 100%;\",\n media: \"@media only screen and (max-width: 480px)\",\n },\n \".sv_qstn fieldset .sv-q-col-5\": {\n style: \"width: 100%;\",\n media: \"@media only screen and (max-width: 480px)\",\n },\n\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn\": {\n style: \"display: block; width: 100% !important;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left\": {\n style: \"float: none;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline\": {\n style: \"display: block;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table\": {\n style: \"display: block;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead\": {\n style: \"display: none;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td\": {\n style: \"display: block;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before\": {\n style: \"content: attr(headers);\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after\": {\n style: \"content: attr(headers); padding-left: 1em\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label\": {\n style: \"line-height: 12px; vertical-align: top;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_qstn label.sv_q_m_label\": {\n style: \"display: inline;\",\n media: \"@media (max-width: 600px)\",\n },\n \".sv_main .sv_custom_header\": {\n style: \"display: none;\",\n media: \"@media (max-width: 1300px)\",\n },\n \".sv_main .sv_container .sv_header h3\": {\n style: \"font-size: 1.5em;\",\n media: \"@media (max-width: 1300px)\",\n },\n \".sv_main .sv_container .sv_header h3 span\": {\n style: \"font-size: 0.75em;\",\n media: \"@media (max-width: 700px)\",\n },\n\n \".sv_main.sv_bootstrap_css .sv-progress__text\": {\n style: \"margin-left: 8em;\",\n media: \"@media (min-width: 768px)\",\n },\n\n \".sv_row\": {\n style: \" display: flex; flex-wrap: wrap;\",\n media: \"@supports (display: flex)\",\n },\n\n \".sv-vue-row-additional-div\": {\n style: \" display: flex; flex-wrap: wrap; flex-basis: 100%;\",\n media: \"@supports (display: flex)\",\n },\n\n \".sv-row > .sv-row__panel, .sv-row__question:not(:last-child)\": {\n style: \"float: left;\",\n media:\n \"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)\",\n },\n\n \"[dir='rtl'],[style*='direction:rtl'] .sv-row__question:not(:last-child)\": {\n style: \"float: right;\",\n media:\n \"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)\",\n },\n\n \".sv-row > .sv-row__panel, .sv-row__question\": {\n style: \"width: 100% !important; padding-right: 0 !important;\",\n media: \"@media only screen and (max-width: 600px)\",\n },\n };\n\n public static ThemeColors: { [key: string]: { [key: string]: string } } = {\n default: {\n \"$header-background-color\": \"#e7e7e7\",\n \"$body-container-background-color\": \"#f4f4f4\",\n\n \"$main-color\": \"#1ab394\",\n \"$main-hover-color\": \"#0aa384\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#6d7072\",\n \"$text-input-color\": \"#6d7072\",\n \"$header-color\": \"#6d7072\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n orange: {\n \"$header-background-color\": \"#4a4a4a\",\n \"$body-container-background-color\": \"#f8f8f8\",\n\n \"$main-color\": \"#f78119\",\n \"$main-hover-color\": \"#e77109\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#4a4a4a\",\n \"$text-input-color\": \"#4a4a4a\",\n \"$header-color\": \"#f78119\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n darkblue: {\n \"$header-background-color\": \"#d9d8dd\",\n \"$body-container-background-color\": \"#f6f7f2\",\n\n \"$main-color\": \"#3c4f6d\",\n \"$main-hover-color\": \"#2c3f5d\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#4a4a4a\",\n \"$text-input-color\": \"#4a4a4a\",\n \"$header-color\": \"#6d7072\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n darkrose: {\n \"$header-background-color\": \"#ddd2ce\",\n \"$body-container-background-color\": \"#f7efed\",\n\n \"$main-color\": \"#68656e\",\n \"$main-hover-color\": \"#58555e\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#4a4a4a\",\n \"$text-input-color\": \"#4a4a4a\",\n \"$header-color\": \"#6d7072\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n stone: {\n \"$header-background-color\": \"#cdccd2\",\n \"$body-container-background-color\": \"#efedf4\",\n\n \"$main-color\": \"#0f0f33\",\n \"$main-hover-color\": \"#191955\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#0f0f33\",\n \"$text-input-color\": \"#0f0f33\",\n \"$header-color\": \"#0f0f33\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n winter: {\n \"$header-background-color\": \"#82b8da\",\n \"$body-container-background-color\": \"#dae1e7\",\n\n \"$main-color\": \"#3c3b40\",\n \"$main-hover-color\": \"#1e1d20\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#000\",\n \"$text-input-color\": \"#000\",\n \"$header-color\": \"#000\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$disable-color\": \"#dbdbdb\",\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n winterstone: {\n \"$header-background-color\": \"#323232\",\n \"$body-container-background-color\": \"#f8f8f8\",\n\n \"$main-color\": \"#5ac8fa\",\n \"$main-hover-color\": \"#06a1e7\",\n \"$body-background-color\": \"white\",\n \"$inputs-background-color\": \"white\",\n \"$text-color\": \"#000\",\n \"$text-input-color\": \"#000\",\n \"$header-color\": \"#fff\",\n \"$border-color\": \"#e7e7e7\",\n\n \"$error-color\": \"#ed5565\",\n \"$error-background-color\": \"#fd6575\",\n\n \"$disable-color\": \"#dbdbdb\",\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n modern: {\n \"$main-color\": \"#1ab394\",\n \"$add-button-color\": \"#1948b3\",\n \"$remove-button-color\": \"#ff1800\",\n \"$disable-color\": \"#dbdbdb\",\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$error-color\": \"#d52901\",\n \"$text-color\": \"#404040\",\n \"$light-text-color\": \"#fff\",\n \"$button-text-color\": \"#fff\",\n \"$checkmark-color\": \"#fff\",\n \"$matrix-text-checked-color\": \"#fff\",\n\n \"$text-input-color\": \"#404040\",\n \"$inputs-background-color\": \"transparent\",\n \"$main-hover-color\": \"#9f9f9f\",\n \"$body-container-background-color\": \"#f4f4f4\",\n \"$text-border-color\": \"#d4d4d4\",\n \"$disabled-text-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$border-color\": \"rgb(64, 64, 64, 0.5)\",\n \"$dropdown-border-color\": \"#d4d4d4\",\n \"$header-background-color\": \"#e7e7e7\",\n \"$answer-background-color\": \"rgba(26, 179, 148, 0.2)\",\n \"$error-background-color\": \"rgba(213, 41, 1, 0.2)\",\n \"$radio-checked-color\": \"#404040\",\n \"$clean-button-color\": \"#1948b3\",\n \"$body-background-color\": \"#ffffff\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n bootstrap: {\n \"$main-color\": \"#18a689\",\n \"$text-color\": \"#404040;\",\n \"$text-input-color\": \"#404040;\",\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$header-background-color\": \"#e7e7e7\",\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n bootstrapmaterial: {\n \"$main-color\": \"#18a689\",\n \"$text-color\": \"#404040;\",\n \"$text-input-color\": \"#404040;\",\n \"$progress-text-color\": \"#9d9d9d\",\n \"$disable-color\": \"#dbdbdb\",\n \"$header-background-color\": \"#e7e7e7\",\n\n \"$disabled-label-color\": \"rgba(64, 64, 64, 0.5)\",\n \"$slider-color\": \"white\",\n \"$disabled-switch-color\": \"#9f9f9f\",\n \"$disabled-slider-color\": \"#cfcfcf\",\n \"$body-background-color\": \"#ffffff\",\n \"$foreground-light\": \"909090\",\n \"$background-dim\": \"#f3f3f3\",\n },\n };\n\n public static ThemeCss: { [key: string]: string } = {\n \".sv_default_css\": \"background-color: $body-container-background-color;\",\n\n \".sv_default_css hr\": \"border-color: $border-color;\",\n\n \".sv_default_css input[type='button'], .sv_default_css button\":\n \"color: $body-background-color; background-color: $main-color;\",\n \".sv_default_css input[type='button']:hover, .sv_default_css button:hover\":\n \"background-color: $main-hover-color;\",\n\n \".sv_default_css .sv_header\": \"color: $header-color;\",\n \".sv_default_css .sv_custom_header\":\n \"background-color: $header-background-color;\",\n \".sv_default_css .sv_container\": \"color: $text-color;\",\n \".sv_default_css .sv_body\":\n \"background-color: $body-background-color; border-color: $main-color;\",\n \".sv_default_css .sv_progress\": \"background-color: $border-color;\",\n \".sv_default_css .sv_progress_bar\": \"background-color: $main-color;\",\n\n \".sv_default_css .sv_p_root > .sv_row\": \"border-color: $border-color;\",\n \".sv_default_css .sv_p_root > .sv_row:nth-child(odd)\":\n \"background-color: $body-background-color;\",\n \".sv_default_css .sv_p_root > .sv_row:nth-child(even)\":\n \"background-color: $body-container-background-color;\",\n\n \".sv_default_css .sv_q_other input\":\n \"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css .sv_q_text_root\":\n \"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css .sv_q_dropdown_control\":\n \"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css input[type='text']\":\n \"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css select\":\n \"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css textarea\":\n \"color: $text-input-color; -webkit-text-fill-color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;\",\n \".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])\":\n \"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-input-color; -webkit-text-fill-color: $text-input-color;\",\n \".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus\":\n \"border: 1px solid $main-color;\",\n \".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control \":\n \"background-color: $inputs-background-color;\",\n \".sv_default_css .sv_q_other input:focus\": \"border-color: $main-color;\",\n \".sv_default_css .sv_q_text_root:focus\": \"border-color: $main-color;\",\n \".sv_default_css .sv_q_dropdown_control:focus\":\n \"border-color: $main-color;\",\n \".sv_default_css input[type='text']:focus\": \"border-color: $main-color;\",\n '.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type=\"radio\"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type=\"checkbox\"]:focus':\n \"outline: 1px dotted $main-color;\",\n \".sv_default_css select:focus\": \"border-color: $main-color;\",\n \".sv_default_css textarea:focus\": \"border-color: $main-color;\",\n\n \".sv_default_css .sv_select_wrapper\":\n \"background-color: $body-background-color;\",\n \".sv_default_css .sv_select_wrapper::before\":\n \"background-color: $main-color;\",\n\n \".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text\":\n \"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;\",\n \".sv_default_css .sv_q_rating_item .sv_q_rating_item_text\":\n \"border-color: $border-color;\",\n \".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover\":\n \"border-color: $main-hover-color;\",\n\n \".sv_default_css table.sv_q_matrix tr\": \"border-color: $border-color;\",\n \".sv_default_css table.sv_q_matrix_dropdown tr\":\n \"border-color: $border-color;\",\n \".sv_default_css table.sv_q_matrix_dynamic tr\":\n \"border-color: $border-color;\",\n\n \".sv_default_css .sv_q_m_cell_selected\":\n \"color: $body-background-color; background-color: $main-hover-color;\",\n\n \".sv_main .sv_q_file_remove:hover\": \"color: $main-color;\",\n \".sv_main .sv_q_file_choose_button\":\n \"color: $body-background-color; background-color: $main-color;\",\n \".sv_main .sv_q_file_choose_button:hover\":\n \"background-color: $main-hover-color;\",\n\n \".sv_main .sv_q_imgsel.checked label>div\": \"background-color: $main-color\",\n\n \".sv_default_css .sv_p_description\": \"padding-left: 1.29em;\",\n //progress bar\n \".sv_main .sv-progress\": \"background-color: $header-background-color;\",\n \".sv_main .sv-progress__bar\": \"background-color: $main-color;\",\n\n //paneldynamic\n \".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled\":\n \"fill: $disable-color;\",\n \".sv_main .sv-paneldynamic__progress-text\": \"color: $progress-text-color;\",\n \".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn\":\n \"fill: $text-color\",\n\n //boolean\n \".sv_main .sv-boolean__switch\": \"background-color: $main-color;\",\n \".sv_main .sv-boolean__slider\": \"background-color: $slider-color;\",\n \".sv_main .sv-boolean__label--disabled\": \"color: $disabled-label-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__switch\":\n \"background-color: $disabled-switch-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__slider\":\n \"background-color: $disabled-slider-color;\",\n //eo boolean\n\n \".sv_main .sv_matrix_detail_row\":\n \"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;\",\n\n \".sv_main .sv-action-bar-item\": \"color: $text-color;\",\n \".sv_main .sv-action-bar-item__icon use\": \"fill: $foreground-light;\",\n \".sv_main .sv-action-bar-item:hover\": \"background-color: $background-dim;\",\n };\n\n public static modernThemeCss: { [key: string]: string } = {\n // \".sv-paneldynamic__add-btn\": \"background-color: $add-button-color;\",\n // \".sv-paneldynamic__remove-btn\": \"background-color: $remove-button-color;\",\n \".sv-boolean__switch\": \"background-color: $main-color;\",\n \".sv-boolean__slider\": \"background-color: $slider-color;\",\n \".sv-boolean__label--disabled\": \"color: $disabled-label-color;\",\n \".sv-boolean--disabled .sv-boolean__switch\":\n \"background-color: $disabled-switch-color;\",\n \".sv-boolean--disabled .sv-boolean__slider\":\n \"background-color: $disabled-slider-color;\",\n\n \".sv-btn\": \"color: $button-text-color;\",\n \".sv-checkbox__svg\": \"border-color: $border-color; fill: transparent;\",\n \".sv-checkbox--allowhover:hover .sv-checkbox__svg\":\n \"background-color: $main-hover-color; fill: $checkmark-color;\",\n \".sv-checkbox--checked .sv-checkbox__svg\":\n \"background-color: $main-color; fill: $checkmark-color;\",\n \".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg\":\n \"background-color: $disable-color; fill: $checkmark-color;\",\n \".sv-checkbox--disabled .sv-checkbox__svg\": \"border-color: $disable-color;\",\n \".sv-comment\": \"border-color: $text-border-color;\",\n \".sv-comment:focus\": \"border-color: $main-color;\",\n \".sv-completedpage\":\n \"color: $text-color; background-color: $body-container-background-color;\",\n \".sv-container-modern\": \"color: $text-color;\",\n \".sv-container-modern__title\": \"color: $main-color;\",\n \".sv-description\": \"color: $disabled-text-color;\",\n \".sv-dropdown\": \"border-bottom: 0.06em solid $text-border-color;\",\n \".sv-dropdown:focus\": \"border-color: $dropdown-border-color;\",\n \".sv-dropdown--error\": \"border-color: $error-color; color: $error-color;\",\n \".sv-dropdown--error::placeholder\": \"color: $error-color;\",\n \".sv-dropdown--error::-ms-input-placeholder\": \"color: $error-color;\",\n \".sv-file__decorator\":\n \"background-color: $body-container-background-color;\",\n \".sv-file__clean-btn\": \"background-color: $remove-button-color;\",\n \".sv-file__choose-btn\": \"background-color: $add-button-color;\",\n \".sv-file__choose-btn--disabled\": \"background-color: $disable-color;\",\n \".sv-file__remove-svg\": \"fill: #ff1800;\",\n \".sv-file__sign a\": \"color: $text-color;\",\n \".sv-footer__complete-btn\": \"background-color: $main-color;\",\n \".sv-footer__next-btn\": \"background-color: $main-color;\",\n \".sv-footer__prev-btn\": \"background-color: $main-color;\",\n \".sv-footer__start-btn\": \"background-color: $main-color;\",\n \".sv-footer__preview-btn\": \"background-color: $main-color;\",\n \".sv-footer__edit-btn\": \"background-color: $main-color;\",\n \".sv-imagepicker__item--allowhover:hover .sv-imagepicker__image\":\n \"background-color: $main-hover-color; border-color: $main-hover-color;\",\n \".sv-imagepicker__item--checked .sv-imagepicker__image\":\n \"background-color: $main-color; border-color: $main-color;\",\n \".sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image\":\n \"background-color: $disable-color; border-color: $disable-color;\",\n \".sv-item__control:focus + .sv-item__decorator\":\n \"border-color: $main-color;\",\n \".sv-matrix__text--checked\":\n \"color: $matrix-text-checked-color; background-color: $main-color;\",\n \".sv-matrix__text--disabled.sv-matrix__text--checked\":\n \"background-color: $disable-color;\",\n \".sv-matrixdynamic__add-btn\": \"background-color: $add-button-color;\",\n \".sv-matrixdynamic__remove-btn\": \"background-color: $remove-button-color;\",\n \".sv-paneldynamic__add-btn\": \"background-color: $add-button-color;\",\n \".sv-paneldynamic__remove-btn\": \"background-color: $remove-button-color;\",\n \".sv-paneldynamic__prev-btn, .sv-paneldynamic__next-btn\":\n \"fill: $text-color;\",\n \".sv-paneldynamic__prev-btn--disabled, .sv-paneldynamic__next-btn--disabled\":\n \"fill: $disable-color;\",\n \".sv-paneldynamic__progress-text\": \"color: $progress-text-color;\",\n \".sv-progress\": \"background-color: $header-background-color;\",\n \".sv-progress__bar\": \"background-color: $main-color;\",\n \".sv-progress__text\": \"color: $progress-text-color;\",\n \".sv-question__erbox\": \"color: $error-color;\",\n \".sv-question__title--answer\":\n \"background-color: $answer-background-color;\",\n \".sv-question__title--error\": \"background-color: $error-background-color;\",\n \".sv-panel__title--error\": \"background-color: $error-background-color;\",\n \".sv-radio__svg\": \"border-color: $border-color; fill: transparent;\",\n \".sv-radio--allowhover:hover .sv-radio__svg\": \"fill: $border-color;\",\n \".sv-radio--checked .sv-radio__svg\":\n \"border-color: $radio-checked-color; fill: $radio-checked-color;\",\n \".sv-radio--disabled .sv-radio__svg\": \"border-color: $disable-color;\",\n \".sv-radio--disabled.sv-radio--checked .sv-radio__svg\":\n \"fill: $disable-color;\",\n \".sv-rating\": \"color: $text-color;\",\n \".sv-rating input:focus + .sv-rating__min-text + .sv-rating__item-text, .sv-rating input:focus + .sv-rating__item-text\":\n \"outline-color: $main-color;\",\n \".sv-rating__item-text\":\n \"color: $main-hover-color; border: solid 0.1875em $main-hover-color;\",\n \".sv-rating__item-text:hover\":\n \"background-color: $main-hover-color; color: $body-background-color;\",\n \".sv-rating__item--selected .sv-rating__item-text\":\n \"background-color: $main-color; color: $body-background-color; border-color: $main-color;\",\n \".sv-rating--disabled .sv-rating__item-text\":\n \"color: $disable-color; border-color: $disable-color;\",\n \".sv-rating--disabled .sv-rating__item-text:hover\":\n \"background-color: transparent;\",\n \".sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text\":\n \"background-color: $disable-color; color: $body-background-color;\",\n \"::-webkit-scrollbar\": \"background-color: $main-hover-color;\",\n \"::-webkit-scrollbar-thumb\": \"background: $main-color;\",\n \".sv-selectbase__clear-btn\": \"background-color: $clean-button-color;\",\n \".sv-table\": \"background-color: rgba($main-hover-color, 0.1);\",\n \".sv-text:focus\": \"border-color: $main-color;\",\n '.sv-text[type=\"date\"]::-webkit-calendar-picker-indicator':\n \"color: transparent; background: transparent;\",\n \".sv-text--error\": \"color: $error-color; border-color: $error-color;\",\n \".sv-text--error::placeholder\": \"color: $error-color;\",\n \".sv-text--error::-ms-placeholder\": \"color: $error-color;\",\n \".sv-text--error:-ms-placeholder\": \"color: $error-color;\",\n \"input.sv-text, textarea.sv-comment, select.sv-dropdown\":\n \"color: $text-input-color; background-color: $inputs-background-color;\",\n \".sv-text::placeholder\": \"color: $text-input-color;\",\n \".sv-text::-ms-placeholder\": \"color: $text-input-color;\",\n \".sv-text:-ms-placeholder\": \"color: $text-input-color;\",\n \".sv-table__row--detail\": \"background-color: $header-background-color;\",\n };\n\n public static bootstrapThemeCss: { [key: string]: string } = {\n \".sv_main .sv_q_imgsel.checked label>div\": \"background-color: $main-color\",\n \".sv_main .sv_p_description\": \"padding-left: 1.66em;\",\n \".sv_main .sv_qstn_error_bottom\": \"margin-top: 20px; margin-bottom: 0;\",\n \".sv_main .progress\": \"width: 60%;\",\n \".sv_main .progress-bar\":\n \"width: auto; margin-left: 2px; margin-right: 2px;\",\n \".sv_main .table>tbody>tr>td\": \"min-width: 90px;\",\n \".sv_main f-panel .sv_qstn\": \"padding: 0; vertical-align: middle;\",\n\n \".sv_main .sv_q_image\": \"display: inline-block;\",\n \".sv_main .sv_row .sv_qstn:first-child:last-child\":\n \"flex: none !important;\",\n \".sv_main .sv_row .sv_p_container:first-child:last-child\":\n \"flex: none !important;\",\n\n //progress bar\n \".sv_main .sv-progress\": \"background-color: $header-background-color;\",\n \".sv_main .sv-progress__bar\": \"background-color: $main-color;\",\n\n //paneldynamic\n \".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled\":\n \"fill: $disable-color;\",\n \".sv_main .sv-paneldynamic__progress-text\": \"color: $progress-text-color;\",\n \".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn\":\n \"fill: $text-color\",\n\n //boolean\n \".sv_main .sv-boolean__switch\": \"background-color: $main-color;\",\n \".sv_main .sv-boolean__slider\": \"background-color: $slider-color;\",\n \".sv_main .sv-boolean__label--disabled\": \"color: $disabled-label-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__switch\":\n \"background-color: $disabled-switch-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__slider\":\n \"background-color: $disabled-slider-color;\",\n //eo boolean\n\n \".sv_main .sv_matrix_detail_row\":\n \"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;\",\n\n \".sv_main .sv-action-bar-item\": \"color: $text-color;\",\n \".sv_main .sv-action-bar-item__icon use\": \"fill: $foreground-light;\",\n \".sv_main .sv-action-bar-item:hover\": \"background-color: $background-dim;\",\n };\n\n public static bootstrapmaterialThemeCss: { [key: string]: string } = {\n \".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control\":\n \"linear-gradient(0deg, $main-color 2px, $main-color 0),linear-gradient(0deg, #D2D2D2 1px, transparent 0);\",\n \".sv_main.sv_bootstrapmaterial_css .sv_qstn\": \"margin-bottom: 1rem;\",\n \".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label\":\n \"height: 100%;\",\n\n \".sv_main.sv_bootstrapmaterial_css .sv_q_image\": \"display: inline-block;\",\n \".sv_main .sv_row .sv_qstn:first-child:last-child\":\n \"flex: none !important;\",\n \".sv_main .sv_row .sv_p_container:first-child:last-child\":\n \"flex: none !important;\",\n\n \".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check\":\n \"border-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check\":\n \"border-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before\":\n \"color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before\":\n \"color: $main-color;\",\n\n \".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle\":\n \"border-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle\":\n \"border-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check\":\n \"background-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check\":\n \"background-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css .btn-default.active\":\n \"background-color: $main-color; color: $body-background-color;\",\n \".sv_main.sv_bootstrapmaterial_css .btn-default:active\":\n \"background-color: $main-color; color: $body-background-color;\",\n \".sv_main.sv_bootstrapmaterial_css .btn-secondary.active\":\n \"background-color: $main-color; color: $body-background-color;\",\n \".sv_main.sv_bootstrapmaterial_css .btn-secondary:active\":\n \"background-color: $main-color; color: $body-background-color;\",\n \".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default\":\n \"background-color: $main-color; color: $body-background-color;\",\n \".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary\":\n \"color: $body-background-color; background-color: $main-color;\",\n \".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover\":\n \"background-color: $main-hover-color;\",\n \".sv_main .sv_q_imgsel.checked label>div\": \"background-color: $main-color;\",\n\n \".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover\":\n \"color: $main-color;\",\n\n \".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]\":\n \"position: relative; opacity: 1;\",\n \".sv_main.sv_bootstrapmaterial_css .progress\": \"width: 60%; height: 1.5em;\",\n \".sv_main.sv_bootstrapmaterial_css .progress-bar\":\n \"width: auto; margin-left: 2px; margin-right: 2px;\",\n\n //progress bar\n \".sv_main .sv-progress\": \"background-color: $header-background-color;\",\n \".sv_main .sv-progress__bar\": \"background-color: $main-color;\",\n\n //paneldynamic\n \".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled\":\n \"fill: $disable-color;\",\n \".sv_main .sv-paneldynamic__progress-text\": \"color: $progress-text-color;\",\n \".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn\":\n \"fill: $text-color\",\n\n //boolean\n \".sv_main .sv-boolean .checkbox-decorator\": \"display: none;\",\n \".sv_main .sv-boolean__switch\": \"background-color: $main-color;\",\n \".sv_main .sv-boolean__slider\": \"background-color: $slider-color;\",\n \".sv_main .sv-boolean__label.sv-boolean__label--disabled\":\n \"color: $disabled-label-color;\",\n \".sv_main .sv-boolean__label\": \"color: $text-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__switch\":\n \"background-color: $disabled-switch-color;\",\n \".sv_main .sv-boolean--disabled .sv-boolean__slider\":\n \"background-color: $disabled-slider-color;\",\n //eo boolean\n \".sv_main .sv_matrix_detail_row\":\n \"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;\",\n\n \".sv_main .sv-action-bar-item\": \"color: $text-color;\",\n \".sv_main .sv-action-bar-item__icon use\": \"fill: $foreground-light;\",\n \".sv_main .sv-action-bar-item:hover\": \"background-color: $background-dim;\",\n };\n\n private sheet: CSSStyleSheet = null;\n\n static findSheet(styleSheetId: string): any {\n if (typeof document === \"undefined\") return null;\n for (let i = 0; i < document.styleSheets.length; i++) {\n if (\n !!document.styleSheets[i].ownerNode &&\n (document).styleSheets[i].ownerNode[\"id\"] === styleSheetId\n ) {\n return document.styleSheets[i];\n }\n }\n return null;\n }\n\n static createSheet(styleSheetId: string) {\n let style = document.createElement(\"style\");\n style.id = styleSheetId;\n // Add a media (and/or media query) here if you'd like!\n // style.setAttribute(\"media\", \"screen\")\n // style.setAttribute(\"media\", \"only screen and (max-width : 1024px)\")\n style.appendChild(document.createTextNode(\"\"));\n document.head.appendChild(style);\n return style.sheet;\n }\n\n public static applyTheme(\n themeName: string = \"default\",\n themeSelector: string = \".sv_main\"\n ) {\n let ThemeCss: any;\n\n if (themeName === \"modern\") themeSelector = \".sv-root-modern \";\n\n if (\n [\"bootstrap\", \"bootstrapmaterial\", \"modern\"].indexOf(themeName) !== -1\n ) {\n ThemeCss = (StylesManager)[themeName + \"ThemeCss\"];\n surveyCss.currentType = themeName;\n } else {\n ThemeCss = StylesManager.ThemeCss;\n surveyCss.currentType = \"standard\";\n }\n\n if (StylesManager.Enabled) {\n let sheet = StylesManager.findSheet(themeName + themeSelector);\n if (!sheet) {\n sheet = StylesManager.createSheet(themeName + themeSelector);\n let theme =\n StylesManager.ThemeColors[themeName] ||\n StylesManager.ThemeColors[\"default\"];\n\n Object.keys(ThemeCss).forEach(selector => {\n let cssRuleText = ThemeCss[selector];\n Object.keys(theme).forEach(\n colorVariableName =>\n (cssRuleText = cssRuleText.replace(\n new RegExp(\"\\\\\" + colorVariableName, \"g\"),\n theme[colorVariableName]\n ))\n );\n try {\n sheet.insertRule(\n themeSelector + selector + \" { \" + cssRuleText + \" }\",\n 0\n );\n } catch (e) {}\n });\n }\n }\n }\n\n public static Enabled = true;\n\n constructor() {\n if (StylesManager.Enabled) {\n this.sheet = StylesManager.findSheet(StylesManager.SurveyJSStylesSheetId);\n if (!this.sheet) {\n this.sheet = StylesManager.createSheet(\n StylesManager.SurveyJSStylesSheetId\n );\n this.initializeStyles(this.sheet);\n }\n }\n }\n\n public initializeStyles(sheet: CSSStyleSheet) {\n if (StylesManager.Enabled) {\n Object.keys(StylesManager.Styles).forEach(selector => {\n try {\n sheet.insertRule(\n selector + \" { \" + StylesManager.Styles[selector] + \" }\",\n 0\n );\n } catch (e) {}\n });\n Object.keys(StylesManager.Media).forEach(selector => {\n try {\n sheet.insertRule(\n StylesManager.Media[selector].media +\n \" { \" +\n selector +\n \" { \" +\n StylesManager.Media[selector].style +\n \" } }\",\n 0\n );\n } catch (e) {}\n });\n }\n }\n}\n","import { HashTable, Helpers } from \"./helpers\";\nimport { JsonObject, JsonError, Serializer } from \"./jsonobject\";\nimport {\n Base,\n ISurvey,\n ISurveyData,\n ISurveyImpl,\n ITextProcessor,\n IQuestion,\n IPanel,\n IElement,\n IPage,\n SurveyError,\n EventBase,\n ISurveyErrorOwner,\n ISurveyElement,\n SurveyElement,\n IProgressInfo,\n} from \"./base\";\nimport { surveyCss } from \"./defaultCss/cssstandard\";\nimport { ISurveyTriggerOwner, SurveyTrigger } from \"./trigger\";\nimport { CalculatedValue } from \"./calculatedValue\";\nimport { PageModel } from \"./page\";\nimport { TextPreProcessor, TextPreProcessorValue } from \"./textPreProcessor\";\nimport { ProcessValue } from \"./conditionProcessValue\";\nimport { dxSurveyService } from \"./dxSurveyService\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { CustomError } from \"./error\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { StylesManager } from \"./stylesmanager\";\nimport { SurveyTimer } from \"./surveytimer\";\nimport { Question } from \"./question\";\nimport { ItemValue } from \"./itemvalue\";\nimport { PanelModelBase } from \"./panel\";\nimport {\n HtmlConditionItem,\n UrlConditionItem,\n ExpressionItem,\n} from \"./expressionItems\";\nimport { ExpressionRunner, ConditionRunner } from \"./conditions\";\nimport { settings } from \"./settings\";\nimport { IActionBarItem } from \"./action-bar\";\nimport { isMobile } from \"./utils/utils\";\n\n/**\n * The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.\n */\nexport class SurveyModel extends Base\n implements\n ISurvey,\n ISurveyData,\n ISurveyImpl,\n ISurveyTriggerOwner,\n ISurveyErrorOwner,\n ILocalizableOwner {\n [index: string]: any;\n private static stylesManager: StylesManager = null;\n public static platform: string = \"unknown\";\n public get platformName(): string {\n return SurveyModel.platform;\n }\n /**\n * You can display an additional field (comment field) for the most of questions; users can enter additional comments to their response.\n * The comment field input is saved as `'question name' + 'commentPrefix'`.\n * @see data\n * @see Question.hasComment\n */\n public get commentPrefix(): string {\n return settings.commentPrefix;\n }\n public set commentPrefix(val: string) {\n settings.commentPrefix = val;\n }\n\n private get currentPageValue(): PageModel {\n return this.getPropertyValue(\"currentPageValue\", null);\n }\n private set currentPageValue(val: PageModel) {\n this.setPropertyValue(\"currentPageValue\", val);\n }\n\n private valuesHash: HashTable = {};\n private variablesHash: HashTable = {};\n private editingObjValue: Base;\n\n private localeValue: string = \"\";\n\n private textPreProcessor: TextPreProcessor;\n private completedStateValue: string = \"\";\n private completedStateTextValue: string = \"\";\n\n private isTimerStarted: boolean = false;\n /**\n * The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false`\n *
`sender` - the survey object that fires the event.\n *
`options.allowComplete` - Specifies whether a user can complete a survey. Set this property to `false` to prevent the survey from completing. The default value is `true`.\n *
`options.isCompleteOnTrigger` - returns true if the survey is completing on \"complete\" trigger.\n * @see onComplete\n */\n public onCompleting: EventBase = this.addEvent();\n /**\n * The event is fired after a user clicks the 'Complete' button and finishes a survey. Use this event to send the survey data to your web server.\n *
`sender` - the survey object that fires the event.\n *
`options.showDataSaving(text)` - call this method to show that the survey is saving survey data on your server. The `text` is an optional parameter to show a custom message instead of default.\n *
`options.showDataSavingError(text)` - call this method to show that an error occurred while saving the data on your server. If you want to show a custom error, use an optional `text` parameter.\n *
`options.showDataSavingSuccess(text)` - call this method to show that the data was successfully saved on the server.\n *
`options.showDataSavingClear` - call this method to hide the text about the saving progress.\n *
`options.isCompleteOnTrigger` - returns true if the survey is completed on \"complete\" trigger.\n * @see data\n * @see clearInvisibleValues\n * @see completeLastPage\n * @see surveyPostId\n */\n public onComplete: EventBase = this.addEvent();\n /**\n * The event is fired after a user clicks the 'Complete' button. The event allows you to specify the URL opened after completing a survey.\n * Specify the `navigateToUrl` property to make survey navigate to another url.\n *
`sender` - the survey object that fires the event.\n *
`options.url` - Specifies a URL opened after completing a survey. Set this property to an empty string to cancel the navigation and show the completed survey page.\n * @see navigateToUrl\n * @see navigateToUrlOnCondition\n */\n public onNavigateToUrl: EventBase = this.addEvent();\n /**\n * The event is fired after the survey changed it's state from \"starting\" to \"running\". The \"starting\" state means that survey shows the started page.\n * The `firstPageIsStarted` property should be set to `true`, if you want to display a start page in your survey. In this case, an end user should click the \"Start\" button to start the survey.\n * @see firstPageIsStarted\n */\n public onStarted: EventBase = this.addEvent();\n /**\n * The event is fired on clicking the 'Next' button if the `sendResultOnPageNext` is set to `true`. You can use it to save the intermediate results, for example, if your survey is large enough.\n *
`sender` - the survey object that fires the event.\n * @see sendResultOnPageNext\n */\n public onPartialSend: EventBase = this.addEvent();\n /**\n * The event is fired before the current page changes to another page. Typically it happens when a user click the 'Next' or 'Prev' buttons.\n *
`sender` - the survey object that fires the event.\n *
`option.oldCurrentPage` - the previous current/active page.\n *
`option.newCurrentPage` - a new current/active page.\n *
`option.allowChanging` - set it to `false` to disable the current page changing. It is `true` by default.\n *
`option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage\n *
`option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage\n * @see currentPage\n * @see currentPageNo\n * @see nextPage\n * @see prevPage\n * @see completeLastPage\n * @see onCurrentPageChanged\n **/\n public onCurrentPageChanging: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired when the current page has been changed to another page. Typically it happens when a user click on 'Next' or 'Prev' buttons.\n *
`sender` - the survey object that fires the event.\n *
`option.oldCurrentPage` - a previous current/active page.\n *
`option.newCurrentPage` - a new current/active page.\n *
`option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage\n *
`option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage\n * @see currentPage\n * @see currentPageNo\n * @see nextPage\n * @see prevPage\n * @see completeLastPage\n * @see onCurrentPageChanging\n */\n public onCurrentPageChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before the question value (answer) is changed. It can be done via UI by a user or programmatically on calling the `setValue` method.\n *
`sender` - the survey object that fires the event.\n *
`options.name` - the value name that has being changed.\n *
`options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is null.\n *
`options.oldValue` - an old, previous value.\n *
`options.value` - a new value. You can change it.\n * @see setValue\n * @see onValueChanged\n */\n public onValueChanging: EventBase = this.addEvent();\n /**\n * The event is fired when the question value (i.e., answer) has been changed. The question value can be changed in UI (by a user) or programmatically (on calling `setValue` method).\n * Use the `onDynamicPanelItemValueChanged` and `onMatrixCellValueChanged` events to handle changes in a question in the Panel Dynamic and a cell question in matrices.\n *
`sender` - the survey object that fires the event.\n *
`options.name` - the value name that has been changed.\n *
`options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is `null`.\n *
`options.value` - a new value.\n * @see setValue\n * @see onValueChanging\n * @see onDynamicPanelItemValueChanged\n * @see onMatrixCellValueChanged\n */\n public onValueChanged: EventBase = this.addEvent();\n /**\n * The event is fired when a question visibility has been changed.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a question which visibility has been changed.\n *
`options.name` - a question name.\n *
`options.visible` - a question `visible` boolean value.\n * @see Question.visibile\n * @see Question.visibileIf\n */\n public onVisibleChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on changing a page visibility.\n *
`sender` - the survey object that fires the event.\n *
`options.page` - a page which visibility has been changed.\n *
`options.visible` - a page `visible` boolean value.\n * @see PageModel.visibile\n * @see PageModel.visibileIf\n */\n public onPageVisibleChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on changing a panel visibility.\n *
`sender` - the survey object that fires the event.\n *
`options.panel` - a panel which visibility has been changed.\n *
`options.visible` - a panel `visible` boolean value.\n * @see PanelModel.visibile\n * @see PanelModel.visibileIf\n */\n public onPanelVisibleChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on creating a new question.\n * Unlike the onQuestionAdded event, this event calls for all question created in survey including inside: a page, panel, matrix cell, dynamic panel and multiple text.\n * or inside a matrix cell or it can be a text question in multiple text items or inside a panel of a panel dynamic.\n * You can use this event to set up properties to a question based on it's type for all questions, regardless where they are located, on the page or inside a matrix cell.\n * Please note: If you want to use this event for questions loaded from JSON then you have to create survey with empty/null JSON parameter, assign the event and call survey.fromJSON(yourJSON) function.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a newly created question object.\n * @see Question\n * @see onQuestionAdded\n */\n public onQuestionCreated: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on adding a new question into survey.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a newly added question object.\n *
`options.name` - a question name.\n *
`options.index` - an index of the question in the container (page or panel).\n *
`options.parentPanel` - a container where a new question is located. It can be a page or panel.\n *
`options.rootPanel` - typically, it is a page.\n * @see Question\n * @see onQuestionCreated\n */\n public onQuestionAdded: EventBase = this.addEvent();\n /**\n * The event is fired on removing a question from survey.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a removed question object.\n *
`options.name` - a question name.\n * @see Question\n */\n public onQuestionRemoved: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on adding a panel into survey.\n *
`sender` - the survey object that fires the event.\n *
`options.panel` - a newly added panel object.\n *
`options.name` - a panel name.\n *
`options.index` - an index of the panel in the container (a page or panel).\n *
`options.parentPanel` - a container (a page or panel) where a new panel is located.\n *
`options.rootPanel` - a root container, typically it is a page.\n * @see PanelModel\n */\n public onPanelAdded: EventBase = this.addEvent();\n /**\n * The event is fired on removing a panel from survey.\n *
`sender` - the survey object that fires the event.\n *
`options.panel` - a removed panel object.\n *
`options.name` - a panel name.\n * @see PanelModel\n */\n public onPanelRemoved: EventBase = this.addEvent();\n /**\n * The event is fired on adding a page into survey.\n *
`sender` - the survey object that fires the event.\n *
`options.page` - a newly added `panel` object.\n * @see PanelModel\n */\n public onPageAdded: EventBase = this.addEvent();\n /**\n * The event is fired on validating value in a question. You can specify a custom error message using `options.error`. The survey blocks completing the survey or going to the next page when the error messages are displayed.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a validated question.\n *
`options.name` - a question name.\n *
`options.value` - the current question value (answer).\n *
`options.error` - an error string. It is empty by default.\n * @see onServerValidateQuestions\n * @see onSettingQuestionErrors\n */\n public onValidateQuestion: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before errors are assigned to a question. You may add/remove/modify errors for a question.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a validated question.\n *
`options.errors` - the list of errors. The list is empty by default and remains empty if a validated question has no errors.\n * @see onValidateQuestion\n */\n public onSettingQuestionErrors: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to validate data on your server.\n *
`sender` - the survey object that fires the event.\n *
`options.data` - the values of all non-empty questions on the current page. You can get a question value as `options.data[\"myQuestionName\"]`.\n *
`options.errors` - set your errors to this object as: `options.errors[\"myQuestionName\"] = \"Error text\";`. It will be shown as a question error.\n *
`options.complete()` - call this function to tell survey that your server callback has been processed.\n * @see onValidateQuestion\n * @see onValidatePanel\n */\n public onServerValidateQuestions: any = this.addEvent();\n /**\n * Use this event to modify the HTML before rendering, for example HTML on a completed page.\n *
`sender` - the survey object that fires the event.\n *
`options.html` - an HTML that you may change before text processing and then rendering.\n * @see completedHtml\n * @see loadingHtml\n * @see QuestionHtmlModel.html\n */\n /**\n * The event is fired on validating a panel. Set your error to `options.error` and survey will show the error for the panel and block completing the survey or going to the next page.\n *
`sender` - the survey object that fires the event.\n *
`options.name` - a panel name.\n *
`options.error` - an error string. It is empty by default.\n * @see onValidateQuestion\n */\n public onValidatePanel: EventBase = this.addEvent();\n /**\n * Use the event to change the default error text.\n *
`sender` - the survey object that fires the event.\n *
`options.text` - an error text.\n *
`options.error` - an instance of the `SurveyError` object.\n *
`options.name` - the error name. The following error names are available:\n * required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,\n * uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom\n */\n public onErrorCustomText: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use the this event to be notified when the survey finished validate questions on the current page. It commonly happens when a user try to go to the next page or complete the survey\n * options.questions - the list of questions that have errors\n * options.errors - the list of errors\n * options.page - the page where question(s) are located\n */\n public onValidatedErrorsOnCurrentPage: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to modify the HTML content before rendering, for example `completeHtml` or `loadingHtml`.\n * `options.html` - specifies the modified HTML content.\n * @see completedHtml\n * @see loadingHtml\n */\n public onProcessHtml: EventBase = this.addEvent();\n /**\n * Use this event to change the question title in code. If you want to remove question numbering then set showQuestionNumbers to \"off\".\n *
`sender` - the survey object that fires the event.\n *
`options.title` - a calculated question title, based on question `title`, `name`.\n *
`options.question` - a question object.\n * @see showQuestionNumbers\n * @see requiredText\n */\n public onGetQuestionTitle: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to change the question no in code. If you want to remove question numbering then set showQuestionNumbers to \"off\".\n *
`sender` - the survey object that fires the event.\n *
`options.no` - a calculated question no, based on question `visibleIndex`, survey `.questionStartIndex` properties. You can change it.\n *
`options.question` - a question object.\n * @see showQuestionNumbers\n * @see questionStartIndex\n */\n public onGetQuestionNo: EventBase = this.addEvent();\n /**\n * Use this event to change the progress text in code.\n *
`sender` - the survey object that fires the event.\n *
`options.text` - a progress text, that SurveyJS will render in progress bar.\n *
`options.questionCount` - a number of questions that have input(s). We do not count html or expression questions\n *
`options.answeredQuestionCount` - a number of questions that have input(s) and an user has answered.\n *
`options.requiredQuestionCount` - a number of required questions that have input(s). We do not count html or expression questions\n *
`options.requiredAnsweredQuestionCount` - a number of required questions that have input(s) and an user has answered.\n * @see progressBarType\n */\n public onProgressText: EventBase = this.addEvent();\n /**\n * Use this event to process the markdown text.\n *
`sender` - the survey object that fires the event.\n *
`options.element` - SurveyJS element (a question, panel, page, or survey) where the string is going to be rendered.\n *
`options.name` - a property name is going to be rendered.\n *
`options.text` - a text that is going to be rendered.\n *
`options.html` - an HTML content. It is `null` by default. Use this property to specify the HTML content rendered instead of `options.text`.\n */\n public onTextMarkdown: EventBase = this.addEvent();\n /**\n * Use this event to specity render component name used for text rendering.\n *
`sender` - the survey object that fires the event.\n *
`options.element` - SurveyJS element (a question, panel, page, or survey) where the string is going to be rendered.\n *
`options.name` - a property name is going to be rendered.\n *
`options.renderAs` - a component name used for text rendering.\n */\n public onTextRenderAs: EventBase = this.addEvent();\n /**\n * The event fires when it gets response from the [api.surveyjs.io](https://api.surveyjs.io) service on saving survey results. Use it to find out if the results have been saved successfully.\n *
`sender` - the survey object that fires the event.\n *
`options.success` - it is `true` if the results has been sent to the service successfully.\n *
`options.response` - a response from the service.\n */\n public onSendResult: EventBase = this.addEvent();\n /**\n * Use it to get results after calling the `getResult` method. It returns a simple analytics from [api.surveyjs.io](https://api.surveyjs.io) service.\n *
`sender` - the survey object that fires the event.\n *
`options.success` - it is `true` if the results were got from the service successfully.\n *
`options.data` - the object `{AnswersCount, QuestionResult : {} }`. `AnswersCount` is the number of posted survey results. `QuestionResult` is an object with all possible unique answers to the question and number of these answers.\n *
`options.dataList` - an array of objects `{name, value}`, where `name` is a unique value/answer to the question and `value` is a number/count of such answers.\n *
`options.response` - the server response.\n * @see getResult\n */\n public onGetResult: EventBase = this.addEvent();\n /**\n * The event is fired on uploading the file in QuestionFile when `storeDataAsText` is set to `false`. Use this event to change the uploaded file name or to prevent a particular file from being uploaded.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the file question instance.\n *
`options.name` - the question name.\n *
`options.files` - the Javascript File objects array to upload.\n *
`options.callback` - a callback function to get the file upload status and the updloaded file content.\n * @see uploadFiles\n * @see QuestionFileModel.storeDataAsText\n * @see onDownloadFile\n * @see onClearFiles\n * @see [View Examples](https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fsurveyjs.io%2FExamples%2F+%22onUploadFiles%22)\n */\n public onUploadFiles: EventBase = this.addEvent();\n /**\n * The event is fired on downloading a file in QuestionFile. Use this event to pass the file to a preview.\n *
`sender` - the survey object that fires the event.\n *
`options.name` - the question name.\n *
`options.content` - the file content.\n *
`options.fileValue` - single file question value.\n *
`options.callback` - a callback function to get the file downloading status and the downloaded file content.\n * @see downloadFile\n * @see onClearFiles\n * @see onUploadFiles\n * @see [View Examples](https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fsurveyjs.io%2FExamples%2F+%22onDownloadFile%22)\n */\n public onDownloadFile: EventBase = this.addEvent();\n /**\n * This event is fired on clearing the value in a QuestionFile. Use this event to remove files stored on your server.\n *
`sender` - the survey object that fires the event.\n *
`question` - the question instance.\n *
`options.name` - the question name.\n *
`options.value` - the question value.\n *
`options.fileName` - a removed file's name, set it to `null` to clear all files.\n *
`options.callback` - a callback function to get the operation status.\n * @see clearFiles\n * @see onDownloadFile\n * @see onUploadFiles\n * @see [View Examples](https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fsurveyjs.io%2FExamples%2F+%22onClearFiles%22)\n */\n public onClearFiles: EventBase = this.addEvent();\n /**\n * The event is fired after choices for radiogroup, checkbox, and dropdown has been loaded from a RESTful service and before they are assigned to a question.\n * You may change the choices, before they are assigned or disable/enabled make visible/invisible question, based on loaded results.\n *
`sender` - the survey object that fires the event.\n *
`question` - the question where loaded choices are going to be assigned.\n *
`choices` - the loaded choices. You can change the loaded choices to before they are assigned to question.\n *
`serverResult` - a result that comes from the server as it is.\n */\n public onLoadChoicesFromServer: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired after survey is loaded from api.surveyjs.io service.\n * You can use this event to perform manipulation with the survey model after it was loaded from the web service.\n *
`sender` - the survey object that fires the event.\n * @see surveyId\n * @see loadSurveyFromService\n */\n public onLoadedSurveyFromService: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on processing the text when it finds a text in brackets: `{somevalue}`. By default, it uses the value of survey question values and variables.\n * For example, you may use the text processing in loading choices from the web. If your `choicesByUrl.url` equals to \"UrlToServiceToGetAllCities/{country}/{state}\",\n * you may set on this event `options.value` to \"all\" or empty string when the \"state\" value/question is non selected by a user.\n *
`sender` - the survey object that fires the event.\n *
`options.name` - the name of the processing value, for example, \"state\" in our example.\n *
`options.value` - the value of the processing text.\n *
`options.isExists` - a boolean value. Set it to `true` if you want to use the value and set it to `false` if you don't.\n */\n public onProcessTextValue: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before rendering a question. Use it to override the default question CSS classes.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a question for which you can change the CSS classes.\n *
`options.cssClasses` - an object with CSS classes. For example `{root: \"table\", button: \"button\"}`. You can change them to your own CSS classes.\n */\n public onUpdateQuestionCssClasses: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before rendering a panel. Use it to override the default panel CSS classes.\n *
`sender` - the survey object that fires the event.\n *
`options.panel` - a panel for which you can change the CSS classes.\n *
`options.cssClasses` - an object with CSS classes. For example `{title: \"sv_p_title\", description: \"small\"}`. You can change them to your own CSS classes.\n */\n public onUpdatePanelCssClasses: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before rendering a page. Use it to override the default page CSS classes.\n *
`sender` - the survey object that fires the event.\n *
`options.page` - a page for which you can change the CSS classes.\n *
`options.cssClasses` - an object with CSS classes. For example `{title: \"sv_p_title\", description: \"small\"}`. You can change them to your own CSS classes.\n */\n public onUpdatePageCssClasses: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after survey is rendered in DOM.\n *
`sender` - the survey object that fires the event.\n *
`options.htmlElement` - a root HTML element bound to the survey object.\n */\n public onAfterRenderSurvey: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after a page is rendered in DOM. Use it to modify HTML elements.\n *
`sender` - the survey object that fires the event.\n *
`options.htmlElement` - an HTML element bound to the survey header object.\n */\n public onAfterRenderHeader: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after a page is rendered in DOM. Use it to modify HTML elements.\n *
`sender` - the survey object that fires the event.\n *
`options.page` - a page object for which the event is fired. Typically the current/active page.\n *
`options.htmlElement` - an HTML element bound to the page object.\n */\n public onAfterRenderPage: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after a question is rendered in DOM. Use it to modify HTML elements.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a question object for which the event is fired.\n *
`options.htmlElement` - an HTML element bound to the question object.\n */\n public onAfterRenderQuestion: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after a non-composite question (text, comment, dropdown, radiogroup, checkbox) is rendered in DOM. Use it to modify HTML elements.\n * This event is not fired for matrices, panels, multiple text and image picker.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a question object for which the event is fired.\n *
`options.htmlElement` - an HTML element bound to the question object.\n */\n public onAfterRenderQuestionInput: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired right after a panel is rendered in DOM. Use it to modify HTML elements.\n *
`sender` - the survey object that fires the event\n *
`options.panel` - a panel object for which the event is fired\n *
`options.htmlElement` - an HTML element bound to the panel object\n */\n public onAfterRenderPanel: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on adding a new row in Matrix Dynamic question.\n *
`sender` - the survey object that fires the event\n *
`options.question` - a matrix question.\n *
`options.row` - a new added row.\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDynamicModel.visibleRows\n */\n public onMatrixRowAdded: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before adding a new row in Matrix Dynamic question.\n *
`sender` - the survey object that fires the event\n *
`options.question` - a matrix question.\n *
`options.canAddRow` - specifies whether a new row can be added\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDynamicModel.visibleRows\n */\n public onMatrixBeforeRowAdded: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on removing a row from Matrix Dynamic question.\n *
`sender` - the survey object that fires the event\n *
`options.question` - a matrix question\n *
`options.rowIndex` - a removed row index\n *
`options.row` - a removed row object\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDynamicModel.visibleRows\n */\n public onMatrixRowRemoved: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired before rendering \"Remove\" button for removing a row from Matrix Dynamic question.\n *
`sender` - the survey object that fires the event\n *
`options.question` - a matrix question.\n *
`options.rowIndex` - a row index.\n *
`options.row` - a row object.\n *
`options.allow` - a boolean property. Set it to `false` to disable the row removing.\n * @see QuestionMatrixDynamicModel\n */\n public onMatrixAllowRemoveRow: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired for every cell created in Matrix Dynamic and Matrix Dropdown questions.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the matrix question.\n *
`options.cell` - the matrix cell.\n *
`options.cellQuestion` - the question/editor in the cell. You may customize it, change it's properties, like choices or visible.\n *
`options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue[\"columnValue\"]`.\n *
`options.column` - the matrix column object.\n *
`options.columnName` - the matrix column name.\n *
`options.row` - the matrix row object.\n * @see onMatrixBeforeRowAdded\n * @see onMatrixRowAdded\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDropdownModel\n */\n public onMatrixCellCreated: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired for every cell after is has been rendered in DOM.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the matrix question.\n *
`options.cell` - the matrix cell.\n *
`options.cellQuestion` - the question/editor in the cell.\n *
`options.htmlElement` - an HTML element bound to the `cellQuestion` object.\n *
`options.column` - the matrix column object.\n *
`options.row` - the matrix row object.\n * @see onMatrixCellCreated\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDropdownModel\n */\n public onMatrixAfterCellRender: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired when cell value is changed in Matrix Dynamic and Matrix Dropdown questions.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the matrix question.\n *
`options.columnName` - the matrix column name.\n *
`options.value` - a new value.\n *
`options.row` - the matrix row object.\n *
`options.getCellQuestion(columnName)` - the function that returns the cell question by column name.\n * @see onMatrixCellValueChanging\n * @see onMatrixBeforeRowAdded\n * @see onMatrixRowAdded\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDropdownModel\n */\n public onMatrixCellValueChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on changing cell value in Matrix Dynamic and Matrix Dropdown questions. You may change the `options.value` property to change a cell value.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the matrix question.\n *
`options.columnName` - the matrix column name.\n *
`options.value` - a new value.\n *
`options.oldValue` - the old value.\n *
`options.row` - the matrix row object.\n *
`options.getCellQuestion(columnName)` - the function that returns a cell question by column name.\n * @see onMatrixCellValueChanged\n * @see onMatrixBeforeRowAdded\n * @see onMatrixRowAdded\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDropdownModel\n */\n public onMatrixCellValueChanging: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired when Matrix Dynamic and Matrix Dropdown questions validate the cell value.\n *
`sender` - the survey object that fires the event.\n *
`options.error` - an error string. It is empty by default.\n *
`options.question` - the matrix question.\n *
`options.columnName` - the matrix column name.\n *
`options.value` - a cell value.\n *
`options.row` - the matrix row object.\n *
`options.getCellQuestion(columnName)` - the function that returns the cell question by column name.\n * @see onMatrixBeforeRowAdded\n * @see onMatrixRowAdded\n * @see QuestionMatrixDynamicModel\n * @see QuestionMatrixDropdownModel\n */\n public onMatrixCellValidate: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on adding a new panel in Panel Dynamic question.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a panel question.\n * @see QuestionPanelDynamicModel\n * @see QuestionPanelDynamicModel.panels\n */\n public onDynamicPanelAdded: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired on removing a panel from Panel Dynamic question.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a panel question.\n *
`options.panelIndex` - a removed panel index.\n *
`options.panel` - a removed panel.\n * @see QuestionPanelDynamicModel\n * @see QuestionPanelDynamicModel.panels\n */\n public onDynamicPanelRemoved: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired every second if the method `startTimer` has been called.\n * @see startTimer\n * @see timeSpent\n * @see Page.timeSpent\n */\n public onTimer: EventBase = this.addEvent();\n /**\n * The event is fired before displaying a new information in the Timer Panel. Use it to change the default text.\n *
`sender` - the survey object that fires the event.\n *
`options.text` - the timer panel info text.\n */\n public onTimerPanelInfoText: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired when item value is changed in Panel Dynamic question.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - the panel question.\n *
`options.panel` - the dynamic panel item.\n *
`options.name` - the item name.\n *
`options.value` - a new value.\n *
`options.itemIndex` - the panel item index.\n *
`options.itemValue` - the panel item object.\n * @see onDynamicPanelAdded\n * @see QuestionPanelDynamicModel\n */\n public onDynamicPanelItemValueChanged: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to define, whether an answer to a question is correct or not.\n *
`sender` - the survey object that fires the event.\n *
`options.question` - a question on which you have to decide if the answer is correct or not.\n *
`options.result` - returns `true`, if an answer is correct, or `false`, if the answer is not correct. Use questions' `value` and `correctAnswer` properties to return the correct value.\n *
`options.correctAnswers` - you may change the default number of correct or incorrect answers in the question, for example for matrix, where each row is a quiz question.\n * @see Question.value\n * @see Question.correctAnswer\n */\n public onIsAnswerCorrect: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to control drag&drop operations during design mode.\n *
`sender` - the survey object that fires the event.\n *
`options.allow` - set it to `false` to disable dragging.\n *
`options.target` - a target element that is dragged.\n *
`options.source` - a source element. It can be `null`, if it is a new element, dragging from toolbox.\n *
`options.parent` - a page or panel where target element is dragging.\n *
`options.insertBefore` - an element before the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging an element after the last element in a container.\n *
`options.insertAfter` - an element after the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging element to the first position within the parent container.\n * @see setDesignMode\n * @see isDesignMode\n */\n public onDragDropAllow: EventBase = this.addEvent();\n /**\n * Use this event to control scrolling element to top. You can cancel the default behavior by setting options.cancel property to true.\n *
`sender` - the survey object that fires the event.\n *
`options.element` - an element that is going to be scrolled on top.\n *
`options.question` - a question that is going to be scrolled on top. It can be null if options.page is not null.\n *
`options.page` - a page that is going to be scrolled on top. It can be null if options.question is not null.\n *
`options.elementId` - the unique element DOM Id.\n *
`options.cancel` - set this property to true to cancel the default scrolling.\n */\n public onScrollingElementToTop: EventBase = this.addEvent<\n SurveyModel\n >();\n\n public onLocaleChangedEvent: EventBase = this.addEvent<\n SurveyModel\n >();\n\n /**\n * Use this event to create/customize actions to be displayed in a question's title.\n *
`sender` - A [Survey](https://surveyjs.io/Documentation/Library?id=SurveyModel) object that fires the event.\n *
`options.question` - A [Question](https://surveyjs.io/Documentation/Library?id=Question) object for which the event is fired.\n *
`options.actions` - A list of actions ([IActionBarItem](https://surveyjs.io/Documentation/Library?id=IActionBarItem) objects) associated with the processed question.\n * @see IActionBarItem\n * @see Question\n */\n public onGetQuestionTitleActions: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to create/customize actions to be displayed in a panel's title.\n *
`sender` - A survey object that fires the event.\n *
`options.panel` - A panel ([PanelModel](https://surveyjs.io/Documentation/Library?id=panelmodel) object) for which the event is fired.\n *
`options.actions` - A list of actions ([IActionBarItem](https://surveyjs.io/Documentation/Library?id=IActionBarItem) objects) associated with the processed panel.\n * @see IActionBarItem\n * @see PanelModel\n */\n public onGetPanelTitleActions: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to create/customize actions to be displayed in a page's title.\n *
`sender` - A survey object that fires the event.\n *
`options.page` - A page ([PageModel](https://surveyjs.io/Documentation/Library?id=pagemodel) object) for which the event is fired.\n *
`options.actions` - A list of actions ([IActionBarItem](https://surveyjs.io/Documentation/Library?id=IActionBarItem) objects) associated with the processed page.\n * @see IActionBarItem\n * @see PageModel\n */\n public onGetPageTitleActions: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * Use this event to create/customize actions to be displayed in a matrix question's row.\n *
`sender` - A survey object that fires the event.\n *
`options.question` - A matrix question ([QuestionMatrixBaseModel](https://surveyjs.io/Documentation/Library?id=questionmatrixbasemodel) object) for which the event is fired.\n *
`options.row` - A matrix row for which the event is fired.\n *
`options.actions` - A list of actions ([IActionBarItem](https://surveyjs.io/Documentation/Library?id=IActionBarItem) objects) associated with the processed matrix question and row.\n * @see IActionBarItem\n * @see QuestionMatrixDropdownModelBase\n */\n public onGetMatrixRowActions: EventBase = this.addEvent<\n SurveyModel\n >();\n /**\n * The event is fired after the survey element content was collapsed or expanded.\n *
`sender` - the survey object that fires the event.\n *
`options.element` - Specifies which survey element content was collapsed or expanded.\n * @see onElementContentVisibilityChanged\n */\n public onElementContentVisibilityChanged: EventBase<\n SurveyModel\n > = this.addEvent();\n /**\n * The list of errors on loading survey JSON. If the list is empty after loading a JSON, then the JSON is correct and has no errors.\n * @see JsonError\n */\n public jsonErrors: Array = null;\n\n constructor(jsonObj: any = null) {\n super();\n if (typeof document !== \"undefined\") {\n SurveyModel.stylesManager = new StylesManager();\n }\n this.createLocalizableString(\"title\", this, true);\n this.createLocalizableString(\"description\", this, true);\n this.createLocalizableString(\"logo\", this, false);\n this.createLocalizableString(\"completedHtml\", this);\n this.createLocalizableString(\"completedBeforeHtml\", this);\n this.createLocalizableString(\"loadingHtml\", this);\n this.createLocalizableString(\"startSurveyText\", this);\n this.createLocalizableString(\"pagePrevText\", this);\n this.createLocalizableString(\"pageNextText\", this);\n this.createLocalizableString(\"completeText\", this);\n this.createLocalizableString(\"previewText\", this);\n this.createLocalizableString(\"editText\", this);\n this.createLocalizableString(\"questionTitleTemplate\", this, true);\n\n this.textPreProcessor = new TextPreProcessor();\n this.textPreProcessor.onProcess = (textValue: TextPreProcessorValue) => {\n this.getProcessedTextValue(textValue);\n };\n this.createNewArray(\n \"pages\",\n (value: any) => {\n this.doOnPageAdded(value);\n },\n (value: any) => {\n this.doOnPageRemoved(value);\n }\n );\n this.createNewArray(\"triggers\", (value: any) => {\n value.setOwner(this);\n });\n this.createNewArray(\"calculatedValues\", (value: any) => {\n value.setOwner(this);\n });\n this.createNewArray(\"completedHtmlOnCondition\", (value: any) => {\n value.locOwner = this;\n });\n this.createNewArray(\"navigateToUrlOnCondition\", (value: any) => {\n value.locOwner = this;\n });\n this.registerFunctionOnPropertyValueChanged(\"firstPageIsStarted\", () => {\n this.onFirstPageIsStartedChanged();\n });\n this.registerFunctionOnPropertyValueChanged(\"mode\", () => {\n this.onModeChanged();\n });\n this.registerFunctionOnPropertyValueChanged(\"progressBarType\", () => {\n this.updateProgressText();\n });\n this.onProgressText.onCallbacksChanged = () => {\n this.updateProgressText();\n };\n this.onBeforeCreating();\n if (jsonObj) {\n if (typeof jsonObj === \"string\" || jsonObj instanceof String) {\n jsonObj = JSON.parse(jsonObj as string);\n }\n if (jsonObj && jsonObj.clientId) {\n this.clientId = jsonObj.clientId;\n }\n this.fromJSON(jsonObj);\n if (this.surveyId) {\n this.loadSurveyFromService(this.surveyId, this.clientId);\n }\n }\n this.onCreating();\n }\n public getType(): string {\n return \"survey\";\n }\n protected onPropertyValueChanged(name: string, oldValue: any, newValue: any) {\n if (name === \"questionsOnPageMode\") {\n this.onQuestionsOnPageModeChanged(oldValue);\n }\n }\n\n /**\n * Returns a list of all pages in the survey, including invisible pages.\n * @see PageModel\n * @see visiblePages\n */\n public get pages(): Array {\n return this.getPropertyValue(\"pages\");\n }\n public getCss(): any {\n return this.css;\n }\n private cssValue: any = null;\n public get css(): any {\n if (!this.cssValue) {\n this.cssValue = {};\n this.copyCssClasses(this.cssValue, surveyCss.getCss());\n }\n return this.cssValue;\n }\n public set css(value: any) {\n this.mergeValues(value, this.css);\n }\n public get cssNavigationComplete() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.complete\n );\n }\n public get cssNavigationPreview() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.preview\n );\n }\n public get cssNavigationEdit() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.edit\n );\n }\n public get cssNavigationPrev() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.prev\n );\n }\n public get cssNavigationStart() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.start\n );\n }\n public get cssNavigationNext() {\n return this.getNavigationCss(\n this.css.navigationButton,\n this.css.navigation.next\n );\n }\n public get completedCss() {\n var css = this.css;\n return css.body + \" \" + css.completedPage;\n }\n private getNavigationCss(main: string, btn: string) {\n var res = \"\";\n if (main) res = main;\n if (btn) res += \" \" + btn;\n return res;\n }\n private lazyRenderingValue: boolean;\n /**\n * By default all rows are rendered no matters if they are visible or not.\n * Set it true, and survey markup rows will be rendered only if they are visible in viewport.\n * This feature is experimantal and might do not support all the use cases.\n */\n public get lazyRendering(): boolean {\n return this.lazyRenderingValue === true;\n }\n public set lazyRendering(val: boolean) {\n this.lazyRenderingValue = val;\n }\n public get isLazyRendering(): boolean {\n return this.lazyRendering || settings.lazyRowsRendering;\n }\n /**\n * Gets or sets a list of triggers in the survey.\n * @see SurveyTrigger\n */\n public get triggers(): Array {\n return this.getPropertyValue(\"triggers\");\n }\n public set triggers(val: Array) {\n this.setPropertyValue(\"triggers\", val);\n }\n /**\n * Gets or sets a list of calculated values in the survey.\n * @see CalculatedValue\n */\n public get calculatedValues(): Array {\n return this.getPropertyValue(\"calculatedValues\");\n }\n public set calculatedValues(val: Array) {\n this.setPropertyValue(\"calculatedValues\", val);\n }\n /**\n * Gets or sets an identifier of a survey model loaded from the [api.surveyjs.io](https://api.surveyjs.io) service. When specified, the survey JSON is automatically loaded from [api.surveyjs.io](https://api.surveyjs.io) service.\n * @see loadSurveyFromService\n * @see onLoadedSurveyFromService\n */\n public get surveyId(): string {\n return this.getPropertyValue(\"surveyId\", \"\");\n }\n public set surveyId(val: string) {\n this.setPropertyValue(\"surveyId\", val);\n }\n /**\n * Gets or sets an identifier of a survey model saved to the [api.surveyjs.io](https://api.surveyjs.io) service. When specified, the survey data is automatically saved to the [api.surveyjs.io](https://api.surveyjs.io) service.\n * @see onComplete\n * @see surveyShowDataSaving\n */\n public get surveyPostId(): string {\n return this.getPropertyValue(\"surveyPostId\", \"\");\n }\n public set surveyPostId(val: string) {\n this.setPropertyValue(\"surveyPostId\", val);\n }\n /**\n * Gets or sets user's identifier (e.g., e-mail or unique customer id) in your web application.\n * If you load survey or post survey results from/to [api.surveyjs.io](https://api.surveyjs.io) service, then the library do not allow users to run the same survey the second time.\n * On the second run, the user will see the survey complete page.\n */\n public get clientId(): string {\n return this.getPropertyValue(\"clientId\", \"\");\n }\n public set clientId(val: string) {\n this.setPropertyValue(\"clientId\", val);\n }\n /**\n * Gets or sets a cookie name used to save information about completing the survey.\n * If the property is not empty, before starting the survey, the Survey library checks if the cookie with this name exists.\n * If it is `true`, the survey goes to complete mode and a user sees the survey complete page. On completing the survey the cookie with this name is created.\n */\n public get cookieName(): string {\n return this.getPropertyValue(\"cookieName\", \"\");\n }\n public set cookieName(val: string) {\n this.setPropertyValue(\"cookieName\", val);\n }\n /**\n * Gets or sets whether to save survey results on completing every page. If the property value is set to `true`, the `onPartialSend` event is fired.\n * @see onPartialSend\n * @see clientId\n */\n public get sendResultOnPageNext(): boolean {\n return this.getPropertyValue(\"sendResultOnPageNext\", false);\n }\n public set sendResultOnPageNext(val: boolean) {\n this.setPropertyValue(\"sendResultOnPageNext\", val);\n }\n /**\n * Gets or sets whether to show the progress on saving/sending data into the [api.surveyjs.io](https://api.surveyjs.io) service.\n * @see surveyPostId\n */\n public get surveyShowDataSaving(): boolean {\n return this.getPropertyValue(\"surveyShowDataSaving\", false);\n }\n public set surveyShowDataSaving(val: boolean) {\n this.setPropertyValue(\"surveyShowDataSaving\", val);\n }\n /**\n * Gets or sets whether the first input is focused on showing a next or a previous page.\n */\n public get focusFirstQuestionAutomatic(): boolean {\n return this.getPropertyValue(\"focusFirstQuestionAutomatic\", true);\n }\n public set focusFirstQuestionAutomatic(val: boolean) {\n this.setPropertyValue(\"focusFirstQuestionAutomatic\", val);\n }\n /**\n * Gets or sets whether the first input is focused if the current page has errors.\n * Set this property to `false` (the default value is `true`) if you do not want to bring the focus to the first question that has error on the page.\n */\n public get focusOnFirstError(): boolean {\n return this.getPropertyValue(\"focusOnFirstError\", true);\n }\n public set focusOnFirstError(val: boolean) {\n this.setPropertyValue(\"focusOnFirstError\", val);\n }\n /**\n * Gets or sets the navigation buttons position.\n * Possible values: 'bottom' (default), 'top', 'both' and 'none'. Set it to 'none' to hide 'Prev', 'Next' and 'Complete' buttons.\n * It makes sense if you are going to create a custom navigation, have only a single page, or the `goNextPageAutomatic` property is set to `true`.\n * @see goNextPageAutomatic\n * @see showPrevButton\n */\n public get showNavigationButtons(): string | any {\n return this.getPropertyValue(\"showNavigationButtons\");\n }\n public set showNavigationButtons(val: string | any) {\n if (val === true || val === undefined) {\n val = \"bottom\";\n }\n if (val === false) {\n val = \"none\";\n }\n this.setPropertyValue(\"showNavigationButtons\", val);\n }\n /**\n * Gets or sets whether the Survey displays \"Prev\" button in its pages. Set it to `false` to prevent end-users from going back to their answers.\n * @see showNavigationButtons\n */\n public get showPrevButton(): boolean {\n return this.getPropertyValue(\"showPrevButton\", true);\n }\n public set showPrevButton(val: boolean) {\n this.setPropertyValue(\"showPrevButton\", val);\n }\n /**\n * Gets or sets whether the Survey displays survey title in its pages. Set it to `false` to hide a survey title.\n * @see title\n */\n public get showTitle(): boolean {\n return this.getPropertyValue(\"showTitle\", true);\n }\n public set showTitle(val: boolean) {\n this.setPropertyValue(\"showTitle\", val);\n }\n /**\n * Gets or sets whether the Survey displays page titles. Set it to `false` to hide page titles.\n * @see PageModel.title\n */\n public get showPageTitles(): boolean {\n return this.getPropertyValue(\"showPageTitles\", true);\n }\n public set showPageTitles(val: boolean) {\n this.setPropertyValue(\"showPageTitles\", val);\n }\n /**\n * On finishing the survey the complete page is shown. Set the property to `false`, to hide the complete page.\n * @see data\n * @see onComplete\n * @see navigateToUrl\n */\n public get showCompletedPage(): boolean {\n return this.getPropertyValue(\"showCompletedPage\", true);\n }\n public set showCompletedPage(val: boolean) {\n this.setPropertyValue(\"showCompletedPage\", val);\n }\n /**\n * Set this property to a url you want to navigate after a user completing the survey.\n * By default it uses after calling onComplete event. In case calling options.showDataSaving callback in onComplete event, navigateToUrl will be used on calling options.showDataSavingSuccess callback.\n */\n public get navigateToUrl(): string {\n return this.getPropertyValue(\"navigateToUrl\");\n }\n public set navigateToUrl(val: string) {\n this.setPropertyValue(\"navigateToUrl\", val);\n }\n /**\n * Gets or sets a list of URL condition items. If the expression of this item returns `true`, then survey will navigate to the item URL.\n * @see UrlConditionItem\n * @see navigateToUrl\n */\n public get navigateToUrlOnCondition(): Array {\n return this.getPropertyValue(\"navigateToUrlOnCondition\");\n }\n public set navigateToUrlOnCondition(val: Array) {\n this.setPropertyValue(\"navigateToUrlOnCondition\", val);\n }\n\n public getNavigateToUrl(): string {\n var item = this.getExpressionItemOnRunCondition(\n this.navigateToUrlOnCondition\n );\n var url = !!item ? (item).url : this.navigateToUrl;\n if (!!url) {\n url = this.processText(url, true);\n }\n return url;\n }\n private navigateTo() {\n var url = this.getNavigateToUrl();\n var options = { url: url };\n this.onNavigateToUrl.fire(this, options);\n if (!options.url || typeof window === \"undefined\" || !window.location)\n return;\n window.location.href = options.url;\n }\n /**\n * Gets or sets the required question mark. The required question mark is a char or string that is rendered in the required questions' titles.\n * @see Question.title\n */\n public get requiredText(): string {\n return this.getPropertyValue(\"requiredText\", \"*\");\n }\n public set requiredText(val: string) {\n this.setPropertyValue(\"requiredText\", val);\n }\n /**\n * Gets or sets whether to hide all required errors.\n */\n public hideRequiredErrors: boolean = false;\n beforeSettingQuestionErrors(\n question: IQuestion,\n errors: Array\n ): void {\n this.maakeRequiredErrorsInvisibgle(errors);\n this.onSettingQuestionErrors.fire(this, {\n question: question,\n errors: errors,\n });\n }\n beforeSettingPanelErrors(question: IPanel, errors: Array): void {\n this.maakeRequiredErrorsInvisibgle(errors);\n }\n private maakeRequiredErrorsInvisibgle(errors: Array) {\n if (!this.hideRequiredErrors) return;\n for (var i = 0; i < errors.length; i++) {\n var erType = errors[i].getErrorType();\n if (erType == \"required\" || erType == \"requireoneanswer\") {\n errors[i].visible = false;\n }\n }\n }\n /**\n * Gets or sets the first question index. The first question index is '1' by default. You may start it from '100' or from 'A', by setting '100' or 'A' to this property.\n * You can set the start index to \"(1)\" or \"# A)\" or \"a)\" to render question number as (1), # A) and a) accordingly.\n * @see Question.title\n * @see requiredText\n */\n public get questionStartIndex(): string {\n return this.getPropertyValue(\"questionStartIndex\", \"\");\n }\n public set questionStartIndex(val: string) {\n this.setPropertyValue(\"questionStartIndex\", val);\n }\n /**\n * Gets or sets whether the \"Others\" option text is stored as question comment.\n *\n * By default the entered text in the \"Others\" input in the checkbox/radiogroup/dropdown is stored as `\"question name \" + \"-Comment\"`. The value itself is `\"question name\": \"others\"`.\n * Set this property to `false`, to store the entered text directly in the `\"question name\"` key.\n * @see commentPrefix\n */\n public get storeOthersAsComment(): boolean {\n return this.getPropertyValue(\"storeOthersAsComment\", true);\n }\n public set storeOthersAsComment(val: boolean) {\n this.setPropertyValue(\"storeOthersAsComment\", val);\n }\n /**\n * Specifies the default maximum length for questions like text and comment, including matrix cell questions.\n *\n * The default value is `0`, that means that the text and comment have the same max length as the standard HTML input - 524288 characters: https://www.w3schools.com/tags/att_input_maxlength.asp.\n * @see maxOthersLength\n */\n public get maxTextLength(): number {\n return this.getPropertyValue(\"maxTextLength\", 0);\n }\n public set maxTextLength(val: number) {\n this.setPropertyValue(\"maxTextLength\", val);\n }\n /**\n * Gets or sets the default maximum length for question comments and others\n *\n * The default value is `0`, that means that the question comments have the same max length as the standard HTML input - 524288 characters: https://www.w3schools.com/tags/att_input_maxlength.asp.\n * @see Question.hasComment\n * @see Question.hasOther\n * @see maxTextLength\n */\n public get maxOthersLength(): number {\n return this.getPropertyValue(\"maxOthersLength\", 0);\n }\n public set maxOthersLength(val: number) {\n this.setPropertyValue(\"maxOthersLength\", val);\n }\n\n /**\n * Gets or ses whether a user can navigate the next page automatically after answering all the questions on a page without pressing the \"Next\" button.\n * The available options:\n *\n * - `true` - navigate the next page and submit survey data automatically.\n * - `autogonext` - navigate the next page automatically but do not submit survey data.\n * - `false` - do not navigate the next page and do not submit survey data automatically.\n * @see showNavigationButtons\n */\n public get goNextPageAutomatic(): boolean | \"autogonext\" {\n return this.getPropertyValue(\"goNextPageAutomatic\", false);\n }\n public set goNextPageAutomatic(val: boolean | \"autogonext\") {\n this.setPropertyValue(\"goNextPageAutomatic\", val);\n }\n /**\n * Gets or sets whether a survey is automatically completed when `goNextPageAutomatic = true`. Set it to `false` if you do not want to submit survey automatically on completing the last survey page.\n * @see goNextPageAutomatic\n */\n public get allowCompleteSurveyAutomatic(): boolean {\n return this.getPropertyValue(\"allowCompleteSurveyAutomatic\", true);\n }\n public set allowCompleteSurveyAutomatic(val: boolean) {\n this.setPropertyValue(\"allowCompleteSurveyAutomatic\", val);\n }\n /**\n * Gets or sets a value that specifies how the survey validates the question answers.\n *\n * The following options are available:\n *\n * - `onNextPage` (default) - check errors on navigating to the next page or on completing the survey.\n * - `onValueChanged` - check errors on every question value (i.e., answer) changing.\n * - `onValueChanging` - check errors before setting value into survey. If there is an error, then survey data is not changed, but question value will be keeped.\n * - `onComplete` - to validate all visible questions on complete button click. If there are errors on previous pages, then the page with the first error becomes the current.\n */\n public get checkErrorsMode(): string {\n return this.getPropertyValue(\"checkErrorsMode\");\n }\n public set checkErrorsMode(val: string) {\n this.setPropertyValue(\"checkErrorsMode\", val);\n }\n /**\n * Gets or sets a value that specifies how the survey updates its questions' text values.\n *\n * The following options are available:\n *\n * - `onBlur` (default) - the value is updated after an input loses the focus.\n * - `onTyping` - update the value of text questions, \"text\" and \"comment\", on every key press.\n *\n * Note, that setting to \"onTyping\" may lead to a performance degradation, in case you have many expressions in the survey.\n */\n public get textUpdateMode(): string {\n return this.getPropertyValue(\"textUpdateMode\");\n }\n public set textUpdateMode(val: string) {\n this.setPropertyValue(\"textUpdateMode\", val);\n }\n /**\n * Gets or sets a value that specifies how the invisible data is included in survey data.\n *\n * The following options are available:\n *\n * - `none` - include the invisible values into the survey data.\n * - `onHidden` - clear the question value when it becomes invisible. If a question has value and it was invisible initially then survey clears the value on completing.\n * - `onHiddenContainer` - clear the question value when it or its parent (page or panel) becomes invisible. If a question has value and it was invisible initially then survey clears the value on completing.\n * - `onComplete` (default) - clear invisible question values on survey complete. In this case, the invisible questions will not be stored on the server.\n * @see Question.visible\n * @see onComplete\n */\n public get clearInvisibleValues(): any {\n return this.getPropertyValue(\"clearInvisibleValues\");\n }\n public set clearInvisibleValues(val: any) {\n if (val === true) val = \"onComplete\";\n if (val === false) val = \"none\";\n this.setPropertyValue(\"clearInvisibleValues\", val);\n }\n /**\n * Call this function to remove all question values from the survey, that end-user will not be able to enter.\n * For example the value that doesn't exists in a radiogroup/dropdown/checkbox choices or matrix rows/columns.\n * Please note, this function doesn't clear values for invisible questions or values that doesn't associated with questions.\n * In fact this function just call clearIncorrectValues function of all questions in the survey\n * @param removeNonExisingRootKeys - set this parameter to true to remove keys from survey.data that doesn't have corresponded questions and calculated values\n * @see Question.clearIncorrectValues\n * @see Page.clearIncorrectValues\n * @see Panel.clearIncorrectValues\n */\n public clearIncorrectValues(removeNonExisingRootKeys: boolean = false) {\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].clearIncorrectValues();\n }\n if (!removeNonExisingRootKeys) return;\n var data = this.data;\n var hasChanges = false;\n for (var key in data) {\n if (!!this.getQuestionByValueName(key)) continue;\n if (\n this.iscorrectValueWithPostPrefix(key, settings.commentPrefix) ||\n this.iscorrectValueWithPostPrefix(key, settings.matrixTotalValuePostFix)\n )\n continue;\n var calcValue = this.getCalculatedValueByName(key);\n if (!!calcValue && calcValue.includeIntoResult) continue;\n hasChanges = true;\n delete data[key];\n }\n if (hasChanges) {\n this.data = data;\n }\n }\n private iscorrectValueWithPostPrefix(\n key: string,\n postPrefix: string\n ): boolean {\n if (key.indexOf(postPrefix) !== key.length - postPrefix.length)\n return false;\n return !!this.getQuestionByValueName(\n key.substr(0, key.indexOf(postPrefix))\n );\n }\n\n /**\n * Gets or sets the survey locale. The default value it is empty, this means the 'en' locale is used.\n * You can set it to 'de' - German, 'fr' - French and so on. The library has built-in localization for several languages. The library has a multi-language support as well.\n */\n public get locale(): string {\n return this.localeValue;\n }\n public set locale(value: string) {\n surveyLocalization.currentLocale = value;\n this.localeValue = surveyLocalization.currentLocale;\n this.setPropertyValue(\"locale\", this.localeValue);\n if (this.isLoadingFromJson) return;\n this.locStrsChanged();\n this.onLocaleChanged();\n this.onLocaleChangedEvent.fire(this, value);\n }\n /**\n * Returns an array of locales that are used in the survey's translation.\n */\n public getUsedLocales(): Array {\n var locs = new Array();\n this.addUsedLocales(locs);\n //Replace the default locale with the real one\n var index = locs.indexOf(\"default\");\n if (index > -1) {\n var defaultLoc = surveyLocalization.defaultLocale;\n //Remove the defaultLoc\n var defIndex = locs.indexOf(defaultLoc);\n if (defIndex > -1) {\n locs.splice(defIndex, 1);\n }\n index = locs.indexOf(\"default\");\n locs[index] = defaultLoc;\n }\n return locs;\n }\n protected onLocaleChanged() {}\n //ILocalizableOwner\n getLocale() {\n return this.locale;\n }\n public locStrsChanged() {\n super.locStrsChanged();\n //Do not set current page if it is not set yet.\n //At first we do not need this, at second it creates issues with Vue CLI projects\n //More information here: https://github.com/surveyjs/survey-library/issues/2599\n if (!this.currentPageValue) return;\n this.updateProgressText();\n if (this.isStartedState && this.startedPage) {\n this.startedPage.locStrsChanged();\n }\n if (this.currentPage) {\n this.currentPage.locStrsChanged();\n }\n }\n public getMarkdownHtml(text: string, name: string): string {\n return this.getSurveyMarkdownHtml(this, text, name);\n }\n public getRenderer(name: string): string {\n return this.getRendererForString(this, name);\n }\n public getRendererForString(element: Base, name: string): string {\n const renderAs = this.getBuiltInRendererForString(element, name);\n var options = { element: element, name: name, renderAs: renderAs };\n this.onTextRenderAs.fire(this, options);\n return options.renderAs;\n }\n private getBuiltInRendererForString(element: Base, name: string): string {\n if (this.isDesignMode) return LocalizableString.editableRenderer;\n return undefined;\n }\n public getProcessedText(text: string) {\n return this.processText(text, true);\n }\n getLocString(str: string) {\n return surveyLocalization.getString(str);\n }\n //ISurveyErrorOwner\n getErrorCustomText(text: string, error: SurveyError): string {\n var options = {\n text: text,\n name: error.getErrorType(),\n error: error,\n };\n this.onErrorCustomText.fire(this, options);\n return options.text;\n }\n /**\n * Returns the text that is displayed when there are no any visible pages and questiona.\n */\n public get emptySurveyText(): string {\n return this.getLocString(\"emptySurvey\");\n }\n /**\n * Gets or sets a survey title.\n * @see description\n */\n public get title(): string {\n return this.getLocalizableStringText(\"title\");\n }\n public set title(value: string) {\n this.setLocalizableStringText(\"title\", value);\n }\n get locTitle(): LocalizableString {\n return this.getLocalizableString(\"title\");\n }\n /**\n * Gets or sets a survey description. The survey description is displayed under a survey title.\n * @see title\n */\n public get description(): string {\n return this.getLocalizableStringText(\"description\");\n }\n public set description(value: string) {\n this.setLocalizableStringText(\"description\", value);\n }\n get locDescription(): LocalizableString {\n return this.getLocalizableString(\"description\");\n }\n /**\n * Gets or sets a survey logo.\n * @see title\n */\n public get logo(): string {\n return this.getLocalizableStringText(\"logo\");\n }\n public set logo(value: string) {\n this.setLocalizableStringText(\"logo\", value);\n }\n get locLogo(): LocalizableString {\n return this.getLocalizableString(\"logo\");\n }\n /**\n * Gets or sets a survey logo width.\n * @see logo\n */\n public get logoWidth(): number {\n return this.getPropertyValue(\"logoWidth\", 300);\n }\n public set logoWidth(value: number) {\n this.setPropertyValue(\"logoWidth\", value);\n }\n /**\n * Gets or sets a survey logo height.\n * @see logo\n */\n public get logoHeight(): number {\n return this.getPropertyValue(\"logoHeight\", 200);\n }\n public set logoHeight(value: number) {\n this.setPropertyValue(\"logoHeight\", value);\n }\n /**\n * Gets or sets a survey logo position.\n * @see logo\n */\n public get logoPosition(): string {\n return this.getPropertyValue(\"logoPosition\", \"left\");\n }\n public set logoPosition(value: string) {\n this.setPropertyValue(\"logoPosition\", value);\n }\n public get hasLogo() {\n return !!this.logo && this.logoPosition !== \"none\";\n }\n public get isLogoBefore() {\n return (\n this.hasLogo &&\n (this.logoPosition === \"left\" || this.logoPosition === \"top\")\n );\n }\n public get isLogoAfter() {\n return (\n this.hasLogo &&\n (this.logoPosition === \"right\" || this.logoPosition === \"bottom\")\n );\n }\n public get logoClassNames(): string {\n var logoClasses: { [index: string]: string } = {\n left: \"sv-logo--left\",\n right: \"sv-logo--right\",\n top: \"sv-logo--top\",\n bottom: \"sv-logo--bottom\",\n };\n return this.css.logo + \" \" + logoClasses[this.logoPosition];\n }\n /**\n * The logo fit mode.\n * @see logo\n */\n public get logoFit(): string {\n return this.getPropertyValue(\"logoFit\");\n }\n public set logoFit(val: string) {\n this.setPropertyValue(\"logoFit\", val);\n }\n private _isMobile = false;\n public setIsMobile(newVal = true) {\n this._isMobile = newVal;\n }\n private get isMobile() {\n return isMobile() || this._isMobile;\n }\n public get titleMaxWidth(): string {\n if (!this.isMobile && !this.isValueEmpty(this.logo)) {\n var logoWidth = this.logoWidth;\n if (this.logoPosition === \"left\" || this.logoPosition === \"right\") {\n return \"calc(100% - 5px - 2em - \" + logoWidth + \"px)\";\n }\n }\n return \"\";\n }\n /**\n * Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text.\n * @see showCompletedPage\n * @see completedHtmlOnCondition\n * @see locale\n */\n public get completedHtml(): string {\n return this.getLocalizableStringText(\"completedHtml\");\n }\n public set completedHtml(value: string) {\n this.setLocalizableStringText(\"completedHtml\", value);\n }\n get locCompletedHtml(): LocalizableString {\n return this.getLocalizableString(\"completedHtml\");\n }\n /**\n * The list of HTML condition items. If the expression of this item returns `true`, then a survey will use this item HTML instead of `completedHtml`.\n * @see HtmlConditionItem\n * @see completeHtml\n */\n public get completedHtmlOnCondition(): Array {\n return this.getPropertyValue(\"completedHtmlOnCondition\");\n }\n public set completedHtmlOnCondition(val: Array) {\n this.setPropertyValue(\"completedHtmlOnCondition\", val);\n }\n /**\n * Calculates a given expression and returns a result value.\n * @param expression\n */\n public runExpression(expression: string): any {\n if (!expression) return null;\n var values = this.getFilteredValues();\n var properties = this.getFilteredProperties();\n return new ExpressionRunner(expression).run(values, properties);\n }\n /**\n * Calculates a given expression and returns `true` or `false`.\n * @param expression\n */\n public runCondition(expression: string): boolean {\n if (!expression) return false;\n var values = this.getFilteredValues();\n var properties = this.getFilteredProperties();\n return new ConditionRunner(expression).run(values, properties);\n }\n /**\n * Run all triggers that performs on value changed and not on moving to the next page.\n */\n public runTriggers(): void {\n this.checkTriggers(this.getFilteredValues(), false);\n }\n public get renderedCompletedHtml(): string {\n var item = this.getExpressionItemOnRunCondition(\n this.completedHtmlOnCondition\n );\n return !!item ? (item).html : this.completedHtml;\n }\n private getExpressionItemOnRunCondition(\n items: Array\n ): ExpressionItem {\n if (items.length == 0) return null;\n var values = this.getFilteredValues();\n var properties = this.getFilteredProperties();\n for (var i = 0; i < items.length; i++) {\n if (items[i].runCondition(values, properties)) {\n return items[i];\n }\n }\n return null;\n }\n\n /**\n * The HTML content displayed to an end user that has already completed the survey.\n * @see clientId\n * @see locale\n */\n public get completedBeforeHtml(): string {\n return this.getLocalizableStringText(\"completedBeforeHtml\");\n }\n public set completedBeforeHtml(value: string) {\n this.setLocalizableStringText(\"completedBeforeHtml\", value);\n }\n get locCompletedBeforeHtml(): LocalizableString {\n return this.getLocalizableString(\"completedBeforeHtml\");\n }\n /**\n * The HTML that shows on loading survey Json from the [api.surveyjs.io](https://api.surveyjs.io) service.\n * @see surveyId\n * @see locale\n */\n public get loadingHtml(): string {\n return this.getLocalizableStringText(\"loadingHtml\");\n }\n public set loadingHtml(value: string) {\n this.setLocalizableStringText(\"loadingHtml\", value);\n }\n get locLoadingHtml(): LocalizableString {\n return this.getLocalizableString(\"loadingHtml\");\n }\n /**\n * Gets or sets the 'Start' button caption.\n * The 'Start' button is shown on the started page. Set the `firstPageIsStarted` property to `true`, to display the started page.\n * @see firstPageIsStarted\n * @see locale\n */\n public get startSurveyText(): string {\n return this.getLocalizableStringText(\n \"startSurveyText\",\n this.getLocString(\"startSurveyText\")\n );\n }\n public set startSurveyText(newValue: string) {\n this.setLocalizableStringText(\"startSurveyText\", newValue);\n }\n get locStartSurveyText(): LocalizableString {\n return this.getLocalizableString(\"startSurveyText\");\n }\n /**\n * Gets or sets the 'Prev' button caption.\n * @see locale\n */\n public get pagePrevText(): string {\n return this.getLocalizableStringText(\n \"pagePrevText\",\n this.getLocString(\"pagePrevText\")\n );\n }\n public set pagePrevText(newValue: string) {\n this.setLocalizableStringText(\"pagePrevText\", newValue);\n }\n get locPagePrevText(): LocalizableString {\n return this.getLocalizableString(\"pagePrevText\");\n }\n /**\n * Gets or sets the 'Next' button caption.\n * @see locale\n */\n public get pageNextText(): string {\n return this.getLocalizableStringText(\n \"pageNextText\",\n this.getLocString(\"pageNextText\")\n );\n }\n public set pageNextText(newValue: string) {\n this.setLocalizableStringText(\"pageNextText\", newValue);\n }\n get locPageNextText(): LocalizableString {\n return this.getLocalizableString(\"pageNextText\");\n }\n /**\n * Gets or sets the 'Complete' button caption.\n * @see locale\n */\n public get completeText(): string {\n return this.getLocalizableStringText(\n \"completeText\",\n this.getLocString(\"completeText\")\n );\n }\n public set completeText(newValue: string) {\n this.setLocalizableStringText(\"completeText\", newValue);\n }\n get locCompleteText(): LocalizableString {\n return this.getLocalizableString(\"completeText\");\n }\n /**\n * Gets or sets the 'Preview' button caption.\n * @see locale\n * @see showPreviewBeforeComplete\n * @see editText\n * @see showPreview\n */\n public get previewText(): string {\n return this.getLocalizableStringText(\n \"previewText\",\n this.getLocString(\"previewText\")\n );\n }\n public set previewText(newValue: string) {\n this.setLocalizableStringText(\"previewText\", newValue);\n }\n get locPreviewText(): LocalizableString {\n return this.getLocalizableString(\"previewText\");\n }\n /**\n * Gets or sets the 'Edit' button caption.\n * @see locale\n * @see showPreviewBeforeComplete\n * @see previewText\n * @see cancelPreview\n */\n public get editText(): string {\n return this.getLocalizableStringText(\n \"editText\",\n this.getLocString(\"editText\")\n );\n }\n public set editText(newValue: string) {\n this.setLocalizableStringText(\"editText\", newValue);\n }\n get locEditText(): LocalizableString {\n return this.getLocalizableString(\"editText\");\n }\n\n /**\n * Set the pattern for question title. Default is \"numTitleRequire\", 1. What is your name? *,\n * You can set it to numRequireTitle: 1. * What is your name?\n * You can set it to requireNumTitle: * 1. What is your name?\n * You can set it to numTitle (remove require symbol completely): 1. What is your name?\n * @see QuestionModel.title\n */\n public get questionTitlePattern(): string {\n return this.getPropertyValue(\"questionTitlePattern\", \"numTitleRequire\");\n }\n public set questionTitlePattern(val: string) {\n if (\n val !== \"numRequireTitle\" &&\n val !== \"requireNumTitle\" &&\n val != \"numTitle\"\n ) {\n val = \"numTitleRequire\";\n }\n this.setPropertyValue(\"questionTitlePattern\", val);\n }\n getQuestionTitlePatternOptions(): Array {\n var res = new Array();\n var title = this.getLocString(\"questionTitlePatternText\");\n var num = !!this.questionStartIndex ? this.questionStartIndex : \"1.\";\n res.push({\n value: \"numTitleRequire\",\n text: num + \" \" + title + \" \" + this.requiredText,\n });\n res.push({\n value: \"numRequireTitle\",\n text: num + \" \" + this.requiredText + \" \" + title,\n });\n res.push({\n value: \"requireNumTitle\",\n text: this.requiredText + \" \" + num + \" \" + title,\n });\n res.push({\n value: \"numTitle\",\n text: num + \" \" + title,\n });\n return res;\n }\n /**\n * Gets or sets a question title template. Obsolete, please use questionTitlePattern\n * @see QuestionModel.title\n * @see questionTitlePattern\n */\n public get questionTitleTemplate(): string {\n return this.getLocalizableStringText(\"questionTitleTemplate\");\n }\n public set questionTitleTemplate(value: string) {\n this.setLocalizableStringText(\"questionTitleTemplate\", value);\n this.questionTitlePattern = this.getNewTitlePattern(value);\n this.questionStartIndex = this.getNewQuestionTitleElement(\n value,\n \"no\",\n this.questionStartIndex,\n \"1\"\n );\n this.requiredText = this.getNewQuestionTitleElement(\n value,\n \"require\",\n this.requiredText,\n \"*\"\n );\n }\n private getNewTitlePattern(template: string): string {\n if (!!template) {\n var strs = [];\n while (template.indexOf(\"{\") > -1) {\n template = template.substr(template.indexOf(\"{\") + 1);\n var ind = template.indexOf(\"}\");\n if (ind < 0) break;\n strs.push(template.substr(0, ind));\n template = template.substr(ind + 1);\n }\n if (strs.length > 1) {\n if (strs[0] == \"require\") return \"requireNumTitle\";\n if (strs[1] == \"require\" && strs.length == 3) return \"numRequireTitle\";\n if (strs.indexOf(\"require\") < 0) return \"numTitle\";\n }\n if (strs.length == 1 && strs[0] == \"title\") {\n return \"numTitle\";\n }\n }\n return \"numTitleRequire\";\n }\n private getNewQuestionTitleElement(\n template: string,\n name: string,\n currentValue: string,\n defaultValue: string\n ): string {\n name = \"{\" + name + \"}\";\n if (!template || template.indexOf(name) < 0) return currentValue;\n var ind = template.indexOf(name);\n var prefix = \"\";\n var postfix = \"\";\n var i = ind - 1;\n for (; i >= 0; i--) {\n if (template[i] == \"}\") break;\n }\n if (i < ind - 1) {\n prefix = template.substr(i + 1, ind - i - 1);\n }\n ind += name.length;\n i = ind;\n for (; i < template.length; i++) {\n if (template[i] == \"{\") break;\n }\n if (i > ind) {\n postfix = template.substr(ind, i - ind);\n }\n i = 0;\n while (i < prefix.length && prefix.charCodeAt(i) < 33) i++;\n prefix = prefix.substr(i);\n i = postfix.length - 1;\n while (i >= 0 && postfix.charCodeAt(i) < 33) i--;\n postfix = postfix.substr(0, i + 1);\n if (!prefix && !postfix) return currentValue;\n var value = !!currentValue ? currentValue : defaultValue;\n return prefix + value + postfix;\n }\n get locQuestionTitleTemplate(): LocalizableString {\n return this.getLocalizableString(\"questionTitleTemplate\");\n }\n getUpdatedQuestionTitle(question: IQuestion, title: string): string {\n if (this.onGetQuestionTitle.isEmpty) return title;\n var options = { question: question, title: title };\n this.onGetQuestionTitle.fire(this, options);\n return options.title;\n }\n getUpdatedQuestionNo(question: IQuestion, no: string): string {\n if (this.onGetQuestionNo.isEmpty) return no;\n var options = { question: question, no: no };\n this.onGetQuestionNo.fire(this, options);\n return options.no;\n }\n /**\n * Gets or sets whether the survey displays page numbers on pages titles.\n */\n public get showPageNumbers(): boolean {\n return this.getPropertyValue(\"showPageNumbers\", false);\n }\n public set showPageNumbers(value: boolean) {\n if (value === this.showPageNumbers) return;\n this.setPropertyValue(\"showPageNumbers\", value);\n this.updateVisibleIndexes();\n }\n /**\n * Gets or sets a value that specifies how the question numbers are displayed.\n *\n * The following options are available:\n *\n * - `on` - display question numbers\n * - `onpage` - display question numbers, start numbering on every page\n * - `off` - turn off the numbering for questions titles\n */\n public get showQuestionNumbers(): string {\n return this.getPropertyValue(\"showQuestionNumbers\");\n }\n public set showQuestionNumbers(value: string) {\n value = value.toLowerCase();\n value = value === \"onpage\" ? \"onPage\" : value;\n if (value === this.showQuestionNumbers) return;\n this.setPropertyValue(\"showQuestionNumbers\", value);\n this.updateVisibleIndexes();\n }\n /**\n * Gets or sets the survey progress bar position.\n *\n * The following options are available:\n *\n * - `off` (default) - don't show progress bar\n * - `top` - show progress bar in the top\n * - `bottom` - show progress bar in the bottom\n * - `both` - show progress bar in both sides: top and bottom.\n */\n public get showProgressBar(): string {\n return this.getPropertyValue(\"showProgressBar\");\n }\n public set showProgressBar(newValue: string) {\n this.setPropertyValue(\"showProgressBar\", newValue.toLowerCase());\n }\n /**\n * Gets or sets the type of info in the progress bar.\n *\n * The following options are available:\n *\n * - `pages` (default),\n * - `questions`,\n * - `requiredQuestions`,\n * - `correctQuestions`,\n * - `buttons`\n */\n public get progressBarType(): string {\n return this.getPropertyValue(\"progressBarType\");\n }\n public set progressBarType(newValue: string) {\n if (newValue === \"correctquestion\") newValue = \"correctQuestion\";\n if (newValue === \"requiredquestion\") newValue = \"requiredQuestion\";\n this.setPropertyValue(\"progressBarType\", newValue);\n }\n public get isShowProgressBarOnTop(): boolean {\n if (!this.canShowProresBar()) return false;\n return this.showProgressBar === \"top\" || this.showProgressBar === \"both\";\n }\n public get isShowProgressBarOnBottom(): boolean {\n if (!this.canShowProresBar()) return false;\n return this.showProgressBar === \"bottom\" || this.showProgressBar === \"both\";\n }\n private canShowProresBar(): boolean {\n return (\n !this.isShowingPreview ||\n this.showPreviewBeforeComplete != \"showAllQuestions\"\n );\n }\n /**\n * Returns the text/HTML that is rendered as a survey title.\n */\n public get processedTitle() {\n return this.locTitle.renderedHtml;\n }\n /**\n * Gets or sets the question title location.\n *\n * The following options are available:\n *\n * - `bottom` - show a question title to bottom\n * - `left` - show a question title to left\n * - `top` - show a question title to top.\n *\n * > Some questions, for example matrixes, do not support 'left' value. The title for them will be displayed to the top.\n */\n public get questionTitleLocation(): string {\n return this.getPropertyValue(\"questionTitleLocation\");\n }\n public set questionTitleLocation(value: string) {\n this.setPropertyValue(\"questionTitleLocation\", value.toLowerCase());\n if (!this.isLoadingFromJson) {\n this.updateElementCss();\n }\n }\n protected updateElementCss() {\n var pages = this.visiblePages;\n for (var i = 0; i < pages.length; i++) {\n pages[i].updateElementCss();\n }\n }\n /**\n * Gets or sets the error message position.\n *\n * The following options are available:\n *\n * - `top` - to show question error(s) over the question,\n * - `bottom` - to show question error(s) under the question.\n */\n public get questionErrorLocation(): string {\n return this.getPropertyValue(\"questionErrorLocation\");\n }\n public set questionErrorLocation(value: string) {\n this.setPropertyValue(\"questionErrorLocation\", value.toLowerCase());\n }\n /**\n * Gets or sets the question description position.\n *\n * The following options are available:\n *\n * - `underTitle` - show question description under the question title,\n * - `underInput` - show question description under the question input instead of question title.\n */\n public get questionDescriptionLocation(): string {\n return this.getPropertyValue(\"questionDescriptionLocation\");\n }\n public set questionDescriptionLocation(value: string) {\n this.setPropertyValue(\"questionDescriptionLocation\", value);\n }\n /**\n * Gets or sets the survey edit mode.\n *\n * The following options are available:\n *\n * - `edit` (default) - make a survey editable,\n * - `display` - make a survey read-only.\n */\n public get mode(): string {\n return this.getPropertyValue(\"mode\");\n }\n public set mode(value: string) {\n value = value.toLowerCase();\n if (value == this.mode) return;\n if (value != \"edit\" && value != \"display\") return;\n this.setPropertyValue(\"mode\", value);\n }\n private onModeChanged() {\n for (var i = 0; i < this.pages.length; i++) {\n var page = this.pages[i];\n page.setPropertyValue(\"isReadOnly\", page.isReadOnly);\n }\n }\n /**\n * Gets or sets an object that stores the survey results/data. You can set it directly as `{ 'question name': questionValue, ... }`\n *\n * > If you set the `data` property after creating the survey, you may need to set the `currentPageNo` to `0`, if you are using `visibleIf` properties for questions/pages/panels to ensure that you are starting from the first page.\n * @see setValue\n * @see getValue\n * @see mergeData\n * @see currentPageNo\n */\n public get data(): any {\n var result: { [index: string]: any } = {};\n var keys = this.getValuesKeys();\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var dataValue = this.getDataValueCore(this.valuesHash, key);\n if (dataValue !== undefined) {\n result[key] = dataValue;\n }\n }\n this.setCalcuatedValuesIntoResult(result);\n return result;\n }\n public set data(data: any) {\n this.valuesHash = {};\n this.setDataCore(data);\n }\n /**\n * Merge the values into survey.data. It works as survey.data, except it doesn't clean the existing data, but overrides them.\n * @param data data to merge. It should be an object {keyValue: Value, ...}\n * @see data\n * @see setValue\n */\n public mergeData(data: any) {\n if (!data) return;\n this.setDataCore(data);\n }\n public setDataCore(data: any) {\n if (data) {\n for (var key in data) {\n this.setDataValueCore(this.valuesHash, key, data[key]);\n }\n }\n this.updateAllQuestionsValue();\n this.notifyAllQuestionsOnValueChanged();\n this.notifyElementsOnAnyValueOrVariableChanged(\"\");\n this.runConditions();\n }\n public get editingObj(): Base {\n return this.editingObjValue;\n }\n private onEditingObjPropertyChanged: (sender: Base, options: any) => void;\n public set editingObj(val: Base) {\n if (this.editingObj == val) return;\n if (!!this.editingObj) {\n this.editingObj.onPropertyChanged.remove(\n this.onEditingObjPropertyChanged\n );\n }\n this.editingObjValue = val;\n if (this.isDisposed) return;\n if (!val) {\n var questions = this.getAllQuestions();\n for (var i = 0; i < questions.length; i++) {\n questions[i].unbindValue();\n }\n }\n if (!!this.editingObj) {\n this.setDataCore({});\n this.onEditingObjPropertyChanged = (sender: Base, options: any) => {\n this.updateOnSetValue(options.name, options.newValue, options.oldValue);\n };\n this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged);\n }\n }\n public get isEditingSurveyElement() {\n return !!this.editingObj;\n }\n private setCalcuatedValuesIntoResult(result: any) {\n for (var i = 0; i < this.calculatedValues.length; i++) {\n var calValue = this.calculatedValues[i];\n if (\n calValue.includeIntoResult &&\n !!calValue.name &&\n this.getVariable(calValue.name) !== undefined\n ) {\n result[calValue.name] = this.getVariable(calValue.name);\n }\n }\n }\n getAllValues(): any {\n return this.data;\n }\n /**\n * Returns survey result data as an array of plain objects: with question `title`, `name`, `value`, and `displayValue`.\n *\n * For complex questions (like matrix, etc.) `isNode` flag is set to `true` and data contains array of nested objects (rows).\n *\n * Set `options.includeEmpty` to `false` if you want to skip empty answers.\n */\n public getPlainData(\n options: {\n includeEmpty?: boolean;\n includeQuestionTypes?: boolean;\n calculations?: Array<{\n propertyName: string;\n }>;\n } = {\n includeEmpty: true,\n includeQuestionTypes: false,\n }\n ) {\n var result: Array = [];\n this.getAllQuestions().forEach(question => {\n var resultItem = (question).getPlainData(options);\n if (!!resultItem) {\n result.push(resultItem);\n }\n });\n return result;\n }\n getFilteredValues(): any {\n var values: { [index: string]: any } = {};\n for (var key in this.variablesHash) values[key] = this.variablesHash[key];\n this.addCalculatedValuesIntoFilteredValues(values);\n var keys = this.getValuesKeys();\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n values[key] = this.getDataValueCore(this.valuesHash, key);\n }\n return values;\n }\n private addCalculatedValuesIntoFilteredValues(values: {\n [index: string]: any;\n }) {\n var caclValues = this.calculatedValues;\n for (var i = 0; i < caclValues.length; i++)\n values[caclValues[i].name] = caclValues[i].value;\n }\n getFilteredProperties(): any {\n return { survey: this };\n }\n private getValuesKeys(): Array {\n if (!this.editingObj) return Object.keys(this.valuesHash);\n var props = Serializer.getPropertiesByObj(this.editingObj);\n var res = [];\n for (var i = 0; i < props.length; i++) {\n res.push(props[i].name);\n }\n return res;\n }\n public getDataValueCore(valuesHash: any, key: string) {\n if (!!this.editingObj)\n return Serializer.getObjPropertyValue(this.editingObj, key);\n return valuesHash[key];\n }\n public setDataValueCore(valuesHash: any, key: string, value: any) {\n if (!!this.editingObj) {\n Serializer.setObjPropertyValue(this.editingObj, key, value);\n } else {\n valuesHash[key] = value;\n }\n }\n public deleteDataValueCore(valuesHash: any, key: string) {\n if (!!this.editingObj) {\n (this.editingObj)[key] = null;\n } else {\n delete valuesHash[key];\n }\n }\n /**\n * Returns all comments from the data.\n * @see data\n */\n public get comments(): any {\n var result: { [index: string]: any } = {};\n var keys = this.getValuesKeys();\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key.indexOf(this.commentPrefix) > 0) {\n result[key] = this.getDataValueCore(this.valuesHash, key);\n }\n }\n return result;\n }\n /**\n * Returns a list of visible pages. If all pages are visible, then this property returns the same list as the `pages` property.\n * @see pages\n * @see PageModel.visible\n * @see PageModel.visibleIf\n */\n public get visiblePages(): Array {\n if (this.isDesignMode) return this.pages;\n var result = new Array();\n for (var i = 0; i < this.pages.length; i++) {\n if (this.pages[i].isVisible) {\n result.push(this.pages[i]);\n }\n }\n return result;\n }\n /**\n * Returns `true` if the survey contains no pages. The survey is empty.\n */\n public get isEmpty(): boolean {\n return this.pages.length == 0;\n }\n /**\n * Deprecated. Use the `pageCount` property instead.\n */\n get PageCount(): number {\n return this.pageCount;\n }\n /**\n * Returns the survey page count.\n * @see visiblePageCount\n * @see pages\n */\n public get pageCount(): number {\n return this.pages.length;\n }\n /**\n * Returns a number of visible pages within the survey.\n * @see pageCount\n * @see visiblePages\n */\n public get visiblePageCount(): number {\n return this.visiblePages.length;\n }\n /**\n * Returns the started page. This property works if the `firstPageIsStarted` property is set to `true`.\n * @see firstPageIsStarted\n */\n public get startedPage(): PageModel {\n var page =\n this.firstPageIsStarted && this.pages.length > 0 ? this.pages[0] : null;\n if (!!page) {\n page.onFirstRendering();\n page.setWasShown(true);\n }\n return page;\n }\n /**\n * Gets or sets the current survey page. If a survey is rendered, then this property returns a page that a user can see/edit.\n */\n public get currentPage(): any {\n var vPages = this.visiblePages;\n if (this.currentPageValue != null) {\n if (vPages.indexOf(this.currentPageValue) < 0) {\n if (\n !this.onContainsPageCallback ||\n !this.onContainsPageCallback(this.currentPageValue)\n ) {\n this.currentPage = null;\n }\n }\n }\n if (this.currentPageValue == null && vPages.length > 0) {\n this.currentPage = vPages[0];\n }\n return this.currentPageValue;\n }\n public set currentPage(value: any) {\n var newPage = this.getPageByObject(value);\n if (!!value && !newPage) return;\n var vPages = this.visiblePages;\n if (newPage != null && vPages.indexOf(newPage) < 0) return;\n if (newPage == this.currentPageValue) return;\n var oldValue = this.currentPageValue;\n if (!this.currentPageChanging(newPage, oldValue)) return;\n this.currentPageValue = newPage;\n if (!!newPage) {\n newPage.onFirstRendering();\n newPage.updateCustomWidgets();\n newPage.setWasShown(true);\n }\n this.locStrsChanged();\n this.currentPageChanged(newPage, oldValue);\n }\n private getPageByObject(value: any): PageModel {\n if (!value) return null;\n if (value.getType && value.getType() == \"page\") return value;\n if (typeof value === \"string\" || value instanceof String)\n return this.getPageByName(String(value));\n if (!isNaN(value)) {\n var index = Number(value);\n var vPages = this.visiblePages;\n if (value < 0 || value >= vPages.length) return null;\n return vPages[index];\n }\n return value;\n }\n /**\n * The zero-based index of the current page in the visible pages array.\n */\n public get currentPageNo(): number {\n return this.visiblePages.indexOf(this.currentPage);\n }\n public set currentPageNo(value: number) {\n var vPages = this.visiblePages;\n if (value < 0 || value >= vPages.length) return;\n this.currentPage = vPages[value];\n }\n /**\n * Gets or sets the question display order. Use this property to randomize questions. You can randomize questions on a specific page.\n *\n * The following options are available:\n *\n * - `random` - randomize questions\n * - `initial` - keep questions in the same order, as in a survey model.\n * @see SurveyPage.questionsOrder\n */\n public get questionsOrder() {\n return this.getPropertyValue(\"questionsOrder\");\n }\n public set questionsOrder(val: string) {\n this.setPropertyValue(\"questionsOrder\", val);\n }\n\n /**\n * Sets the input focus to the first question with the input field.\n */\n public focusFirstQuestion() {\n var page = this.currentPage;\n if (page) {\n page.scrollToTop();\n page.focusFirstQuestion();\n }\n }\n scrollToTopOnPageChange() {\n var page = this.currentPage;\n if (!page) return;\n page.scrollToTop();\n if (this.focusFirstQuestionAutomatic) {\n page.focusFirstQuestion();\n }\n }\n /**\n * Returns the current survey state:\n *\n * - `loading` - the survey is being loaded from JSON,\n * - `empty` - there is nothing to display in the current survey,\n * - `starting` - the survey's start page is displayed,\n * - `running` - a respondent is answering survey questions right now,\n * - `preview` - a respondent is previewing answered questions before submitting the survey (see [example](https://surveyjs.io/Examples/Library?id=survey-showpreview)),\n * - `completed` - a respondent has completed the survey and submitted the results.\n *\n * Details: [Preview State](https://surveyjs.io/Documentation/Library#states)\n */\n public get state(): string {\n if (this.isLoading) return \"loading\";\n if (this.isCompleted) return \"completed\";\n if (this.isCompletedBefore) return \"completedbefore\";\n if (\n !this.isDesignMode &&\n this.isEditMode &&\n this.isStartedState &&\n this.startedPage\n )\n return \"starting\";\n if (this.isShowingPreview) return this.currentPage ? \"preview\" : \"empty\";\n return this.currentPage ? \"running\" : \"empty\";\n }\n private get isCompleted(): boolean {\n return this.getPropertyValue(\"isCompleted\", false);\n }\n private set isCompleted(val: boolean) {\n this.setPropertyValue(\"isCompleted\", val);\n }\n private get isShowingPreview(): boolean {\n return this.getPropertyValue(\"isShowingPreview\", false);\n }\n private set isShowingPreview(val: boolean) {\n if (this.isShowingPreview == val) return;\n this.setPropertyValue(\"isShowingPreview\", val);\n this.onShowingPreviewChanged();\n }\n private get isStartedState(): boolean {\n return this.getPropertyValue(\"isStartedState\", false);\n }\n private set isStartedState(val: boolean) {\n this.setPropertyValue(\"isStartedState\", val);\n }\n private get isCompletedBefore(): boolean {\n return this.getPropertyValue(\"isCompletedBefore\", false);\n }\n private set isCompletedBefore(val: boolean) {\n this.setPropertyValue(\"isCompletedBefore\", val);\n }\n private get isLoading(): boolean {\n return this.getPropertyValue(\"isLoading\", false);\n }\n private set isLoading(val: boolean) {\n this.setPropertyValue(\"isLoading\", val);\n }\n\n public get completedState(): string {\n return this.completedStateValue;\n }\n get completedStateText(): string {\n return this.completedStateTextValue;\n }\n protected setCompletedState(value: string, text: string) {\n this.completedStateValue = value;\n if (!text) {\n if (value == \"saving\") text = this.getLocString(\"savingData\");\n if (value == \"error\") text = this.getLocString(\"savingDataError\");\n if (value == \"success\") text = this.getLocString(\"savingDataSuccess\");\n }\n this.completedStateTextValue = text;\n }\n /**\n * Clears the survey data and state. If the survey has a `completed` state, it will get a `running` state.\n * @param clearData clear the data\n * @param gotoFirstPage make the first page as a current page.\n * @see data\n * @see state\n * @see currentPage\n */\n public clear(clearData: boolean = true, gotoFirstPage: boolean = true) {\n if (clearData) {\n this.data = null;\n this.variablesHash = {};\n }\n this.timeSpent = 0;\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].timeSpent = 0;\n this.pages[i].setWasShown(false);\n this.pages[i].passed = false;\n }\n this.isCompleted = false;\n this.isCompletedBefore = false;\n this.isLoading = false;\n this.isStartedState = this.firstPageIsStarted;\n if (gotoFirstPage && this.visiblePageCount > 0) {\n this.currentPage = this.visiblePages[0];\n }\n if (clearData) {\n this.updateValuesWithDefaults();\n }\n }\n public mergeValues(src: any, dest: any) {\n if (!dest || !src) return;\n if (typeof dest !== \"object\") return;\n for (var key in src) {\n var value = src[key];\n if (value && typeof value === \"object\") {\n if (!dest[key]) dest[key] = {};\n this.mergeValues(value, dest[key]);\n } else {\n dest[key] = value;\n }\n }\n }\n private updateValuesWithDefaults() {\n if (this.isDesignMode || this.isLoading) return;\n for (var i = 0; i < this.pages.length; i++) {\n var questions = this.pages[i].questions;\n for (var j = 0; j < questions.length; j++) {\n questions[j].updateValueWithDefaults();\n }\n }\n }\n protected updateCustomWidgets(page: PageModel) {\n if (!page) return;\n page.updateCustomWidgets();\n }\n protected currentPageChanging(newValue: PageModel, oldValue: PageModel) {\n var options = {\n oldCurrentPage: oldValue,\n newCurrentPage: newValue,\n allowChanging: true,\n isNextPage: this.isNextPage(newValue, oldValue),\n isPrevPage: this.isPrevPage(newValue, oldValue),\n };\n this.onCurrentPageChanging.fire(this, options);\n return options.allowChanging;\n }\n protected currentPageChanged(newValue: PageModel, oldValue: PageModel) {\n const isNextPage: boolean = this.isNextPage(newValue, oldValue);\n if (isNextPage) {\n oldValue.passed = true;\n }\n this.onCurrentPageChanged.fire(this, {\n oldCurrentPage: oldValue,\n newCurrentPage: newValue,\n isNextPage: isNextPage,\n isPrevPage: this.isPrevPage(newValue, oldValue),\n });\n }\n private isNextPage(newValue: PageModel, oldValue: PageModel): boolean {\n if (!newValue || !oldValue) return false;\n return newValue.visibleIndex == oldValue.visibleIndex + 1;\n }\n private isPrevPage(newValue: PageModel, oldValue: PageModel): boolean {\n if (!newValue || !oldValue) return false;\n return newValue.visibleIndex + 1 == oldValue.visibleIndex;\n }\n /**\n * Returns the progress that a user made while going through the survey.\n * It depends from progressBarType property\n * @see progressBarType\n * @see progressValue\n */\n public getProgress(): number {\n if (this.currentPage == null) return 0;\n if (this.progressBarType !== \"pages\") {\n var info = this.getProgressInfo();\n if (this.progressBarType === \"requiredQuestions\") {\n return info.requiredQuestionCount > 1\n ? Math.ceil(\n (info.requiredAnsweredQuestionCount * 100) /\n info.requiredQuestionCount\n )\n : 100;\n }\n return info.questionCount > 1\n ? Math.ceil((info.answeredQuestionCount * 100) / info.questionCount)\n : 100;\n }\n var index = this.visiblePages.indexOf(this.currentPage) + 1;\n return Math.ceil((index * 100) / this.visiblePageCount);\n }\n /**\n * Returns the progress that a user made while going through the survey.\n * It depends from progressBarType property\n * @see progressBarType\n */\n public get progressValue(): number {\n return this.getPropertyValue(\"progressValue\", 0);\n }\n /**\n * Returns the navigation buttons (i.e., 'Prev', 'Next', or 'Complete') position.\n */\n public get isNavigationButtonsShowing(): string {\n if (this.isDesignMode) return \"none\";\n var page = this.currentPage;\n if (!page) return \"none\";\n if (page.navigationButtonsVisibility === \"show\") {\n return \"bottom\";\n }\n if (page.navigationButtonsVisibility === \"hide\") {\n return \"none\";\n }\n return this.showNavigationButtons;\n }\n /**\n * Returns `true` if the survey is in edit mode.\n * @see mode\n */\n public get isEditMode(): boolean {\n return this.mode == \"edit\";\n }\n public get isCompleteButtonVisible(): boolean {\n return (\n this.isEditMode &&\n (!this.isShowPreviewBeforeComplete || this.state == \"preview\")\n );\n }\n public get isPreviewButtonVisible(): boolean {\n return (\n this.isEditMode &&\n this.isShowPreviewBeforeComplete &&\n this.state == \"running\"\n );\n }\n public get isCancelPreviewButtonVisible(): boolean {\n return (\n this.isEditMode &&\n this.isShowPreviewBeforeComplete &&\n this.state == \"preview\"\n );\n }\n /**\n * Returns `true` if the survey is in display mode or in preview mode.\n * @see mode\n * @see showPreviewBeforeComplete\n */\n public get isDisplayMode(): boolean {\n return this.mode == \"display\" || this.state == \"preview\";\n }\n public get isUpdateValueTextOnTyping(): boolean {\n return this.textUpdateMode == \"onTyping\";\n }\n /**\n * Returns `true` if the survey is in design mode. It is used by SurveyJS Editor.\n * @see setDesignMode\n */\n public get isDesignMode(): boolean {\n return this._isDesignMode;\n }\n private _isDesignMode: boolean = false;\n /**\n * Sets the survey into design mode.\n * @param value use true to set the survey into the design mode.\n */\n public setDesignMode(value: boolean) {\n this._isDesignMode = value;\n this.onQuestionsOnPageModeChanged(\"standard\");\n }\n /**\n * Gets or sets whether to show all elements in the survey, regardless their visibility. The default value is `false`.\n */\n public get showInvisibleElements(): boolean {\n return this.getPropertyValue(\"showInvisibleElements\", false);\n }\n public set showInvisibleElements(val: boolean) {\n var visPages = this.visiblePages;\n this.setPropertyValue(\"showInvisibleElements\", val);\n if (this.isLoadingFromJson) return;\n this.runConditions();\n this.updateAllElementsVisibility(visPages);\n }\n private updateAllElementsVisibility(visPages: Array) {\n for (var i = 0; i < this.pages.length; i++) {\n var page = this.pages[i];\n page.updateElementVisibility();\n if (visPages.indexOf(page) > -1 != page.isVisible) {\n this.onPageVisibleChanged.fire(this, {\n page: page,\n visible: page.isVisible,\n });\n }\n }\n }\n public get areInvisibleElementsShowing(): boolean {\n return this.isDesignMode || this.showInvisibleElements;\n }\n public get areEmptyElementsHidden(): boolean {\n return (\n this.isShowingPreview &&\n this.showPreviewBeforeComplete == \"showAnsweredQuestions\"\n );\n }\n /**\n * Returns `true`, if a user has already completed the survey in this browser and there is a cookie about it. Survey goes to `completed` state if the function returns `true`.\n * @see cookieName\n * @see setCookie\n * @see deleteCookie\n * @see state\n */\n public get hasCookie(): boolean {\n if (!this.cookieName || typeof document === \"undefined\") return false;\n var cookies = document.cookie;\n return cookies && cookies.indexOf(this.cookieName + \"=true\") > -1;\n }\n /**\n * Set the cookie with `cookieName` in user's browser. It is done automatically on survey complete if the `cookieName` property value is not empty.\n * @see cookieName\n * @see hasCookie\n * @see deleteCookie\n */\n public setCookie() {\n if (!this.cookieName || typeof document === \"undefined\") return;\n document.cookie =\n this.cookieName + \"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT\";\n }\n /**\n * Deletes the cookie with `cookieName` from the browser.\n * @see cookieName\n * @see hasCookie\n * @see setCookie\n */\n public deleteCookie() {\n if (!this.cookieName) return;\n document.cookie = this.cookieName + \"=;\";\n }\n /**\n * Gets or sets whether the survey must ignore validation like required questions and others, on `nextPage` and `completeLastPage` function calls. The default is `false`.\n * @see nextPage\n * @see completeLastPage\n * @see mode\n */\n public ignoreValidation: boolean = false;\n /**\n * Navigates user to the next page.\n *\n * Returns `false` in the following cases:\n *\n * - if the current page is the last page.\n * - if the current page contains errors (for example, a required question is empty).\n * @see isCurrentPageHasErrors\n * @see prevPage\n * @see completeLastPage\n */\n public nextPage(): boolean {\n if (this.isLastPage) return false;\n return this.doCurrentPageComplete(false);\n }\n private hasErrorsOnNavigate(doComplete: boolean): boolean {\n if (this.ignoreValidation || !this.isEditMode) return false;\n if (this.checkErrorsMode === \"onComplete\") {\n if (!this.isLastPage) return false;\n if (this.hasErrors(true, true)) return true;\n } else {\n if (this.isCurrentPageHasErrors) return true;\n }\n return this.checkForAsyncQuestionValidation(doComplete);\n }\n private asyncValidationQuesitons: Array;\n private checkForAsyncQuestionValidation(doComplete: boolean): boolean {\n this.clearAsyncValidationQuesitons();\n var questions: Array = this.currentPage.questions;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].isRunningValidators) {\n questions[i].onCompletedAsyncValidators = (hasErrors: boolean) => {\n this.onCompletedAsyncQuestionValidators(doComplete, hasErrors);\n };\n this.asyncValidationQuesitons.push(questions[i]);\n }\n }\n return this.asyncValidationQuesitons.length > 0;\n }\n private clearAsyncValidationQuesitons() {\n if (!!this.asyncValidationQuesitons) {\n var asynQuestions = this.asyncValidationQuesitons;\n for (var i = 0; i < asynQuestions.length; i++) {\n asynQuestions[i].onCompletedAsyncValidators = null;\n }\n }\n this.asyncValidationQuesitons = [];\n }\n private onCompletedAsyncQuestionValidators(\n doComplete: boolean,\n hasErrors: boolean\n ) {\n if (hasErrors) {\n this.clearAsyncValidationQuesitons();\n return;\n }\n var asynQuestions = this.asyncValidationQuesitons;\n for (var i = 0; i < asynQuestions.length; i++) {\n if (asynQuestions[i].isRunningValidators) return;\n }\n this.doCurrentPageCompleteCore(doComplete);\n }\n /**\n * Returns `true`, if the current page contains errors, for example, the required question is empty or a question validation is failed.\n * @see nextPage\n */\n public get isCurrentPageHasErrors(): boolean {\n return this.checkIsCurrentPageHasErrors();\n }\n /**\n * Returns `true`, if any of the survey pages contains errors.\n * @param fireCallback set it to `true`, to show errors in UI.\n * @param focusOnFirstError set it to `true` to focus on the first question that doesn't pass the validation and make the page, where the question is located, the current.\n */\n public hasErrors(\n fireCallback: boolean = true,\n focusOnFirstError: boolean = false\n ): boolean {\n var visPages = this.visiblePages;\n var firstErrorPage = null;\n var res = false;\n for (var i = 0; i < visPages.length; i++) {\n if (visPages[i].hasErrors(fireCallback, false)) {\n if (!firstErrorPage) firstErrorPage = visPages[i];\n res = true;\n }\n }\n if (focusOnFirstError && !!firstErrorPage) {\n this.currentPage = firstErrorPage;\n var questions = firstErrorPage.questions;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].errors.length > 0) {\n questions[i].focus(true);\n break;\n }\n }\n }\n return res;\n }\n /**\n * Checks whether survey elements (pages, panels, and questions) have unique question names.\n * You can check for unique names for individual page and panel (and all their elements) or a question.\n * If the parameter is not specified, then a survey checks that all its elements have unique names.\n * @param element page, panel or question, it is `null` by default, that means all survey elements will be checked\n */\n public ensureUniqueNames(element: ISurveyElement = null) {\n if (element == null) {\n for (var i = 0; i < this.pages.length; i++) {\n this.ensureUniqueName(this.pages[i]);\n }\n } else {\n this.ensureUniqueName(element);\n }\n }\n private ensureUniqueName(element: ISurveyElement) {\n if (element.isPage) {\n this.ensureUniquePageName(element);\n }\n if (element.isPanel) {\n this.ensureUniquePanelName(element);\n }\n if (element.isPage || element.isPanel) {\n var elements = (element).elements;\n for (var i = 0; i < elements.length; i++) {\n this.ensureUniqueNames(elements[i]);\n }\n } else {\n this.ensureUniqueQuestionName(element);\n }\n }\n private ensureUniquePageName(element: ISurveyElement) {\n return this.ensureUniqueElementName(\n element,\n (name: string): ISurveyElement => {\n return this.getPageByName(name);\n }\n );\n }\n private ensureUniquePanelName(element: ISurveyElement) {\n return this.ensureUniqueElementName(\n element,\n (name: string): ISurveyElement => {\n return this.getPanelByName(name);\n }\n );\n }\n private ensureUniqueQuestionName(element: ISurveyElement) {\n return this.ensureUniqueElementName(\n element,\n (name: string): ISurveyElement => {\n return this.getQuestionByName(name);\n }\n );\n }\n private ensureUniqueElementName(\n element: ISurveyElement,\n getElementByName: (name: string) => ISurveyElement\n ) {\n var existingElement = getElementByName(element.name);\n if (!existingElement || existingElement == element) return;\n var newName = this.getNewName(element.name);\n while (!!getElementByName(newName)) {\n var newName = this.getNewName(element.name);\n }\n element.name = newName;\n }\n private getNewName(name: string): string {\n var pos = name.length;\n while (pos > 0 && name[pos - 1] >= \"0\" && name[pos - 1] <= \"9\") {\n pos--;\n }\n var base = name.substr(0, pos);\n var num = 0;\n if (pos < name.length) {\n num = parseInt(name.substr(pos));\n }\n num++;\n return base + num;\n }\n private checkIsCurrentPageHasErrors(\n isFocuseOnFirstError: boolean = undefined\n ): boolean {\n return this.checkIsPageHasErrors(this.currentPage, isFocuseOnFirstError);\n }\n private checkIsPageHasErrors(\n page: PageModel,\n isFocuseOnFirstError: boolean = undefined\n ): boolean {\n if (isFocuseOnFirstError === undefined) {\n isFocuseOnFirstError = this.focusOnFirstError;\n }\n if (!page) return true;\n var res = page.hasErrors(true, isFocuseOnFirstError);\n this.fireValidatedErrorsOnPage(page);\n return res;\n }\n private fireValidatedErrorsOnPage(page: PageModel) {\n if (this.onValidatedErrorsOnCurrentPage.isEmpty || !page) return;\n var questionsOnPage = page.questions;\n var questions = new Array();\n var errors = new Array();\n for (var i = 0; i < questionsOnPage.length; i++) {\n var q = questionsOnPage[i];\n if (q.errors.length > 0) {\n questions.push(q);\n for (var j = 0; j < q.errors.length; j++) {\n errors.push(q.errors[j]);\n }\n }\n }\n this.onValidatedErrorsOnCurrentPage.fire(this, {\n questions: questions,\n errors: errors,\n page: page,\n });\n }\n /**\n * Navigates user to a previous page. If the current page is the first page, `prevPage` returns `false`. `prevPage` does not perform any checks, required questions can be empty.\n * @see isFirstPage\n */\n public prevPage(): boolean {\n if (this.isFirstPage) return false;\n this.resetNavigationButton();\n var vPages = this.visiblePages;\n var index = vPages.indexOf(this.currentPage);\n this.currentPage = vPages[index - 1];\n }\n /**\n * Completes the survey, if the current page is the last one. It returns `false` if the last page has errors.\n * If the last page has no errors, `completeLastPage` calls `doComplete` and returns `true`.\n * @see isCurrentPageHasErrors\n * @see nextPage\n * @see doComplete\n */\n public completeLastPage(): boolean {\n var res = this.doCurrentPageComplete(true);\n if (res) {\n this.cancelPreview();\n }\n return res;\n }\n private isNavigationButtonPressed: boolean = false;\n public navigationMouseDown(): boolean {\n this.isNavigationButtonPressed = true;\n return true;\n }\n private resetNavigationButton() {\n this.isNavigationButtonPressed = false;\n }\n /**\n * Shows preview for the survey. Switches the survey to the \"preview\" state.\n *\n * Details: [Preview State](https://surveyjs.io/Documentation/Library#states-preview)\n * @see showPreviewBeforeComplete\n * @see cancelPreview\n * @see state\n * @see previewText\n * @see editText\n */\n public showPreview(): boolean {\n this.resetNavigationButton();\n if (this.hasErrorsOnNavigate(true)) return false;\n if (this.doServerValidation(true, true)) return false;\n this.isShowingPreview = true;\n return true;\n }\n /**\n * Cancels preview and switches back to the \"running\" state.\n *\n * Details: [Preview State](https://surveyjs.io/Documentation/Library#states-preview)\n * @param curPage - A new current page. If the parameter is undefined then the last page becomes the current.\n * @see showPreviewBeforeComplete\n * @see showPreview\n * @see state\n */\n public cancelPreview(curPage: any = null) {\n if (!this.isShowingPreview) return;\n this.isShowingPreview = false;\n if (Helpers.isValueEmpty(curPage) && this.visiblePageCount > 0) {\n curPage = this.visiblePageCount - 1;\n }\n if (curPage !== null) {\n this.currentPage = curPage;\n }\n }\n public cancelPreviewByPage(panel: IPanel): any {\n this.cancelPreview((panel)[\"originalPage\"]);\n }\n protected doCurrentPageComplete(doComplete: boolean): boolean {\n if (this.isValidatingOnServer) return false;\n this.resetNavigationButton();\n if (this.hasErrorsOnNavigate(doComplete)) return false;\n return this.doCurrentPageCompleteCore(doComplete);\n }\n private doCurrentPageCompleteCore(doComplete: boolean): boolean {\n if (this.doServerValidation(doComplete)) return false;\n if (doComplete) {\n this.currentPage.passed = true;\n this.doComplete();\n } else {\n this.doNextPage();\n }\n return true;\n }\n /**\n * Obsolete. Use the `questionsOnPageMode` property instead.\n * @see questionsOnPageMode\n */\n public get isSinglePage(): boolean {\n return this.questionsOnPageMode == \"singlePage\";\n }\n public set isSinglePage(val: boolean) {\n this.questionsOnPageMode = val ? \"singlePage\" : \"standard\";\n }\n /**\n * Gets or sets a value that specifies how the survey combines questions, panels, and pages.\n *\n * The following options are available:\n *\n * - `singlePage` - combine all survey pages in a single page. Pages will be converted to panels.\n * - `questionPerPage` - show one question per page. Survey will create a separate page for every question.\n */\n public get questionsOnPageMode(): string {\n return this.getPropertyValue(\"questionsOnPageMode\", \"standard\");\n }\n public set questionsOnPageMode(val: string) {\n this.setPropertyValue(\"questionsOnPageMode\", val);\n }\n /**\n * Gets or sets whether the first survey page is a start page. Set this property to `true`, to make the first page a starting page.\n * An end user cannot navigate to the start page and the start page does not affect a survey progress.\n */\n public get firstPageIsStarted(): boolean {\n return this.getPropertyValue(\"firstPageIsStarted\", false);\n }\n public set firstPageIsStarted(val: boolean) {\n this.setPropertyValue(\"firstPageIsStarted\", val);\n }\n isPageStarted(page: IPage): boolean {\n return (\n this.firstPageIsStarted && this.pages.length > 0 && this.pages[0] === page\n );\n }\n /**\n * Set this property to \"showAllQuestions\" or \"showAnsweredQuestions\" to allow respondents to preview answers before submitting the survey results.\n *\n * Details: [Preview State](https://surveyjs.io/Documentation/Library#states-preview)\n * Example: [Show Preview Before Complete](https://surveyjs.io/Examples/Library?id=survey-showpreview)\n * @see showPreview\n * @see cancelPreview\n * @see state\n * @see previewText\n * @see editText\n */\n public get showPreviewBeforeComplete(): string {\n return this.getPropertyValue(\"showPreviewBeforeComplete\", \"noPreview\");\n }\n public set showPreviewBeforeComplete(val: string) {\n this.setPropertyValue(\"showPreviewBeforeComplete\", val);\n }\n public get isShowPreviewBeforeComplete(): boolean {\n var preview = this.showPreviewBeforeComplete;\n return preview == \"showAllQuestions\" || preview == \"showAnsweredQuestions\";\n }\n protected onFirstPageIsStartedChanged() {\n if (this.pages.length == 0) return;\n this.isStartedState = this.firstPageIsStarted;\n this.pageVisibilityChanged(this.pages[0], !this.firstPageIsStarted);\n }\n private runningPages: any;\n private onShowingPreviewChanged() {\n if (this.isDesignMode) return;\n if (this.isShowingPreview) {\n this.runningPages = this.pages.slice(0, this.pages.length);\n this.setupPagesForPageModes(true);\n } else {\n if (this.runningPages) {\n this.restoreOrigionalPages(this.runningPages);\n }\n this.runningPages = undefined;\n }\n this.runConditions();\n this.updateAllElementsVisibility(this.pages);\n this.updateVisibleIndexes();\n this.currentPageNo = 0;\n }\n private origionalPages: any;\n protected onQuestionsOnPageModeChanged(oldValue: string) {\n if (this.isShowingPreview) return;\n if (this.questionsOnPageMode == \"standard\" || this.isDesignMode) {\n if (this.origionalPages) {\n this.restoreOrigionalPages(this.origionalPages);\n }\n this.origionalPages = undefined;\n } else {\n if (!oldValue || oldValue == \"standard\") {\n this.origionalPages = this.pages.slice(0, this.pages.length);\n }\n this.setupPagesForPageModes(this.isSinglePage);\n }\n this.runConditions();\n this.updateVisibleIndexes();\n }\n private restoreOrigionalPages(originalPages: Array) {\n this.questionHashesClear();\n this.pages.splice(0, this.pages.length);\n for (var i = 0; i < originalPages.length; i++) {\n this.pages.push(originalPages[i]);\n }\n }\n private setupPagesForPageModes(isSinglePage: boolean) {\n this.questionHashesClear();\n var startIndex = this.firstPageIsStarted ? 1 : 0;\n super.startLoadingFromJson();\n var newPages = this.createPagesForQuestionOnPageMode(\n isSinglePage,\n startIndex\n );\n var deletedLen = this.pages.length - startIndex;\n this.pages.splice(startIndex, deletedLen);\n for (var i = 0; i < newPages.length; i++) {\n this.pages.push(newPages[i]);\n }\n super.endLoadingFromJson();\n for (var i = 0; i < newPages.length; i++) {\n newPages[i].endLoadingFromJson();\n newPages[i].setSurveyImpl(this);\n }\n this.doElementsOnLoad();\n }\n private createPagesForQuestionOnPageMode(\n isSinglePage: boolean,\n startIndex: number\n ): Array {\n if (isSinglePage) {\n return [this.createSinglePage(startIndex)];\n }\n return this.createPagesForEveryQuestion(startIndex);\n }\n private createSinglePage(startIndex: number): PageModel {\n var single = this.createNewPage(\"all\");\n single.setSurveyImpl(this);\n for (var i = startIndex; i < this.pages.length; i++) {\n var page = this.pages[i];\n var panel = Serializer.createClass(\"panel\");\n panel.originalPage = page;\n single.addPanel(panel);\n var json = new JsonObject().toJsonObject(page);\n new JsonObject().toObject(json, panel);\n if (!this.showPageTitles) {\n panel.title = \"\";\n }\n }\n return single;\n }\n private createPagesForEveryQuestion(startIndex: number): Array {\n var res: Array = [];\n for (var i = startIndex; i < this.pages.length; i++) {\n var originalPage = this.pages[i];\n // Initialize randomization\n originalPage.setWasShown(true);\n for (var j = 0; j < originalPage.elements.length; j++) {\n var originalElement = originalPage.elements[j];\n var element = Serializer.createClass(originalElement.getType());\n if (!element) continue;\n var jsonObj = new JsonObject();\n //Deserialize page properties only, excluding elements\n jsonObj.lightSerializing = true;\n var pageJson = jsonObj.toJsonObject(originalPage);\n\n var page = Serializer.createClass(originalPage.getType());\n page.fromJSON(pageJson);\n page.name = \"page\" + (res.length + 1);\n page.setSurveyImpl(this);\n res.push(page);\n var json = new JsonObject().toJsonObject(originalElement);\n new JsonObject().toObject(json, element);\n page.addElement(element);\n for (var k = 0; k < page.questions.length; k++) {\n this.questionHashesAdded(page.questions[k]);\n }\n }\n }\n return res;\n }\n /**\n * Gets whether the current page is the first one.\n */\n public get isFirstPage(): boolean {\n if (this.currentPage == null) return true;\n return this.visiblePages.indexOf(this.currentPage) == 0;\n }\n public get isShowPrevButton(): boolean {\n if (this.isFirstPage || !this.showPrevButton) return false;\n var page = this.visiblePages[this.currentPageNo - 1];\n return this.getPageMaxTimeToFinish(page) <= 0;\n }\n /**\n * Gets whether the current page is the last one.\n */\n public get isLastPage(): boolean {\n if (this.currentPage == null) return true;\n var vPages = this.visiblePages;\n return vPages.indexOf(this.currentPage) == vPages.length - 1;\n }\n /**\n * Completes the survey.\n *\n * Calling this function performs the following tasks:\n *\n * - writes cookie if the `cookieName` property is not empty\n * - sets the survey into `completed` state\n * - fires the `onComplete` event\n * - calls `sendResult` function.\n *\n * Calling the `doComplete` function does not perform any validation, unlike the `completeLastPage` function.\n * It calls `navigateToUrl` after calling `onComplete` event.\n * In case calling `options.showDataSaving` callback in the `onComplete` event, `navigateToUrl` is used on calling `options.showDataSavingSuccess` callback.\n * @see completeLastPage\n * @see cookieName\n * @see state\n * @see onComplete\n * @see surveyPostId\n * @see completeLastPage\n * @see navigateToUrl\n * @see navigateToUrlOnCondition\n */\n public doComplete(isCompleteOnTrigger: boolean = false) {\n var onCompletingOptions = {\n allowComplete: true,\n isCompleteOnTrigger: isCompleteOnTrigger,\n };\n this.onCompleting.fire(this, onCompletingOptions);\n if (!onCompletingOptions.allowComplete) return;\n let previousCookie = this.hasCookie;\n this.stopTimer();\n this.setCompleted();\n this.clearUnusedValues();\n this.setCookie();\n var self = this;\n var savingDataStarted = false;\n var onCompleteOptions = {\n isCompleteOnTrigger: isCompleteOnTrigger,\n showDataSaving: function(text: string) {\n savingDataStarted = true;\n self.setCompletedState(\"saving\", text);\n },\n showDataSavingError: function(text: string) {\n self.setCompletedState(\"error\", text);\n },\n showDataSavingSuccess: function(text: string) {\n self.setCompletedState(\"success\", text);\n self.navigateTo();\n },\n showDataSavingClear: function(text: string) {\n self.setCompletedState(\"\", \"\");\n },\n };\n this.onComplete.fire(this, onCompleteOptions);\n if (!previousCookie && this.surveyPostId) {\n this.sendResult();\n }\n if (!savingDataStarted) {\n this.navigateTo();\n }\n }\n /**\n * Starts the survey. Changes the survey mode from \"starting\" to \"running\". Call this function if your survey has a start page, otherwise this function does nothing.\n * @see firstPageIsStarted\n */\n public start(): boolean {\n if (!this.firstPageIsStarted) return false;\n if (this.checkIsPageHasErrors(this.startedPage, true)) return false;\n this.isStartedState = false;\n this.startTimerFromUI();\n this.onStarted.fire(this, {});\n return true;\n }\n /**\n * Gets whether the question values on the current page are validating on the server at the current moment.\n * @see onServerValidateQuestions\n */\n public get isValidatingOnServer(): boolean {\n return this.getPropertyValue(\"isValidatingOnServer\", false);\n }\n private setIsValidatingOnServer(val: boolean) {\n if (val == this.isValidatingOnServer) return;\n this.setPropertyValue(\"isValidatingOnServer\", val);\n this.onIsValidatingOnServerChanged();\n }\n protected onIsValidatingOnServerChanged() {}\n protected doServerValidation(\n doComplete: boolean,\n isPreview: boolean = false\n ): boolean {\n if (\n !this.onServerValidateQuestions ||\n this.onServerValidateQuestions.isEmpty\n )\n return false;\n if (!doComplete && this.checkErrorsMode === \"onComplete\") return false;\n var self = this;\n var options = {\n data: <{ [index: string]: any }>{},\n errors: {},\n survey: this,\n complete: function() {\n self.completeServerValidation(options, isPreview);\n },\n };\n if (doComplete && this.checkErrorsMode === \"onComplete\") {\n options.data = this.data;\n } else {\n for (var i = 0; i < this.currentPage.questions.length; i++) {\n var question = this.currentPage.questions[i];\n if (!question.visible) continue;\n var value = this.getValue(question.getValueName());\n if (!this.isValueEmpty(value))\n options.data[question.getValueName()] = value;\n }\n }\n this.setIsValidatingOnServer(true);\n\n if (typeof this.onServerValidateQuestions === \"function\") {\n this.onServerValidateQuestions(this, options);\n } else {\n this.onServerValidateQuestions.fire(this, options);\n }\n\n return true;\n }\n private completeServerValidation(options: any, isPreview: boolean) {\n this.setIsValidatingOnServer(false);\n if (!options && !options.survey) return;\n var self = options.survey;\n var hasErrors = false;\n if (options.errors) {\n var hasToFocus = this.focusOnFirstError;\n for (var name in options.errors) {\n var question = self.getQuestionByName(name);\n if (question && question[\"errors\"]) {\n hasErrors = true;\n question.addError(new CustomError(options.errors[name], this));\n if (hasToFocus) {\n hasToFocus = false;\n if (!!question.page) {\n this.currentPage = question.page;\n }\n question.focus(true);\n }\n }\n }\n this.fireValidatedErrorsOnPage(this.currentPage);\n }\n if (!hasErrors) {\n if (isPreview) {\n this.isShowingPreview = true;\n } else {\n if (self.isLastPage) self.doComplete();\n else self.doNextPage();\n }\n }\n }\n protected doNextPage() {\n var curPage = this.currentPage;\n this.checkOnPageTriggers();\n if (!this.isCompleted) {\n if (this.sendResultOnPageNext) {\n this.sendResult(this.surveyPostId, this.clientId, true);\n }\n if (curPage === this.currentPage) {\n var vPages = this.visiblePages;\n var index = vPages.indexOf(this.currentPage);\n this.currentPage = vPages[index + 1];\n }\n } else {\n this.doComplete(true);\n }\n }\n public setCompleted() {\n this.isCompleted = true;\n }\n /**\n * Returns the HTML content for the complete page.\n * @see completedHtml\n */\n public get processedCompletedHtml(): string {\n var html = this.renderedCompletedHtml;\n if (html) {\n return this.processHtml(html);\n }\n return \"

\" + this.getLocString(\"completingSurvey\") + \"

\";\n }\n /**\n * Returns the HTML content, that is shown to a user that had completed the survey before.\n * @see completedHtml\n * @see cookieName\n */\n public get processedCompletedBeforeHtml(): string {\n if (this.completedBeforeHtml) {\n return this.processHtml(this.completedBeforeHtml);\n }\n return \"

\" + this.getLocString(\"completingSurveyBefore\") + \"

\";\n }\n /**\n * Returns the HTML content, that is shows when a survey loads the survey JSON.\n */\n public get processedLoadingHtml(): string {\n if (this.loadingHtml) {\n return this.processHtml(this.loadingHtml);\n }\n return \"

\" + this.getLocString(\"loadingSurvey\") + \"

\";\n }\n public getProgressInfo(): IProgressInfo {\n return SurveyElement.getProgressInfoByElements(this.visiblePages, false);\n }\n /**\n * Returns the text for the current progress.\n */\n public get progressText(): string {\n var res = this.getPropertyValue(\"progressText\", \"\");\n if (!res) {\n this.updateProgressText();\n res = this.getPropertyValue(\"progressText\", \"\");\n }\n return res;\n }\n private isCalculatingProgressText = false;\n public updateProgressText(onValueChanged: boolean = false) {\n if (this.isDesignMode || this.isCalculatingProgressText) return;\n if (\n onValueChanged &&\n this.progressBarType == \"pages\" &&\n this.onProgressText.isEmpty\n )\n return;\n this.isCalculatingProgressText = true;\n this.setPropertyValue(\"progressText\", this.getProgressText());\n this.setPropertyValue(\"progressValue\", this.getProgress());\n this.isCalculatingProgressText = false;\n }\n public getProgressText(): string {\n if (this.isDesignMode || this.currentPage == null) return \"\";\n var options = {\n questionCount: 0,\n answeredQuestionCount: 0,\n requiredQuestionCount: 0,\n requiredAnsweredQuestionCount: 0,\n text: \"\",\n };\n var type = this.progressBarType.toLowerCase();\n if (\n type === \"questions\" ||\n type === \"requiredquestions\" ||\n type === \"correctquestions\" ||\n !this.onProgressText.isEmpty\n ) {\n var info = this.getProgressInfo();\n options.questionCount = info.questionCount;\n options.answeredQuestionCount = info.answeredQuestionCount;\n options.requiredQuestionCount = info.requiredQuestionCount;\n options.requiredAnsweredQuestionCount =\n info.requiredAnsweredQuestionCount;\n }\n\n options.text = this.getProgressTextCore(options);\n this.onProgressText.fire(this, options);\n return options.text;\n }\n private getProgressTextCore(info: IProgressInfo): string {\n var type = this.progressBarType.toLowerCase();\n if (type === \"questions\") {\n return this.getLocString(\"questionsProgressText\")[\"format\"](\n info.answeredQuestionCount,\n info.questionCount\n );\n }\n if (type === \"requiredquestions\") {\n return this.getLocString(\"questionsProgressText\")[\"format\"](\n info.requiredAnsweredQuestionCount,\n info.requiredQuestionCount\n );\n }\n if (type === \"correctquestions\") {\n var correctAnswersCount = this.getCorrectedAnswerCount();\n return this.getLocString(\"questionsProgressText\")[\"format\"](\n correctAnswersCount,\n info.questionCount\n );\n }\n var vPages = this.visiblePages;\n var index = vPages.indexOf(this.currentPage) + 1;\n return this.getLocString(\"progressText\")[\"format\"](index, vPages.length);\n }\n protected afterRenderSurvey(htmlElement: any) {\n this.onAfterRenderSurvey.fire(this, {\n survey: this,\n htmlElement: htmlElement,\n });\n }\n updateQuestionCssClasses(question: IQuestion, cssClasses: any) {\n this.onUpdateQuestionCssClasses.fire(this, {\n question: question,\n cssClasses: cssClasses,\n });\n }\n updatePanelCssClasses(panel: IPanel, cssClasses: any) {\n this.onUpdatePanelCssClasses.fire(this, {\n panel: panel,\n cssClasses: cssClasses,\n });\n }\n updatePageCssClasses(page: IPage, cssClasses: any) {\n this.onUpdatePageCssClasses.fire(this, {\n page: page,\n cssClasses: cssClasses,\n });\n }\n afterRenderPage(htmlElement: HTMLElement) {\n if (this.onAfterRenderPage.isEmpty) return;\n this.onAfterRenderPage.fire(this, {\n page: this.currentPage,\n htmlElement: htmlElement,\n });\n }\n afterRenderHeader(htmlElement: HTMLElement) {\n if (this.onAfterRenderHeader.isEmpty) return;\n this.onAfterRenderHeader.fire(this, {\n htmlElement: htmlElement,\n });\n }\n afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement) {\n this.onAfterRenderQuestion.fire(this, {\n question: question,\n htmlElement: htmlElement,\n });\n }\n afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement) {\n if (this.onAfterRenderQuestionInput.isEmpty) return;\n let id = (question).inputId;\n if (!!id && htmlElement.id !== id && typeof document !== \"undefined\") {\n let el = document.getElementById(id);\n if (!!el) {\n htmlElement = el;\n }\n }\n this.onAfterRenderQuestionInput.fire(this, {\n question: question,\n htmlElement: htmlElement,\n });\n }\n afterRenderPanel(panel: IElement, htmlElement: HTMLElement) {\n this.onAfterRenderPanel.fire(this, {\n panel: panel,\n htmlElement: htmlElement,\n });\n }\n matrixBeforeRowAdded(options: any) {\n this.onMatrixBeforeRowAdded.fire(this, options);\n }\n matrixRowAdded(question: IQuestion, row: any) {\n this.onMatrixRowAdded.fire(this, { question: question, row: row });\n }\n getQuestionByValueNameFromArray(\n valueName: string,\n name: string,\n index: number\n ): IQuestion {\n var questions = this.getQuestionsByValueName(valueName);\n if (!questions) return;\n for (var i = 0; i < questions.length; i++) {\n var res = questions[i].getQuestionFromArray(name, index);\n if (!!res) return res;\n }\n return null;\n }\n matrixRowRemoved(question: IQuestion, rowIndex: number, row: any) {\n this.onMatrixRowRemoved.fire(this, {\n question: question,\n rowIndex: rowIndex,\n row: row,\n });\n }\n matrixAllowRemoveRow(\n question: IQuestion,\n rowIndex: number,\n row: any\n ): boolean {\n var options = {\n question: question,\n rowIndex: rowIndex,\n row: row,\n allow: true,\n };\n this.onMatrixAllowRemoveRow.fire(this, options);\n return options.allow;\n }\n matrixCellCreated(question: IQuestion, options: any) {\n options.question = question;\n this.onMatrixCellCreated.fire(this, options);\n }\n matrixAfterCellRender(question: IQuestion, options: any) {\n options.question = question;\n this.onMatrixAfterCellRender.fire(this, options);\n }\n matrixCellValueChanged(question: IQuestion, options: any) {\n options.question = question;\n this.onMatrixCellValueChanged.fire(this, options);\n }\n matrixCellValueChanging(question: IQuestion, options: any) {\n options.question = question;\n this.onMatrixCellValueChanging.fire(this, options);\n }\n get isValidateOnValueChanging(): boolean {\n return this.checkErrorsMode === \"onValueChanging\";\n }\n matrixCellValidate(question: IQuestion, options: any): SurveyError {\n options.question = question;\n this.onMatrixCellValidate.fire(this, options);\n return options.error ? new CustomError(options.error, this) : null;\n }\n dynamicPanelAdded(question: IQuestion) {\n this.onDynamicPanelAdded.fire(this, { question: question });\n }\n dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel) {\n var questions = !!panel ? (panel).questions : [];\n for (var i = 0; i < questions.length; i++) {\n questions[i].clearOnDeletingContainer();\n }\n this.onDynamicPanelRemoved.fire(this, {\n question: question,\n panelIndex: panelIndex,\n panel: panel,\n });\n }\n dynamicPanelItemValueChanged(question: IQuestion, options: any) {\n options.question = question;\n this.onDynamicPanelItemValueChanged.fire(this, options);\n }\n dragAndDropAllow(options: any): boolean {\n options.allow = true;\n this.onDragDropAllow.fire(this, options);\n return options.allow;\n }\n\n renderTitleActions(element: ISurveyElement): boolean {\n if (element.isPanel) return !this.onGetPanelTitleActions.isEmpty;\n else if (element.isPage) return !this.onGetPageTitleActions.isEmpty;\n else return !this.onGetQuestionTitleActions.isEmpty;\n }\n elementContentVisibilityChanged(element: ISurveyElement): void {\n if (this.currentPageValue) {\n this.currentPageValue.ensureRowsVisibility();\n }\n this.onElementContentVisibilityChanged.fire(this, { element });\n }\n\n getUpdatedQuestionTitleActions(\n question: IQuestion,\n titleActions: Array\n ) {\n var options = {\n question: question,\n titleActions: titleActions,\n };\n this.onGetQuestionTitleActions.fire(this, options);\n return options.titleActions;\n }\n\n getUpdatedPanelTitleActions(\n panel: IPanel,\n titleActions: Array\n ) {\n var options = {\n panel: panel,\n titleActions: titleActions,\n };\n this.onGetPanelTitleActions.fire(this, options);\n return options.titleActions;\n }\n\n getUpdatedPageTitleActions(page: IPage, titleActions: Array) {\n var options = {\n page: page,\n titleActions: titleActions,\n };\n this.onGetPageTitleActions.fire(this, options);\n return options.titleActions;\n }\n\n getUpdatedMatrixRowActions(\n question: IQuestion,\n row: any,\n actions: Array\n ) {\n var options = {\n question: question,\n actions: actions,\n row: row,\n };\n this.onGetMatrixRowActions.fire(this, options);\n return options.actions;\n }\n\n scrollElementToTop(\n element: ISurveyElement,\n question: IQuestion,\n page: IPage,\n id: string\n ): any {\n var options = {\n element: element,\n question: question,\n page: page,\n elementId: id,\n cancel: false,\n };\n this.onScrollingElementToTop.fire(this, options);\n if (!options.cancel) {\n SurveyElement.ScrollElementToTop(options.elementId);\n }\n }\n\n /**\n * Uploads a file to server.\n * @param question a file question object\n * @param name a question name\n * @param files files to upload\n * @param uploadingCallback a call back function to get the status on uploading the files\n */\n public uploadFiles(\n question: IQuestion,\n name: string,\n files: File[],\n uploadingCallback: (status: string, data: any) => any\n ) {\n if (this.onUploadFiles.isEmpty) {\n uploadingCallback(\"error\", files);\n } else {\n this.onUploadFiles.fire(this, {\n question: question,\n name: name,\n files: files || [],\n callback: uploadingCallback,\n });\n }\n if (this.surveyPostId) {\n this.uploadFilesCore(name, files, uploadingCallback);\n }\n }\n /**\n * Downloads a file from server\n * @param name a question name\n * @param fileValue a single file question value\n * @param callback a call back function to get the status on downloading the file and the downloaded file content\n */\n public downloadFile(\n questionName: string,\n fileValue: any,\n callback: (status: string, data: any) => any\n ) {\n if (this.onDownloadFile.isEmpty) {\n !!callback && callback(\"success\", fileValue.content || fileValue);\n }\n this.onDownloadFile.fire(this, {\n name: questionName,\n content: fileValue.content || fileValue,\n fileValue: fileValue,\n callback: callback,\n });\n }\n /**\n * Clears files from server.\n * @param question question\n * @param name question name\n * @param value file question value\n * @param callback call back function to get the status of the clearing operation\n */\n public clearFiles(\n question: IQuestion,\n name: string,\n value: any,\n fileName: string,\n callback: (status: string, data: any) => any\n ) {\n if (this.onClearFiles.isEmpty) {\n !!callback && callback(\"success\", value);\n }\n this.onClearFiles.fire(this, {\n question: question,\n name: name,\n value: value,\n fileName: fileName,\n callback: callback,\n });\n }\n updateChoicesFromServer(\n question: IQuestion,\n choices: Array,\n serverResult: any\n ): Array {\n var options = {\n question: question,\n choices: choices,\n serverResult: serverResult,\n };\n this.onLoadChoicesFromServer.fire(this, options);\n return options.choices;\n }\n\n protected createSurveyService(): dxSurveyService {\n return new dxSurveyService();\n }\n protected uploadFilesCore(\n name: string,\n files: File[],\n uploadingCallback: (status: string, data: any) => any\n ) {\n var responses: Array = [];\n files.forEach(file => {\n if (uploadingCallback) uploadingCallback(\"uploading\", file);\n this.createSurveyService().sendFile(\n this.surveyPostId,\n file,\n (success: boolean, response: any) => {\n if (success) {\n responses.push({ content: response, file: file });\n if (responses.length === files.length) {\n if (uploadingCallback) uploadingCallback(\"success\", responses);\n }\n } else {\n if (uploadingCallback)\n uploadingCallback(\"error\", {\n response: response,\n file: file,\n });\n }\n }\n );\n });\n }\n getPage(index: number): PageModel {\n return this.pages[index];\n }\n /**\n * Adds an existing page to the survey.\n * @param page a newly added page\n * @param index - a page index to where insert a page. It is -1 by default and the page will be added into the end.\n * @see addNewPage\n */\n public addPage(page: PageModel, index: number = -1) {\n if (page == null) return;\n if (index < 0 || index >= this.pages.length) {\n this.pages.push(page);\n } else {\n this.pages.splice(index, 0, page);\n }\n }\n /**\n * Creates a new page and adds it to a survey. Generates a new name if the `name` parameter is not specified.\n * @param name a page name\n * @param index - a page index to where insert a new page. It is -1 by default and the page will be added into the end.\n * @see addPage\n */\n public addNewPage(name: string = null, index: number = -1) {\n var page = this.createNewPage(name);\n this.addPage(page, index);\n return page;\n }\n /**\n * Removes a page from a survey.\n * @param page\n */\n public removePage(page: PageModel) {\n var index = this.pages.indexOf(page);\n if (index < 0) return;\n this.pages.splice(index, 1);\n if (this.currentPageValue == page) {\n this.currentPage = this.pages.length > 0 ? this.pages[0] : null;\n }\n }\n /**\n * Returns a question by its name.\n * @param name a question name\n * @param caseInsensitive\n * @see getQuestionByValueName\n */\n public getQuestionByName(\n name: string,\n caseInsensitive: boolean = false\n ): Question {\n if (!name) return null;\n if (caseInsensitive) {\n name = name.toLowerCase();\n }\n var hash: HashTable = !!caseInsensitive\n ? this.questionHashes.namesInsensitive\n : this.questionHashes.names;\n var res = hash[name];\n if (!res) return null;\n return res[0];\n }\n /**\n * Returns a question by its value name\n * @param valueName a question name\n * @param caseInsensitive\n * @see getQuestionByName\n * @see getQuestionsByValueName\n * @see Question.valueName\n */\n public getQuestionByValueName(\n valueName: string,\n caseInsensitive: boolean = false\n ): IQuestion {\n var res = this.getQuestionsByValueName(valueName, caseInsensitive);\n return !!res ? res[0] : null;\n }\n /**\n * Returns all questions by their valueName. name property is used if valueName property is empty.\n * @param valueName a question name\n * @param caseInsensitive\n * @see getQuestionByName\n * @see getQuestionByValueName\n * @see Question.valueName\n */\n public getQuestionsByValueName(\n valueName: string,\n caseInsensitive: boolean = false\n ): Array {\n var hash: HashTable = !!caseInsensitive\n ? this.questionHashes.valueNamesInsensitive\n : this.questionHashes.valueNames;\n var res = hash[valueName];\n if (!res) return null;\n return res;\n }\n public getCalculatedValueByName(name: string): CalculatedValue {\n for (var i = 0; i < this.calculatedValues.length; i++) {\n if (name == this.calculatedValues[i].name)\n return this.calculatedValues[i];\n }\n return null;\n }\n /**\n * Gets a list of questions by their names.\n * @param names an array of question names\n * @param caseInsensitive\n */\n public getQuestionsByNames(\n names: string[],\n caseInsensitive: boolean = false\n ): IQuestion[] {\n var result: IQuestion[] = [];\n if (!names) return result;\n for (var i: number = 0; i < names.length; i++) {\n if (!names[i]) continue;\n var question = this.getQuestionByName(names[i], caseInsensitive);\n if (question) result.push(question);\n }\n return result;\n }\n /**\n * Returns a page on which an element (question or panel) is placed.\n * @param element Question or Panel\n */\n public getPageByElement(element: IElement): PageModel {\n for (var i: number = 0; i < this.pages.length; i++) {\n var page = this.pages[i];\n if (page.containsElement(element)) return page;\n }\n return null;\n }\n /**\n * Returns a page on which a question is located.\n * @param question\n */\n public getPageByQuestion(question: IQuestion): PageModel {\n return this.getPageByElement(question);\n }\n /**\n * Returns a page by it's name.\n * @param name\n */\n public getPageByName(name: string): PageModel {\n for (var i: number = 0; i < this.pages.length; i++) {\n if (this.pages[i].name == name) return this.pages[i];\n }\n return null;\n }\n /**\n * Returns a list of pages by their names.\n * @param names a list of page names\n */\n public getPagesByNames(names: string[]): PageModel[] {\n var result: PageModel[] = [];\n if (!names) return result;\n for (var i: number = 0; i < names.length; i++) {\n if (!names[i]) continue;\n var page = this.getPageByName(names[i]);\n if (page) result.push(page);\n }\n return result;\n }\n /**\n * Returns a list of all questions in a survey.\n * @param visibleOnly set it `true`, if you want to get only visible questions\n */\n public getAllQuestions(\n visibleOnly: boolean = false,\n includingDesignTime: boolean = false\n ): Array {\n var result = new Array();\n for (var i: number = 0; i < this.pages.length; i++) {\n this.pages[i].addQuestionsToList(\n result,\n visibleOnly,\n includingDesignTime\n );\n }\n return result;\n }\n /**\n * Returns quiz questions. All visible questions that has input(s) widgets.\n * @see getQuizQuestionCount\n */\n public getQuizQuestions(): Array {\n var result = new Array();\n var startIndex = this.firstPageIsStarted ? 1 : 0;\n for (var i = startIndex; i < this.pages.length; i++) {\n if (!this.pages[i].isVisible) continue;\n var questions = this.pages[i].questions;\n for (var j = 0; j < questions.length; j++) {\n var q = questions[j];\n if (q.quizQuestionCount > 0) {\n result.push(q);\n }\n }\n }\n return result;\n }\n /**\n * Returns a panel by its name.\n * @param name a panel name\n * @param caseInsensitive\n * @see getQuestionByName\n */\n public getPanelByName(\n name: string,\n caseInsensitive: boolean = false\n ): IPanel {\n var panels = this.getAllPanels();\n if (caseInsensitive) name = name.toLowerCase();\n for (var i: number = 0; i < panels.length; i++) {\n var panelName = panels[i].name;\n if (caseInsensitive) panelName = panelName.toLowerCase();\n if (panelName == name) return panels[i];\n }\n return null;\n }\n /**\n * Returns a list of all survey's panels.\n */\n public getAllPanels(\n visibleOnly: boolean = false,\n includingDesignTime: boolean = false\n ): Array {\n var result = new Array();\n for (var i: number = 0; i < this.pages.length; i++) {\n this.pages[i].addPanelsIntoList(result, visibleOnly, includingDesignTime);\n }\n return result;\n }\n /**\n * Creates and returns a new page, but do not add it into the survey.\n * You can use addPage(page) function to add it into survey later.\n * @see addPage\n * @see addNewPage\n */\n public createNewPage(name: string): PageModel {\n return new PageModel(name);\n }\n protected questionOnValueChanging(valueName: string, newValue: any): any {\n if (this.onValueChanging.isEmpty) return newValue;\n var options = {\n name: valueName,\n question: this.getQuestionByValueName(valueName),\n value: this.getUnbindValue(newValue),\n oldValue: this.getValue(valueName),\n };\n this.onValueChanging.fire(this, options);\n return options.value;\n }\n protected updateQuestionValue(valueName: string, newValue: any) {\n if (this.isLoadingFromJson) return;\n var questions = this.getQuestionsByValueName(valueName);\n if (!!questions) {\n for (var i: number = 0; i < questions.length; i++) {\n var qValue = questions[i].value;\n if (\n (qValue === newValue && Array.isArray(qValue) && !!this.editingObj) ||\n !this.isTwoValueEquals(qValue, newValue)\n ) {\n questions[i].updateValueFromSurvey(newValue);\n }\n }\n }\n }\n private checkQuestionErrorOnValueChanged(question: Question) {\n if (\n !this.isNavigationButtonPressed &&\n (this.checkErrorsMode === \"onValueChanged\" || question.errors.length > 0)\n ) {\n this.checkQuestionErrorOnValueChangedCore(question);\n }\n }\n private checkQuestionErrorOnValueChangedCore(question: Question): boolean {\n var oldErrorCount = question.errors.length;\n var res = question.hasErrors(true, {\n isOnValueChanged: !this.isValidateOnValueChanging,\n });\n if (!!question.page && (oldErrorCount > 0 || question.errors.length > 0)) {\n this.fireValidatedErrorsOnPage(question.page);\n }\n return res;\n }\n private checkErrorsOnValueChanging(\n valueName: string,\n newValue: any\n ): boolean {\n if (this.isLoadingFromJson) return false;\n var questions = this.getQuestionsByValueName(valueName);\n if (!questions) return false;\n var res = false;\n for (var i: number = 0; i < questions.length; i++) {\n var q = questions[i];\n if (!this.isTwoValueEquals(q.valueForSurvey, newValue)) {\n q.value = newValue;\n }\n if (this.checkQuestionErrorOnValueChangedCore(q)) res = true;\n res = res || q.errors.length > 0;\n }\n return res;\n }\n protected notifyQuestionOnValueChanged(valueName: string, newValue: any) {\n if (this.isLoadingFromJson) return;\n var questions = this.getQuestionsByValueName(valueName);\n if (!!questions) {\n for (var i: number = 0; i < questions.length; i++) {\n var question = questions[i];\n this.checkQuestionErrorOnValueChanged(question);\n question.onSurveyValueChanged(newValue);\n this.onValueChanged.fire(this, {\n name: valueName,\n question: question,\n value: newValue,\n });\n }\n } else {\n this.onValueChanged.fire(this, {\n name: valueName,\n question: null,\n value: newValue,\n });\n }\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].checkBindings(valueName, newValue);\n }\n this.notifyElementsOnAnyValueOrVariableChanged(valueName);\n }\n private notifyElementsOnAnyValueOrVariableChanged(name: string) {\n if (this.isEndLoadingFromJson === \"processing\") return;\n if (this.isRunningConditions) {\n this.conditionNotifyElementsOnAnyValueOrVariableChanged = true;\n return;\n }\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].onAnyValueChanged(name);\n }\n if (!this.isEndLoadingFromJson) {\n this.locStrsChanged();\n }\n }\n private updateAllQuestionsValue() {\n var questions = this.getAllQuestions();\n for (var i: number = 0; i < questions.length; i++) {\n var q = questions[i];\n var valName = q.getValueName();\n q.updateValueFromSurvey(this.getValue(valName));\n if (q.requireUpdateCommentValue) {\n q.updateCommentFromSurvey(this.getComment(valName));\n }\n }\n }\n private notifyAllQuestionsOnValueChanged() {\n var questions = this.getAllQuestions();\n for (var i: number = 0; i < questions.length; i++) {\n questions[i].onSurveyValueChanged(\n this.getValue(questions[i].getValueName())\n );\n }\n }\n private checkOnPageTriggers() {\n var questions = this.getCurrentPageQuestions(true);\n var values: { [index: string]: any } = {};\n for (var i = 0; i < questions.length; i++) {\n var question = questions[i];\n var name = question.getValueName();\n values[name] = this.getValue(name);\n }\n this.addCalculatedValuesIntoFilteredValues(values);\n this.checkTriggers(values, true);\n }\n private getCurrentPageQuestions(\n includeInvsible: boolean = false\n ): Array {\n var result: Array = [];\n var page = this.currentPage;\n if (!page) return result;\n for (var i = 0; i < page.questions.length; i++) {\n var question = page.questions[i];\n if ((!includeInvsible && !question.visible) || !question.name) continue;\n result.push(question);\n }\n return result;\n }\n private isTriggerIsRunning: boolean = false;\n private triggerValues: any = null;\n private triggerKeys: any = null;\n private checkTriggers(key: any, isOnNextPage: boolean) {\n if (this.isCompleted || this.triggers.length == 0) return;\n if (this.isTriggerIsRunning) {\n this.triggerValues = this.getFilteredValues();\n for (var k in key) {\n this.triggerKeys[k] = key[k];\n }\n return;\n }\n this.isTriggerIsRunning = true;\n this.triggerKeys = key;\n this.triggerValues = this.getFilteredValues();\n var properties = this.getFilteredProperties();\n for (var i: number = 0; i < this.triggers.length; i++) {\n var trigger = this.triggers[i];\n if (trigger.isOnNextPage == isOnNextPage) {\n trigger.checkExpression(\n this.triggerKeys,\n this.triggerValues,\n properties\n );\n }\n }\n this.isTriggerIsRunning = false;\n }\n private doElementsOnLoad() {\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].onSurveyLoad();\n }\n }\n private conditionValues: any = null;\n private get isRunningConditions(): boolean {\n return !!this.conditionValues;\n }\n private isValueChangedOnRunningCondition: boolean = false;\n private conditionRunnerCounter: number = 0;\n private conditionUpdateVisibleIndexes: boolean = false;\n private conditionNotifyElementsOnAnyValueOrVariableChanged: boolean = false;\n private runConditions() {\n if (\n this.isCompleted ||\n this.isEndLoadingFromJson === \"processing\" ||\n this.isRunningConditions\n )\n return;\n this.conditionValues = this.getFilteredValues();\n var properties = this.getFilteredProperties();\n var oldCurrentPageIndex = this.pages.indexOf(this.currentPageValue);\n this.runConditionsCore(properties);\n this.checkIfNewPagesBecomeVisible(oldCurrentPageIndex);\n this.conditionValues = null;\n if (\n this.isValueChangedOnRunningCondition &&\n this.conditionRunnerCounter <\n settings.maximumConditionRunCountOnValueChanged\n ) {\n this.isValueChangedOnRunningCondition = false;\n this.conditionRunnerCounter++;\n this.runConditions();\n } else {\n this.isValueChangedOnRunningCondition = false;\n this.conditionRunnerCounter = 0;\n if (this.conditionUpdateVisibleIndexes) {\n this.conditionUpdateVisibleIndexes = false;\n this.updateVisibleIndexes();\n }\n if (this.conditionNotifyElementsOnAnyValueOrVariableChanged) {\n this.conditionNotifyElementsOnAnyValueOrVariableChanged = false;\n this.notifyElementsOnAnyValueOrVariableChanged(\"\");\n }\n }\n }\n private runConditionOnValueChanged(name: string, value: any) {\n if (this.isRunningConditions) {\n this.conditionValues[name] = value;\n this.isValueChangedOnRunningCondition = true;\n } else {\n this.runConditions();\n }\n }\n private runConditionsCore(properties: any) {\n var pages = this.pages;\n for (var i = 0; i < this.calculatedValues.length; i++) {\n this.calculatedValues[i].resetCalculation();\n }\n for (var i = 0; i < this.calculatedValues.length; i++) {\n this.calculatedValues[i].doCalculation(\n this.calculatedValues,\n this.conditionValues,\n properties\n );\n }\n for (var i = 0; i < pages.length; i++) {\n pages[i].runCondition(this.conditionValues, properties);\n }\n }\n private checkIfNewPagesBecomeVisible(oldCurrentPageIndex: number) {\n var newCurrentPageIndex = this.pages.indexOf(this.currentPageValue);\n if (newCurrentPageIndex <= oldCurrentPageIndex + 1) return;\n for (var i = oldCurrentPageIndex + 1; i < newCurrentPageIndex; i++) {\n if (this.pages[i].isVisible) {\n this.currentPage = this.pages[i];\n break;\n }\n }\n }\n /**\n * Sends a survey result to the [api.surveyjs.io](https://api.surveyjs.io) service.\n * @param postId [api.surveyjs.io](https://api.surveyjs.io) service postId\n * @param clientId Typically a customer e-mail or an identifier\n * @param isPartialCompleted Set it to `true` if the survey is not completed yet and the results are intermediate\n * @see surveyPostId\n * @see clientId\n */\n public sendResult(\n postId: string = null,\n clientId: string = null,\n isPartialCompleted: boolean = false\n ) {\n if (!this.isEditMode) return;\n if (isPartialCompleted && this.onPartialSend) {\n this.onPartialSend.fire(this, null);\n }\n\n if (!postId && this.surveyPostId) {\n postId = this.surveyPostId;\n }\n if (!postId) return;\n if (clientId) {\n this.clientId = clientId;\n }\n if (isPartialCompleted && !this.clientId) return;\n var self = this;\n if (this.surveyShowDataSaving) {\n this.setCompletedState(\"saving\", \"\");\n }\n this.createSurveyService().sendResult(\n postId,\n this.data,\n function(success: boolean, response: any, request: any) {\n if (self.surveyShowDataSaving) {\n if (success) {\n self.setCompletedState(\"success\", \"\");\n } else {\n self.setCompletedState(\"error\", response);\n }\n }\n self.onSendResult.fire(self, {\n success: success,\n response: response,\n request: request,\n });\n },\n this.clientId,\n isPartialCompleted\n );\n }\n /**\n * Calls the [api.surveyjs.io](https://api.surveyjs.io) service and, on callback, fires the `onGetResult` event with all answers that your users made for a question.\n * @param resultId [api.surveyjs.io](https://api.surveyjs.io) service resultId\n * @param name The question name\n * @see onGetResult\n */\n public getResult(resultId: string, name: string) {\n var self = this;\n this.createSurveyService().getResult(resultId, name, function(\n success: boolean,\n data: any,\n dataList: any[],\n response: any\n ) {\n self.onGetResult.fire(self, {\n success: success,\n data: data,\n dataList: dataList,\n response: response,\n });\n });\n }\n /**\n * Loads the survey JSON from the [api.surveyjs.io](https://api.surveyjs.io) service.\n * If `clientId` is not `null` and a user had completed a survey before, the survey switches to `completedbefore` state.\n * @param surveyId [api.surveyjs.io](https://api.surveyjs.io) service surveyId\n * @param clientId users' indentifier, for example an e-mail or a unique customer id in your web application.\n * @see state\n * @see onLoadedSurveyFromService\n */\n public loadSurveyFromService(\n surveyId: string = null,\n cliendId: string = null\n ) {\n if (surveyId) {\n this.surveyId = surveyId;\n }\n if (cliendId) {\n this.clientId = cliendId;\n }\n var self = this;\n this.isLoading = true;\n this.onLoadingSurveyFromService();\n if (cliendId) {\n this.createSurveyService().getSurveyJsonAndIsCompleted(\n this.surveyId,\n this.clientId,\n function(\n success: boolean,\n json: string,\n isCompleted: string,\n response: any\n ) {\n self.isLoading = false;\n if (success) {\n self.isCompletedBefore = isCompleted == \"completed\";\n self.loadSurveyFromServiceJson(json);\n }\n }\n );\n } else {\n this.createSurveyService().loadSurvey(this.surveyId, function(\n success: boolean,\n result: string,\n response: any\n ) {\n self.isLoading = false;\n if (success) {\n self.loadSurveyFromServiceJson(result);\n }\n });\n }\n }\n private loadSurveyFromServiceJson(json: any) {\n if (!json) return;\n this.fromJSON(json);\n this.notifyAllQuestionsOnValueChanged();\n this.onLoadSurveyFromService();\n this.onLoadedSurveyFromService.fire(this, {});\n }\n protected onLoadingSurveyFromService() {}\n protected onLoadSurveyFromService() {}\n private updateVisibleIndexes() {\n if (this.isLoadingFromJson || !!this.isEndLoadingFromJson) return;\n if (\n this.isRunningConditions &&\n this.onVisibleChanged.isEmpty &&\n this.onPageVisibleChanged.isEmpty\n ) {\n //Run update visible index only one time on finishing running conditions\n this.conditionUpdateVisibleIndexes = true;\n return;\n }\n this.updatePageVisibleIndexes(this.showPageNumbers);\n if (this.showQuestionNumbers == \"onPage\") {\n var visPages = this.visiblePages;\n for (var i = 0; i < visPages.length; i++) {\n visPages[i].setVisibleIndex(0);\n }\n } else {\n var index = this.showQuestionNumbers == \"on\" ? 0 : -1;\n for (var i = 0; i < this.pages.length; i++) {\n index += this.pages[i].setVisibleIndex(index);\n }\n }\n this.updateProgressText(true);\n }\n private updatePageVisibleIndexes(showIndex: boolean) {\n var index = 0;\n for (var i = 0; i < this.pages.length; i++) {\n var isPageVisible = this.pages[i].isVisible;\n this.pages[i].visibleIndex = isPageVisible ? index++ : -1;\n this.pages[i].num =\n showIndex && isPageVisible ? this.pages[i].visibleIndex + 1 : -1;\n }\n }\n public fromJSON(json: any) {\n if (!json) return;\n this.questionHashesClear();\n this.jsonErrors = null;\n var jsonConverter = new JsonObject();\n jsonConverter.toObject(json, this);\n if (jsonConverter.errors.length > 0) {\n this.jsonErrors = jsonConverter.errors;\n }\n }\n public setJsonObject(jsonObj: any) {\n this.fromJSON(jsonObj);\n }\n private isEndLoadingFromJson: string = null;\n endLoadingFromJson() {\n this.isEndLoadingFromJson = \"processing\";\n this.isStartedState = this.firstPageIsStarted;\n this.onQuestionsOnPageModeChanged(\"standard\");\n super.endLoadingFromJson();\n if (this.hasCookie) {\n this.doComplete();\n }\n this.doElementsOnLoad();\n this.isEndLoadingFromJson = \"conditions\";\n this.runConditions();\n this.notifyElementsOnAnyValueOrVariableChanged(\"\");\n this.isEndLoadingFromJson = null;\n this.updateVisibleIndexes();\n }\n protected onBeforeCreating() {}\n protected onCreating() {}\n private getProcessedTextValue(textValue: TextPreProcessorValue): void {\n this.getProcessedTextValueCore(textValue);\n if (!this.onProcessTextValue.isEmpty) {\n var wasEmpty = this.isValueEmpty(textValue.value);\n this.onProcessTextValue.fire(this, textValue);\n textValue.isExists =\n textValue.isExists || (wasEmpty && !this.isValueEmpty(textValue.value));\n }\n }\n private getProcessedTextValueCore(textValue: TextPreProcessorValue): void {\n var name = textValue.name.toLocaleLowerCase();\n if ([\"no\", \"require\", \"title\"].indexOf(name) !== -1) {\n return;\n }\n if (name === \"pageno\") {\n textValue.isExists = true;\n var page = this.currentPage;\n textValue.value = page != null ? this.visiblePages.indexOf(page) + 1 : 0;\n return;\n }\n if (name === \"pagecount\") {\n textValue.isExists = true;\n textValue.value = this.visiblePageCount;\n return;\n }\n if (name === \"locale\") {\n textValue.isExists = true;\n textValue.value = !!this.locale\n ? this.locale\n : surveyLocalization.defaultLocale;\n return;\n }\n if (name === \"correctedanswers\" || name === \"correctedanswercount\") {\n textValue.isExists = true;\n textValue.value = this.getCorrectedAnswerCount();\n return;\n }\n if (name === \"incorrectedanswers\" || name === \"incorrectedanswercount\") {\n textValue.isExists = true;\n textValue.value = this.getInCorrectedAnswerCount();\n return;\n }\n if (name === \"questioncount\") {\n textValue.isExists = true;\n textValue.value = this.getQuizQuestionCount();\n return;\n }\n var firstName = new ProcessValue().getFirstName(name, this.data);\n var variable = this.getVariable(name);\n if (variable !== undefined) {\n textValue.isExists = true;\n textValue.value = variable;\n return;\n }\n if (!!firstName) firstName = firstName.toLowerCase();\n var question = this.getQuestionByValueName(firstName, true);\n if (question) {\n textValue.isExists = true;\n name = question.getValueName() + name.substr(firstName.length);\n name = name.toLocaleLowerCase();\n var values: { [index: string]: any } = {};\n values[firstName] = textValue.returnDisplayValue\n ? question.getDisplayValue(false, undefined)\n : question.value;\n textValue.value = new ProcessValue().getValue(name, values);\n return;\n }\n var value = this.getValue(textValue.name);\n if (value !== undefined) {\n textValue.isExists = true;\n textValue.value = value;\n }\n }\n private clearUnusedValues() {\n var questions = this.getAllQuestions();\n for (var i: number = 0; i < questions.length; i++) {\n questions[i].clearUnusedValues();\n }\n if (this.clearInvisibleValues != \"none\") {\n this.clearInvisibleQuestionValues();\n }\n }\n hasVisibleQuestionByValueName(valueName: string): boolean {\n var questions = this.getQuestionsByValueName(valueName);\n if (!questions) return false;\n for (var i: number = 0; i < questions.length; i++) {\n if (questions[i].isVisible) return true;\n }\n return false;\n }\n questionCountByValueName(valueName: string): number {\n var questions = this.getQuestionsByValueName(valueName);\n return !!questions ? questions.length : 0;\n }\n private clearInvisibleQuestionValues() {\n var questions = this.getAllQuestions();\n for (var i: number = 0; i < questions.length; i++) {\n questions[i].clearValueIfInvisible();\n }\n }\n /**\n * Returns a variable value. Variable, unlike values, are not stored in the survey results.\n * @param name A variable name\n * @see SetVariable\n */\n public getVariable(name: string): any {\n if (!name) return null;\n name = name.toLowerCase();\n var res = this.variablesHash[name];\n if (!this.isValueEmpty(res)) return res;\n if (name.indexOf(\".\") > -1 || name.indexOf(\"[\") > -1) {\n if (new ProcessValue().hasValue(name, this.variablesHash))\n return new ProcessValue().getValue(name, this.variablesHash);\n }\n return res;\n }\n /**\n * Sets a variable value. Variable, unlike values, are not stored in the survey results.\n * @param name A variable name\n * @param newValue A variable new value\n * @see GetVariable\n */\n public setVariable(name: string, newValue: any) {\n if (!name) return;\n name = name.toLowerCase();\n this.variablesHash[name] = newValue;\n this.notifyElementsOnAnyValueOrVariableChanged(name);\n this.runConditionOnValueChanged(name, newValue);\n }\n /**\n * Returns all variables in the survey. Use setVariable function to create a new variable.\n * @see getVariable\n * @see setVariable\n */\n public getVariableNames(): Array {\n var res = [];\n for (var key in this.variablesHash) {\n res.push(key);\n }\n return res;\n }\n //ISurvey data\n protected getUnbindValue(value: any): any {\n if (!!this.editingObj) return value;\n return Helpers.getUnbindValue(value);\n }\n /**\n * Returns a question value (answer) by a question's name.\n * @param name A question name\n * @see data\n * @see setValue\n */\n public getValue(name: string): any {\n if (!name || name.length == 0) return null;\n var value = this.getDataValueCore(this.valuesHash, name);\n return this.getUnbindValue(value);\n }\n /**\n * Sets a question value (answer). It runs all triggers and conditions (`visibleIf` properties).\n *\n * Goes to the next page if `goNextPageAutomatic` is `true` and all questions on the current page are answered correctly.\n * @param name A question name\n * @param newValue A new question value\n * @see data\n * @see getValue\n * @see PageModel.visibleIf\n * @see Question.visibleIf\n * @see goNextPageAutomatic\n */\n public setValue(\n name: string,\n newQuestionValue: any,\n locNotification: any = false,\n allowNotifyValueChanged: boolean = true\n ) {\n var newValue = newQuestionValue;\n if (allowNotifyValueChanged) {\n newValue = this.questionOnValueChanging(name, newQuestionValue);\n }\n if (\n this.isValidateOnValueChanging &&\n this.checkErrorsOnValueChanging(name, newValue)\n )\n return;\n if (\n !this.editingObj &&\n this.isValueEqual(name, newValue) &&\n this.isTwoValueEquals(newValue, newQuestionValue)\n )\n return;\n var oldValue = this.getValue(name);\n if (this.isValueEmpty(newValue)) {\n this.deleteDataValueCore(this.valuesHash, name);\n } else {\n newValue = this.getUnbindValue(newValue);\n this.setDataValueCore(this.valuesHash, name, newValue);\n }\n this.updateOnSetValue(\n name,\n newValue,\n oldValue,\n locNotification,\n allowNotifyValueChanged\n );\n }\n private updateOnSetValue(\n name: string,\n newValue: any,\n oldValue: any,\n locNotification: any = false,\n allowNotifyValueChanged: boolean = true\n ) {\n this.updateQuestionValue(name, newValue);\n if (locNotification === true) return;\n var triggerKeys: { [index: string]: any } = {};\n triggerKeys[name] = { newValue: newValue, oldValue: oldValue };\n this.runConditionOnValueChanged(name, newValue);\n this.checkTriggers(triggerKeys, false);\n if (allowNotifyValueChanged)\n this.notifyQuestionOnValueChanged(name, newValue);\n if (locNotification !== \"text\") {\n this.tryGoNextPageAutomatic(name);\n }\n this.updateProgressText(true);\n }\n private isValueEqual(name: string, newValue: any): boolean {\n if (newValue === \"\" || newValue === undefined) newValue = null;\n var oldValue = this.getValue(name);\n if (oldValue === \"\" || oldValue === undefined) oldValue = null;\n if (newValue === null || oldValue === null) return newValue === oldValue;\n return this.isTwoValueEquals(newValue, oldValue);\n }\n protected doOnPageAdded(page: PageModel) {\n page.setSurveyImpl(this);\n if (!page.name) page.name = this.generateNewName(this.pages, \"page\");\n this.questionHashesPanelAdded(page);\n this.updateVisibleIndexes();\n var options = { page: page };\n this.onPageAdded.fire(this, options);\n }\n protected doOnPageRemoved(page: PageModel) {\n page.setSurveyImpl(null);\n this.updateVisibleIndexes();\n }\n private generateNewName(elements: Array, baseName: string): string {\n var keys: { [index: string]: any } = {};\n for (var i = 0; i < elements.length; i++) keys[elements[i][\"name\"]] = true;\n var index = 1;\n while (keys[baseName + index]) index++;\n return baseName + index;\n }\n protected tryGoNextPageAutomatic(name: string) {\n if (\n !!this.isEndLoadingFromJson ||\n !this.goNextPageAutomatic ||\n !this.currentPage\n )\n return;\n var question = this.getQuestionByValueName(name);\n if (\n !question ||\n (!!question &&\n (!question.visible || !question.supportGoNextPageAutomatic()))\n )\n return;\n if (question.hasErrors(false) && !question.supportGoNextPageError()) return;\n var questions = this.getCurrentPageQuestions();\n if (questions.indexOf(question) < 0) return;\n for (var i = 0; i < questions.length; i++) {\n if (questions[i].hasInput && questions[i].isEmpty()) return;\n }\n if (!this.checkIsCurrentPageHasErrors(false)) {\n if (!this.isLastPage) {\n this.nextPage();\n } else {\n if (\n this.goNextPageAutomatic === true &&\n this.allowCompleteSurveyAutomatic\n ) {\n this.completeLastPage();\n }\n }\n }\n }\n /**\n * Returns the comment value.\n * @param name A comment's name.\n * @see setComment\n */\n public getComment(name: string): string {\n var result = this.data[name + this.commentPrefix];\n if (result == null) result = \"\";\n return result;\n }\n /**\n * Sets a comment value.\n * @param name A comment name.\n * @param newValue A new comment value.\n * @see getComment\n */\n public setComment(\n name: string,\n newValue: string,\n locNotification: any = false\n ) {\n if (!newValue) newValue = \"\";\n if (Helpers.isTwoValueEquals(newValue, this.getComment(name))) return;\n var commentName = name + this.commentPrefix;\n if (this.isValueEmpty(newValue)) {\n this.deleteDataValueCore(this.valuesHash, commentName);\n } else {\n this.setDataValueCore(this.valuesHash, commentName, newValue);\n }\n var questions = this.getQuestionsByValueName(name);\n if (!!questions) {\n for (var i: number = 0; i < questions.length; i++) {\n questions[i].updateCommentFromSurvey(newValue);\n this.checkQuestionErrorOnValueChanged(questions[i]);\n }\n }\n if (locNotification !== \"text\") {\n this.tryGoNextPageAutomatic(name);\n }\n var question = this.getQuestionByName(name);\n if (question) {\n this.onValueChanged.fire(this, {\n name: commentName,\n question: question,\n value: newValue,\n });\n }\n }\n /**\n * Removes a value from the survey results.\n * @param {string} name The name of the value. Typically it is a question name.\n */\n public clearValue(name: string) {\n this.setValue(name, null);\n this.setComment(name, null);\n }\n /**\n * Gets or sets whether to clear value on disable items in checkbox, dropdown and radiogroup questions.\n * By default, values are not cleared on disabled the corresponded items. This property is not persisted in survey JSON and you have to set it in code.\n */\n public get clearValueOnDisableItems(): boolean {\n return this.getPropertyValue(\"clearValueOnDisableItems\", false);\n }\n public set clearValueOnDisableItems(val: boolean) {\n this.setPropertyValue(\"clearValueOnDisableItems\", val);\n }\n get isClearValueOnHidden(): boolean {\n return (\n this.clearInvisibleValues == \"onHidden\" ||\n this.isClearValueOnHiddenContainer\n );\n }\n get isClearValueOnHiddenContainer(): boolean {\n return (\n this.clearInvisibleValues == \"onHiddenContainer\" &&\n !this.isShowingPreview &&\n !this.runningPages\n );\n }\n questionVisibilityChanged(question: IQuestion, newValue: boolean) {\n this.updateVisibleIndexes();\n this.onVisibleChanged.fire(this, {\n question: question,\n name: question.name,\n visible: newValue,\n });\n }\n pageVisibilityChanged(page: IPage, newValue: boolean) {\n if (this.isLoadingFromJson) return;\n if (newValue && !this.currentPageValue) {\n this.currentPageValue = this.currentPage;\n }\n this.updateVisibleIndexes();\n this.onPageVisibleChanged.fire(this, {\n page: page,\n visible: newValue,\n });\n }\n panelVisibilityChanged(panel: IPanel, newValue: boolean) {\n this.updateVisibleIndexes();\n this.onPanelVisibleChanged.fire(this, {\n panel: panel,\n visible: newValue,\n });\n }\n questionCreated(question: IQuestion): any {\n this.onQuestionCreated.fire(this, { question: question });\n }\n questionAdded(\n question: IQuestion,\n index: number,\n parentPanel: any,\n rootPanel: any\n ) {\n if (!question.name) {\n question.name = this.generateNewName(\n this.getAllQuestions(false, true),\n \"question\"\n );\n }\n if (!!(question).page) {\n this.questionHashesAdded(question);\n }\n this.updateVisibleIndexes();\n this.onQuestionAdded.fire(this, {\n question: question,\n name: question.name,\n index: index,\n parentPanel: parentPanel,\n rootPanel: rootPanel,\n });\n }\n questionRemoved(question: IQuestion) {\n this.questionHashesRemoved(\n question,\n question.name,\n question.getValueName()\n );\n this.updateVisibleIndexes();\n this.onQuestionRemoved.fire(this, {\n question: question,\n name: question.name,\n });\n }\n questionRenamed(\n question: IQuestion,\n oldName: string,\n oldValueName: string\n ): any {\n this.questionHashesRemoved(question, oldName, oldValueName);\n this.questionHashesAdded(question);\n }\n private questionHashes = {\n names: {},\n namesInsensitive: {},\n valueNames: {},\n valueNamesInsensitive: {},\n };\n private questionHashesClear() {\n this.questionHashes.names = {};\n this.questionHashes.namesInsensitive = {};\n this.questionHashes.valueNames = {};\n this.questionHashes.valueNamesInsensitive = {};\n }\n private questionHashesPanelAdded(panel: PanelModelBase) {\n if (this.isLoadingFromJson) return;\n var questions = panel.questions;\n for (var i = 0; i < questions.length; i++) {\n this.questionHashesAdded(questions[i]);\n }\n }\n private questionHashesAdded(question: Question) {\n this.questionHashAddedCore(\n this.questionHashes.names,\n question,\n question.name\n );\n this.questionHashAddedCore(\n this.questionHashes.namesInsensitive,\n question,\n question.name.toLowerCase()\n );\n this.questionHashAddedCore(\n this.questionHashes.valueNames,\n question,\n question.getValueName()\n );\n this.questionHashAddedCore(\n this.questionHashes.valueNamesInsensitive,\n question,\n question.getValueName().toLowerCase()\n );\n }\n private questionHashesRemoved(\n question: Question,\n name: string,\n valueName: string\n ) {\n if (!!name) {\n this.questionHashRemovedCore(this.questionHashes.names, question, name);\n this.questionHashRemovedCore(\n this.questionHashes.namesInsensitive,\n question,\n name.toLowerCase()\n );\n }\n if (!!valueName) {\n this.questionHashRemovedCore(\n this.questionHashes.valueNames,\n question,\n valueName\n );\n this.questionHashRemovedCore(\n this.questionHashes.valueNamesInsensitive,\n question,\n valueName.toLowerCase()\n );\n }\n }\n private questionHashAddedCore(hash: any, question: Question, name: string) {\n var res = hash[name];\n if (!!res) {\n var res = hash[name];\n if (res.indexOf(question) < 0) {\n res.push(question);\n }\n } else {\n hash[name] = [question];\n }\n }\n private questionHashRemovedCore(hash: any, question: Question, name: string) {\n var res = hash[name];\n if (!res) return;\n var index = res.indexOf(question);\n if (index > -1) {\n res.splice(index, 1);\n }\n if (res.length == 0) {\n delete hash[name];\n }\n }\n panelAdded(panel: IElement, index: number, parentPanel: any, rootPanel: any) {\n if (!panel.name) {\n panel.name = this.generateNewName(\n this.getAllPanels(false, true),\n \"panel\"\n );\n }\n this.questionHashesPanelAdded((panel));\n this.updateVisibleIndexes();\n this.onPanelAdded.fire(this, {\n panel: panel,\n name: panel.name,\n index: index,\n parentPanel: parentPanel,\n rootPanel: rootPanel,\n });\n }\n panelRemoved(panel: IElement) {\n this.updateVisibleIndexes();\n this.onPanelRemoved.fire(this, { panel: panel, name: panel.name });\n }\n validateQuestion(question: IQuestion): SurveyError {\n if (this.onValidateQuestion.isEmpty) return null;\n var options = {\n name: question.name,\n question: question,\n value: question.value,\n error: null,\n };\n this.onValidateQuestion.fire(this, options);\n return options.error ? new CustomError(options.error, this) : null;\n }\n validatePanel(panel: IPanel): SurveyError {\n if (this.onValidatePanel.isEmpty) return null;\n var options = {\n name: panel.name,\n panel: panel,\n error: null,\n };\n this.onValidatePanel.fire(this, options);\n return options.error ? new CustomError(options.error, this) : null;\n }\n processHtml(html: string): string {\n var options = { html: html };\n this.onProcessHtml.fire(this, options);\n return this.processText(options.html, true);\n }\n processText(text: string, returnDisplayValue: boolean): string {\n return this.processTextEx(text, returnDisplayValue, false).text;\n }\n processTextEx(\n text: string,\n returnDisplayValue: boolean,\n doEncoding: boolean\n ): any {\n var res = {\n text: this.processTextCore(text, returnDisplayValue, doEncoding),\n hasAllValuesOnLastRun: true,\n };\n res.hasAllValuesOnLastRun = this.textPreProcessor.hasAllValuesOnLastRun;\n return res;\n }\n private processTextCore(\n text: string,\n returnDisplayValue: boolean,\n doEncoding: boolean = false\n ): string {\n if (this.isDesignMode) return text;\n return this.textPreProcessor.process(text, returnDisplayValue, doEncoding);\n }\n getSurveyMarkdownHtml(element: Base, text: string, name: string): string {\n var options = {\n element: element,\n text: text,\n name: name,\n html: null,\n };\n this.onTextMarkdown.fire(this, options);\n return options.html;\n }\n /**\n * Returns an amount of corrected quiz answers.\n */\n public getCorrectedAnswerCount(): number {\n return this.getCorrectedAnswerCountCore(true);\n }\n /**\n * Returns quiz question number. It may be different from `getQuizQuestions.length` because some widgets like matrix may have several questions.\n * @see getQuizQuestions\n */\n public getQuizQuestionCount(): number {\n var questions = this.getQuizQuestions();\n var res = 0;\n for (var i = 0; i < questions.length; i++) {\n res += (questions[i]).quizQuestionCount;\n }\n return res;\n }\n /**\n * Returns an amount of incorrect quiz answers.\n */\n public getInCorrectedAnswerCount(): number {\n return this.getCorrectedAnswerCountCore(false);\n }\n private getCorrectedAnswerCountCore(isCorrect: boolean): number {\n var questions = this.getQuizQuestions();\n var counter = 0;\n var options = {\n question: null,\n result: false,\n correctAnswers: 0,\n incorrectAnswers: 0,\n };\n for (var i = 0; i < questions.length; i++) {\n var q = questions[i];\n var quizQuestionCount = q.quizQuestionCount;\n options.question = q;\n options.correctAnswers = q.correctAnswerCount;\n options.incorrectAnswers = quizQuestionCount - options.correctAnswers;\n options.result = options.question.isAnswerCorrect();\n this.onIsAnswerCorrect.fire(this, options);\n if (isCorrect) {\n if (options.result || options.correctAnswers < quizQuestionCount) {\n var addCount = options.correctAnswers;\n if (addCount == 0 && options.result) addCount = 1;\n counter += addCount;\n }\n } else {\n if (!options.result || options.incorrectAnswers < quizQuestionCount) {\n counter += options.incorrectAnswers;\n }\n }\n }\n return counter;\n }\n getCorrectedAnswers(): number {\n return this.getCorrectedAnswerCount();\n }\n getInCorrectedAnswers(): number {\n return this.getInCorrectedAnswerCount();\n }\n /**\n * Gets or sets a timer panel position. The timer panel displays information about how much time an end user spends on a survey/page.\n *\n * The available options:\n * - `top` - display timer panel in the top.\n * - `bottom` - display timer panel in the bottom.\n * - `none` - do not display a timer panel.\n *\n * If the value is not equal to 'none', the survey calls the `startTimer()` method on survey rendering.\n * @see showTimerPanelMode\n * @see startTimer\n * @see stopTimer\n */\n public get showTimerPanel(): string {\n return this.getPropertyValue(\"showTimerPanel\", \"none\");\n }\n public set showTimerPanel(val: string) {\n this.setPropertyValue(\"showTimerPanel\", val);\n }\n public get isTimerPanelShowingOnTop() {\n return this.isTimerStarted && this.showTimerPanel == \"top\";\n }\n public get isTimerPanelShowingOnBottom() {\n return this.isTimerStarted && this.showTimerPanel == \"bottom\";\n }\n /**\n * Gets or set a value that specifies whether the timer displays information for the page or for the entire survey.\n *\n * The available options:\n *\n * - `page` - show timer information for page\n * - `survey` - show timer information for survey\n *\n * Use the `onTimerPanelInfoText` event to change the default text.\n * @see showTimerPanel\n * @see onTimerPanelInfoText\n */\n public get showTimerPanelMode(): string {\n return this.getPropertyValue(\"showTimerPanelMode\", \"all\");\n }\n public set showTimerPanelMode(val: string) {\n this.setPropertyValue(\"showTimerPanelMode\", val);\n }\n public get timerInfoText(): string {\n var options = { text: this.getTimerInfoText() };\n this.onTimerPanelInfoText.fire(this, options);\n var loc = new LocalizableString(this, true);\n loc.text = options.text;\n return loc.textOrHtml;\n }\n private getTimerInfoText() {\n var page = this.currentPage;\n if (!page) return \"\";\n var pageSpent = this.getDisplayTime(page.timeSpent);\n var surveySpent = this.getDisplayTime(this.timeSpent);\n var pageLimitSec = this.getPageMaxTimeToFinish(page);\n var pageLimit = this.getDisplayTime(pageLimitSec);\n var surveyLimit = this.getDisplayTime(this.maxTimeToFinish);\n if (this.showTimerPanelMode == \"page\")\n return this.getTimerInfoPageText(page, pageSpent, pageLimit);\n if (this.showTimerPanelMode == \"survey\")\n return this.getTimerInfoSurveyText(surveySpent, surveyLimit);\n if (this.showTimerPanelMode == \"all\") {\n if (pageLimitSec <= 0 && this.maxTimeToFinish <= 0) {\n return this.getLocString(\"timerSpentAll\")[\"format\"](\n pageSpent,\n surveySpent\n );\n }\n if (pageLimitSec > 0 && this.maxTimeToFinish > 0) {\n return this.getLocString(\"timerLimitAll\")[\"format\"](\n pageSpent,\n pageLimit,\n surveySpent,\n surveyLimit\n );\n }\n let pageText = this.getTimerInfoPageText(page, pageSpent, pageLimit);\n let surveyText = this.getTimerInfoSurveyText(surveySpent, surveyLimit);\n return pageText + \" \" + surveyText;\n }\n return \"\";\n }\n private getTimerInfoPageText(\n page: PageModel,\n pageSpent: string,\n pageLimit: string\n ): string {\n return this.getPageMaxTimeToFinish(page) > 0\n ? this.getLocString(\"timerLimitPage\")[\"format\"](pageSpent, pageLimit)\n : this.getLocString(\"timerSpentPage\")[\"format\"](pageSpent, pageLimit);\n }\n private getTimerInfoSurveyText(\n surveySpent: string,\n surveyLimit: string\n ): string {\n return this.maxTimeToFinish > 0\n ? this.getLocString(\"timerLimitSurvey\")[\"format\"](\n surveySpent,\n surveyLimit\n )\n : this.getLocString(\"timerSpentSurvey\")[\"format\"](\n surveySpent,\n surveyLimit\n );\n }\n private getDisplayTime(val: number): string {\n var min = Math.floor(val / 60);\n var sec = val % 60;\n var res = \"\";\n if (min > 0) {\n res += min + \" \" + this.getLocString(\"timerMin\");\n }\n if (res && sec == 0) return res;\n if (res) res += \" \";\n return res + sec + \" \" + this.getLocString(\"timerSec\");\n }\n private timerFunc: any = null;\n /**\n * Starts a timer that will calculate how much time end-user spends on the survey or on pages.\n * @see stopTimer\n * @see timeSpent\n */\n public startTimer() {\n if (this.isTimerStarted || this.isDesignMode) return;\n var self = this;\n this.timerFunc = function() {\n self.doTimer();\n };\n this.isTimerStarted = true;\n SurveyTimer.instance.start(this.timerFunc);\n }\n startTimerFromUI() {\n if (this.showTimerPanel != \"none\" && this.state === \"running\") {\n this.startTimer();\n }\n }\n /**\n * Stops the timer.\n * @see startTimer\n * @see timeSpent\n */\n public stopTimer() {\n if (!this.isTimerStarted) return;\n this.isTimerStarted = false;\n SurveyTimer.instance.stop(this.timerFunc);\n }\n /**\n * Returns the time in seconds an end user spends on the survey\n * @see startTimer\n * @see PageModel.timeSpent\n */\n public timeSpent = 0;\n /**\n * Gets or sets the maximum time in seconds that end user has to complete a survey. If the value is 0 or less, an end user has no time limit to finish a survey.\n * @see startTimer\n * @see maxTimeToFinishPage\n */\n public get maxTimeToFinish(): number {\n return this.getPropertyValue(\"maxTimeToFinish\", 0);\n }\n public set maxTimeToFinish(val: number) {\n this.setPropertyValue(\"maxTimeToFinish\", val);\n }\n /**\n * Gets or sets the maximum time in seconds that end user has to complete a page in the survey. If the value is 0 or less, an end user has no time limit.\n *\n * You may override this value for every page.\n * @see startTimer\n * @see maxTimeToFinish\n * @see PageModel.maxTimeToFinish\n */\n public get maxTimeToFinishPage(): number {\n return this.getPropertyValue(\"maxTimeToFinishPage\", 0);\n }\n public set maxTimeToFinishPage(val: number) {\n this.setPropertyValue(\"maxTimeToFinishPage\", val);\n }\n private getPageMaxTimeToFinish(page: PageModel) {\n if (!page || page.maxTimeToFinish < 0) return 0;\n return page.maxTimeToFinish > 0\n ? page.maxTimeToFinish\n : this.maxTimeToFinishPage;\n }\n protected doTimer() {\n var page = this.currentPage;\n if (page) {\n page.timeSpent = page.timeSpent + 1;\n }\n this.timeSpent = this.timeSpent + 1;\n this.onTimer.fire(this, {});\n if (this.maxTimeToFinish > 0 && this.maxTimeToFinish == this.timeSpent) {\n this.completeLastPage();\n }\n if (page) {\n var pageLimit = this.getPageMaxTimeToFinish(page);\n if (pageLimit > 0 && pageLimit == page.timeSpent) {\n if (this.isLastPage) {\n this.completeLastPage();\n } else {\n this.nextPage();\n }\n }\n }\n }\n public get inSurvey(): boolean {\n return true;\n }\n //ISurveyImplementor\n getSurveyData(): ISurveyData {\n return this;\n }\n getSurvey(): ISurvey {\n return this;\n }\n getTextProcessor(): ITextProcessor {\n return this;\n }\n //ISurveyTriggerOwner\n getObjects(pages: string[], questions: string[]): any[] {\n var result: any[] = [];\n Array.prototype.push.apply(result, this.getPagesByNames(pages));\n Array.prototype.push.apply(result, this.getQuestionsByNames(questions));\n return result;\n }\n setTriggerValue(name: string, value: any, isVariable: boolean) {\n if (!name) return;\n if (isVariable) {\n this.setVariable(name, value);\n } else {\n var question = this.getQuestionByName(name);\n if (!!question) {\n question.value = value;\n } else {\n var processor = new ProcessValue();\n var firstName = processor.getFirstName(name);\n if (firstName == name) {\n this.setValue(name, value);\n } else {\n if (!this.getQuestionByName(firstName)) return;\n var data = this.getUnbindValue(this.getFilteredValues());\n processor.setValue(data, name, value);\n this.setValue(firstName, data[firstName]);\n }\n }\n }\n }\n copyTriggerValue(name: string, fromName: string) {\n if (!name || !fromName) return;\n var processor = new ProcessValue();\n var value = processor.getValue(fromName, this.getFilteredValues());\n this.setTriggerValue(name, value, false);\n }\n focusQuestion(name: string): boolean {\n var question = this.getQuestionByName(name, true);\n if (!question || !question.isVisible || !question.page) return false;\n this.currentPage = question.page;\n setTimeout(function() {\n question.focus(), 1;\n });\n return true;\n }\n public getElementWrapperComponentName(element: SurveyElement): string {\n return \"survey-element-component\";\n }\n public getElementWrapperComponentData(element: SurveyElement): any {\n return element;\n }\n\n /**\n * Use this method to dispose survey model properly.\n */\n public dispose() {\n super.dispose();\n this.editingObj = null;\n for (var i = 0; i < this.pages.length; i++) {\n this.pages[i].dispose();\n }\n this.pages.splice(0, this.pages.length);\n this.currentPage = null;\n }\n}\n\nSerializer.addClass(\"survey\", [\n {\n name: \"locale\",\n choices: () => {\n return surveyLocalization.getLocales(true);\n },\n onGetValue: (obj: any): any => {\n return obj.locale == surveyLocalization.defaultLocale ? null : obj.locale;\n },\n },\n { name: \"title\", serializationProperty: \"locTitle\" },\n { name: \"description:text\", serializationProperty: \"locDescription\" },\n { name: \"logo\", serializationProperty: \"locLogo\" },\n { name: \"logoWidth:number\", default: 300, minValue: 0 },\n { name: \"logoHeight:number\", default: 200, minValue: 0 },\n {\n name: \"logoFit\",\n default: \"contain\",\n choices: [\"none\", \"contain\", \"cover\", \"fill\"],\n },\n {\n name: \"logoPosition\",\n default: \"left\",\n choices: [\"none\", \"left\", \"right\", \"top\", \"bottom\"],\n },\n { name: \"focusFirstQuestionAutomatic:boolean\", default: true },\n { name: \"focusOnFirstError:boolean\", default: true },\n { name: \"completedHtml:html\", serializationProperty: \"locCompletedHtml\" },\n {\n name: \"completedBeforeHtml:html\",\n serializationProperty: \"locCompletedBeforeHtml\",\n },\n {\n name: \"completedHtmlOnCondition:htmlconditions\",\n className: \"htmlconditionitem\",\n },\n { name: \"loadingHtml:html\", serializationProperty: \"locLoadingHtml\" },\n { name: \"pages:surveypages\", className: \"page\" },\n {\n name: \"questions\",\n alternativeName: \"elements\",\n baseClassName: \"question\",\n visible: false,\n isLightSerializable: false,\n onGetValue: function(obj: any): any {\n return null;\n },\n onSetValue: function(obj: any, value: any, jsonConverter: any) {\n var page = obj.addNewPage(\"\");\n jsonConverter.toObject({ questions: value }, page);\n },\n },\n {\n name: \"triggers:triggers\",\n baseClassName: \"surveytrigger\",\n classNamePart: \"trigger\",\n },\n {\n name: \"calculatedValues:calculatedvalues\",\n className: \"calculatedvalue\",\n },\n { name: \"surveyId\", visible: false },\n { name: \"surveyPostId\", visible: false },\n { name: \"surveyShowDataSaving:boolean\", visible: false },\n \"cookieName\",\n \"sendResultOnPageNext:boolean\",\n {\n name: \"showNavigationButtons\",\n default: \"bottom\",\n choices: [\"none\", \"top\", \"bottom\", \"both\"],\n },\n { name: \"showPrevButton:boolean\", default: true },\n { name: \"showTitle:boolean\", default: true },\n { name: \"showPageTitles:boolean\", default: true },\n { name: \"showCompletedPage:boolean\", default: true },\n \"navigateToUrl\",\n {\n name: \"navigateToUrlOnCondition:urlconditions\",\n className: \"urlconditionitem\",\n },\n {\n name: \"questionsOrder\",\n default: \"initial\",\n choices: [\"initial\", \"random\"],\n },\n \"showPageNumbers:boolean\",\n {\n name: \"showQuestionNumbers\",\n default: \"on\",\n choices: [\"on\", \"onPage\", \"off\"],\n },\n {\n name: \"questionTitleLocation\",\n default: \"top\",\n choices: [\"top\", \"bottom\", \"left\"],\n },\n {\n name: \"questionDescriptionLocation\",\n default: \"underTitle\",\n choices: [\"underInput\", \"underTitle\"],\n },\n { name: \"questionErrorLocation\", default: \"top\", choices: [\"top\", \"bottom\"] },\n {\n name: \"showProgressBar\",\n default: \"off\",\n choices: [\"off\", \"top\", \"bottom\", \"both\"],\n },\n {\n name: \"progressBarType\",\n default: \"pages\",\n choices: [\n \"pages\",\n \"questions\",\n \"requiredQuestions\",\n \"correctQuestions\",\n \"buttons\",\n ],\n },\n { name: \"mode\", default: \"edit\", choices: [\"edit\", \"display\"] },\n { name: \"storeOthersAsComment:boolean\", default: true },\n { name: \"maxTextLength:number\", default: 0, minValue: 0 },\n { name: \"maxOthersLength:number\", default: 0, minValue: 0 },\n \"goNextPageAutomatic:boolean\",\n {\n name: \"clearInvisibleValues\",\n default: \"onComplete\",\n choices: [\"none\", \"onComplete\", \"onHidden\", \"onHiddenContainer\"],\n },\n {\n name: \"checkErrorsMode\",\n default: \"onNextPage\",\n choices: [\"onNextPage\", \"onValueChanged\", \"onValueChanging\", \"onComplete\"],\n },\n {\n name: \"textUpdateMode\",\n default: \"onBlur\",\n choices: [\"onBlur\", \"onTyping\"],\n },\n { name: \"startSurveyText\", serializationProperty: \"locStartSurveyText\" },\n { name: \"pagePrevText\", serializationProperty: \"locPagePrevText\" },\n { name: \"pageNextText\", serializationProperty: \"locPageNextText\" },\n { name: \"completeText\", serializationProperty: \"locCompleteText\" },\n { name: \"previewText\", serializationProperty: \"locPreviewText\" },\n { name: \"editText\", serializationProperty: \"locEditText\" },\n { name: \"requiredText\", default: \"*\" },\n {\n name: \"questionStartIndex\",\n dependsOn: [\"showQuestionNumbers\"],\n visibleIf: function(survey: any) {\n return !survey || survey.showQuestionNumbers !== \"off\";\n },\n },\n {\n name: \"questionTitlePattern\",\n default: \"numTitleRequire\",\n dependsOn: [\"questionStartIndex\", \"requiredText\"],\n choices: (obj: any) => {\n if (!obj) return [];\n return obj.getQuestionTitlePatternOptions();\n },\n },\n {\n name: \"questionTitleTemplate\",\n visible: false,\n isSerializable: false,\n serializationProperty: \"locQuestionTitleTemplate\",\n },\n { name: \"firstPageIsStarted:boolean\", default: false },\n {\n name: \"isSinglePage:boolean\",\n default: false,\n visible: false,\n isSerializable: false,\n },\n {\n name: \"questionsOnPageMode\",\n default: \"standard\",\n choices: [\"singlePage\", \"standard\", \"questionPerPage\"],\n },\n {\n name: \"showPreviewBeforeComplete\",\n default: \"noPreview\",\n choices: [\"noPreview\", \"showAllQuestions\", \"showAnsweredQuestions\"],\n },\n { name: \"maxTimeToFinish:number\", default: 0, minValue: 0 },\n { name: \"maxTimeToFinishPage:number\", default: 0, minValue: 0 },\n {\n name: \"showTimerPanel\",\n default: \"none\",\n choices: [\"none\", \"top\", \"bottom\"],\n },\n {\n name: \"showTimerPanelMode\",\n default: \"all\",\n choices: [\"all\", \"page\", \"survey\"],\n },\n]);\n","import { SurveyModel } from './survey';\n\nexport class SurveyProgressButtonsModel {\n constructor(private survey: SurveyModel) {\n }\n public isListElementClickable(index: number): boolean {\n if (!this.survey.onServerValidateQuestions ||\n this.survey.onServerValidateQuestions.isEmpty ||\n this.survey.checkErrorsMode === \"onComplete\") {\n return true; \n }\n return index <= this.survey.currentPageNo + 1;\n }\n public getListElementCss(index: number): string {\n if (index >= this.survey.visiblePages.length) return;\n let elementCss: string = this.survey.visiblePages[index].passed ?\n this.survey.css.progressButtonsListElementPassed : \"\";\n if (this.survey.currentPageNo === index) {\n elementCss += elementCss !== \"\" ? \" \" : \"\";\n elementCss += this.survey.css.progressButtonsListElementCurrent;\n }\n if (!this.isListElementClickable(index)) {\n elementCss += elementCss !== \"\" ? \" \" : \"\";\n elementCss += this.survey.css.progressButtonsListElementNonClickable;\n }\n return elementCss;\n }\n public clickListElement(index: number): void {\n if (this.survey.isDesignMode) return;\n if (index < this.survey.currentPageNo) {\n this.survey.currentPageNo = index;\n }\n else if (index > this.survey.currentPageNo) {\n for (let i: number = this.survey.currentPageNo; i < index; i++) {\n if (!this.survey.nextPage()) break;\n }\n }\n }\n}\n","import { englishStrings } from \"./localization/english\";\n\nexport var surveyLocalization = {\n currentLocaleValue: \"\",\n defaultLocaleValue: \"en\",\n locales: <{ [index: string]: any }>{},\n localeNames: <{ [index: string]: any }>{},\n supportedLocales: >[],\n get currentLocale() {\n return this.currentLocaleValue === this.defaultLocaleValue\n ? \"\"\n : this.currentLocaleValue;\n },\n set currentLocale(val: string) {\n if (val === \"cz\") val = \"cs\";\n this.currentLocaleValue = val;\n },\n get defaultLocale() {\n return this.defaultLocaleValue;\n },\n set defaultLocale(val: string) {\n if (val === \"cz\") val = \"cs\";\n this.defaultLocaleValue = val;\n },\n getLocaleStrings(loc: string): any {\n return this.locales[loc];\n },\n getCurrentStrings(): any {\n var loc = this.currentLocale\n ? this.locales[this.currentLocale]\n : this.locales[this.defaultLocale];\n if (!loc) loc = this.locales[this.defaultLocale];\n return loc;\n },\n getString: function (strName: string) {\n var loc = this.getCurrentStrings();\n if (!loc[strName]) loc = this.locales[this.defaultLocale];\n var result = loc[strName];\n if (result === undefined) {\n result = this.locales[\"en\"][strName];\n }\n return result;\n },\n getLocales: function (removeDefaultLoc: boolean = false): Array {\n var res = [];\n res.push(\"\");\n var locs = this.locales;\n if (this.supportedLocales && this.supportedLocales.length > 0) {\n locs = {};\n for (var i = 0; i < this.supportedLocales.length; i++) {\n locs[this.supportedLocales[i]] = true;\n }\n }\n for (var key in locs) {\n if (removeDefaultLoc && key == this.defaultLocale) continue;\n res.push(key);\n }\n var locName = (loc: string): string => {\n if (!loc) return \"\";\n var res = (surveyLocalization).localeNames[loc];\n if (!res) res = loc;\n return res.toLowerCase();\n };\n res.sort((a, b): number => {\n var str1 = locName(a);\n var str2 = locName(b);\n if (str1 === str2) return 0;\n return str1 < str2 ? -1 : 1;\n });\n return res;\n },\n};\n\nexport var surveyStrings = englishStrings;\n(surveyLocalization).locales[\"en\"] = englishStrings;\n(surveyLocalization).localeNames[\"en\"] = \"english\";\n","import { Base } from \"./base\";\nimport { SurveyModel } from \"./survey\";\nimport { LocalizableString } from \"./localizablestring\";\n\n/**\n * A Model for a survey running in the Window.\n */\nexport class SurveyWindowModel extends Base {\n public static surveyElementName = \"windowSurveyJS\";\n surveyValue: SurveyModel;\n windowElement: HTMLDivElement;\n\n templateValue: string;\n expandedChangedCallback: () => void;\n showingChangedCallback: () => void;\n closeWindowOnCompleteCallback: () => void;\n\n constructor(jsonObj: any, initialModel: SurveyModel = null) {\n super();\n if (initialModel) {\n this.surveyValue = initialModel;\n } else {\n this.surveyValue = this.createSurvey(jsonObj);\n }\n this.surveyValue.showTitle = false;\n if (\"undefined\" !== typeof document) {\n this.windowElement = document.createElement(\"div\");\n }\n var self = this;\n this.survey.onComplete.add(function (survey, options) {\n self.onSurveyComplete();\n });\n }\n public getType(): string {\n return \"window\";\n }\n /**\n * A survey object.\n * @see SurveyModel\n */\n public get survey(): SurveyModel {\n return this.surveyValue;\n }\n /**\n * Set this value to negative value, for example -1, to avoid closing the window on completing the survey. Leave it equals to 0 (default value) to close the window immediately, or set it to 3, 5, 10, ... to close the window in 3, 5, 10 seconds.\n */\n public closeOnCompleteTimeout: number = 0;\n /**\n * Returns true if the window is currently showing. Set it to true to show the window and false to hide it.\n * @see show\n * @see hide\n */\n public get isShowing(): boolean {\n return this.getPropertyValue(\"isShowing\", false);\n }\n public set isShowing(val: boolean) {\n if (this.isShowing == val) return;\n this.setPropertyValue(\"isShowing\", val);\n if (this.showingChangedCallback) this.showingChangedCallback();\n }\n /**\n * Show the window\n * @see hide\n * @see isShowing\n */\n public show() {\n this.isShowing = true;\n }\n /**\n * Hide the window\n * @see show\n * @see isShowing\n */\n public hide() {\n this.isShowing = false;\n }\n /**\n * Returns true if the window is expanded. Set it to true to expand the window or false to collapse it.\n * @see expand\n * @see collapse\n */\n public get isExpanded(): boolean {\n return this.getPropertyValue(\"isExpanded\", false);\n }\n public set isExpanded(val: boolean) {\n this.setPropertyValue(\"isExpanded\", val);\n if (!this.isLoadingFromJson && this.expandedChangedCallback)\n this.expandedChangedCallback();\n }\n /**\n * The window and survey title.\n */\n public get title(): string {\n return this.survey.title;\n }\n public set title(value: string) {\n this.survey.title = value;\n }\n get locTitle(): LocalizableString {\n return this.survey.locTitle;\n }\n /**\n * Expand the window to show the survey.\n */\n public expand() {\n this.expandcollapse(true);\n }\n /**\n * Collapse the window and show survey title only.\n */\n public collapse() {\n this.expandcollapse(false);\n }\n protected createSurvey(jsonObj: any): SurveyModel {\n return new SurveyModel(jsonObj);\n }\n protected expandcollapse(value: boolean) {\n this.isExpanded = value;\n }\n protected onSurveyComplete() {\n if (this.closeOnCompleteTimeout < 0) return;\n if (this.closeOnCompleteTimeout == 0) {\n this.closeWindowOnComplete();\n } else {\n var self = this;\n var timerId: any = null;\n var func = function () {\n self.closeWindowOnComplete();\n if (typeof window !== \"undefined\") {\n window.clearInterval(timerId);\n }\n };\n timerId =\n typeof window !== \"undefined\"\n ? window.setInterval(func, this.closeOnCompleteTimeout * 1000)\n : 0;\n }\n }\n protected closeWindowOnComplete() {\n if (!!this.closeWindowOnCompleteCallback) {\n this.closeWindowOnCompleteCallback();\n }\n }\n}\n","import { Event } from \"./base\";\n\nexport var surveyTimerFunctions = {\n setTimeout: function (func: () => any): number {\n if (typeof window === \"undefined\") return 0;\n return window.setTimeout(func, 1000);\n },\n clearTimeout: function (timerId: number) {\n if (typeof window === \"undefined\") return;\n window.clearTimeout(timerId);\n },\n};\n\nexport class SurveyTimer {\n private static instanceValue: SurveyTimer = null;\n public static get instance() {\n if (!SurveyTimer.instanceValue) {\n SurveyTimer.instanceValue = new SurveyTimer();\n }\n return SurveyTimer.instanceValue;\n }\n private listenerCounter = 0;\n private timerId = -1;\n public onTimer: Event<() => any, any> = new Event<() => any, any>();\n public start(func: () => any = null) {\n if (func) {\n this.onTimer.add(func);\n }\n if (this.timerId < 0) {\n this.timerId = surveyTimerFunctions.setTimeout(() => {\n this.doTimer();\n });\n }\n this.listenerCounter++;\n }\n public stop(func: () => any = null) {\n if (func) {\n this.onTimer.remove(func);\n }\n this.listenerCounter--;\n if (this.listenerCounter == 0 && this.timerId > -1) {\n surveyTimerFunctions.clearTimeout(this.timerId);\n this.timerId = -1;\n }\n }\n public doTimer() {\n if (this.timerId < 0) return;\n this.onTimer.fire(this, {});\n this.timerId = surveyTimerFunctions.setTimeout(() => {\n this.doTimer();\n });\n }\n}\n","import { Helpers } from \"./helpers\";\nimport { Question } from \"./question\";\nimport { PanelModel } from \"./panel\";\nimport { ISurvey, ITextProcessor } from \"./base\";\nimport { ProcessValue } from \"./conditionProcessValue\";\n\nexport class TextPreProcessorItem {\n public start: number;\n public end: number;\n}\n\nexport class TextPreProcessorValue {\n constructor(public name: string, public returnDisplayValue: boolean) {\n this.isExists = false;\n this.canProcess = true;\n }\n public value: any;\n public isExists: boolean;\n public canProcess: boolean;\n}\n\nexport class TextPreProcessor {\n private hasAllValuesOnLastRunValue: boolean;\n public onProcess: (textValue: TextPreProcessorValue) => void;\n constructor() {}\n public process(\n text: string,\n returnDisplayValue: boolean = false,\n doEncoding: boolean = false\n ): string {\n this.hasAllValuesOnLastRunValue = true;\n if (!text) return text;\n if (!this.onProcess) return text;\n var items = this.getItems(text);\n for (var i = items.length - 1; i >= 0; i--) {\n var item = items[i];\n var name = this.getName(text.substring(item.start + 1, item.end));\n if (!name) continue;\n var textValue = new TextPreProcessorValue(name, returnDisplayValue);\n this.onProcess(textValue);\n if (!textValue.isExists) {\n if (textValue.canProcess) {\n this.hasAllValuesOnLastRunValue = false;\n }\n continue;\n }\n if (Helpers.isValueEmpty(textValue.value)) {\n this.hasAllValuesOnLastRunValue = false;\n }\n var replacedValue = !Helpers.isValueEmpty(textValue.value)\n ? textValue.value\n : \"\";\n if (doEncoding) {\n replacedValue = encodeURIComponent(replacedValue);\n }\n text =\n text.substr(0, item.start) + replacedValue + text.substr(item.end + 1);\n }\n return text;\n }\n public processValue(\n name: string,\n returnDisplayValue: boolean\n ): TextPreProcessorValue {\n var textValue = new TextPreProcessorValue(name, returnDisplayValue);\n if (!!this.onProcess) {\n this.onProcess(textValue);\n }\n return textValue;\n }\n public get hasAllValuesOnLastRun() {\n return !!this.hasAllValuesOnLastRunValue;\n }\n private getItems(text: string): Array {\n var items = [];\n var length = text.length;\n var start = -1;\n var ch = \"\";\n for (var i = 0; i < length; i++) {\n ch = text[i];\n if (ch == \"{\") start = i;\n if (ch == \"}\") {\n if (start > -1) {\n var item = new TextPreProcessorItem();\n item.start = start;\n item.end = i;\n items.push(item);\n }\n start = -1;\n }\n }\n return items;\n }\n private getName(name: string): string {\n if (!name) return;\n return name.trim();\n }\n}\n\nexport class QuestionTextProcessor implements ITextProcessor {\n private textPreProcessor: TextPreProcessor;\n constructor(protected variableName: string) {\n this.textPreProcessor = new TextPreProcessor();\n this.textPreProcessor.onProcess = (textValue: TextPreProcessorValue) => {\n this.getProcessedTextValue(textValue);\n };\n }\n public processValue(\n name: string,\n returnDisplayValue: boolean\n ): TextPreProcessorValue {\n return this.textPreProcessor.processValue(name, returnDisplayValue);\n }\n protected get survey(): ISurvey {\n return null;\n }\n protected get panel(): PanelModel {\n return null;\n }\n protected getValues(): any {\n return !!this.panel ? this.panel.getValue() : null;\n }\n protected getQuestionByName(name: string): Question {\n return !!this.panel\n ? this.panel.getQuestionByValueName(name)\n : null;\n }\n protected onCustomProcessText(textValue: TextPreProcessorValue): boolean {\n return false;\n }\n //ITextProcessor\n private getProcessedTextValue(textValue: TextPreProcessorValue) {\n if (!textValue) return;\n if (this.onCustomProcessText(textValue)) return;\n var firstName = new ProcessValue().getFirstName(textValue.name);\n textValue.isExists = firstName == this.variableName;\n textValue.canProcess = textValue.isExists;\n if (!textValue.canProcess) return;\n //name should start with the variable name\n textValue.name = textValue.name.replace(this.variableName + \".\", \"\");\n var firstName = new ProcessValue().getFirstName(textValue.name);\n var question = this.getQuestionByName(firstName);\n var values = {};\n if (question) {\n (values)[firstName] = textValue.returnDisplayValue\n ? question.displayValue\n : question.value;\n } else {\n var allValues = !!this.panel ? this.getValues() : null;\n if (allValues) {\n (values)[firstName] = allValues[firstName];\n }\n }\n textValue.value = new ProcessValue().getValue(textValue.name, values);\n }\n processText(text: string, returnDisplayValue: boolean): string {\n text = this.textPreProcessor.process(text, returnDisplayValue);\n var survey = this.survey;\n return survey ? survey.processText(text, returnDisplayValue) : text;\n }\n processTextEx(text: string, returnDisplayValue: boolean): any {\n text = this.processText(text, returnDisplayValue);\n var hasAllValuesOnLastRun = this.textPreProcessor.hasAllValuesOnLastRun;\n var res = { hasAllValuesOnLastRun: true, text: text };\n if (this.survey) {\n res = this.survey.processTextEx(text, returnDisplayValue, false);\n }\n res.hasAllValuesOnLastRun =\n res.hasAllValuesOnLastRun && hasAllValuesOnLastRun;\n return res;\n }\n}\n","import { HashTable, Helpers } from \"./helpers\";\nimport { Base, ISurvey } from \"./base\";\nimport { Serializer } from \"./jsonobject\";\nimport { ConditionRunner, ExpressionRunner } from \"./conditions\";\nimport { OperandMaker } from \"./expressions/expressions\";\nimport { ProcessValue } from \"./conditionProcessValue\";\nimport { settings } from \"./settings\";\n\n/**\n * A base class for all triggers.\n * A trigger calls a method when the expression change the result: from false to true or from true to false.\n * Please note, it runs only one changing the expression result.\n */\nexport class Trigger extends Base {\n static operatorsValue: HashTable = null;\n static get operators() {\n if (Trigger.operatorsValue != null) return Trigger.operatorsValue;\n Trigger.operatorsValue = {\n empty: function(value: any, expectedValue: any) {\n return !value;\n },\n notempty: function(value: any, expectedValue: any) {\n return !!value;\n },\n equal: function(value: any, expectedValue: any) {\n return value == expectedValue;\n },\n notequal: function(value: any, expectedValue: any) {\n return value != expectedValue;\n },\n contains: function(value: any, expectedValue: any) {\n return value && value[\"indexOf\"] && value.indexOf(expectedValue) > -1;\n },\n notcontains: function(value: any, expectedValue: any) {\n return (\n !value || !value[\"indexOf\"] || value.indexOf(expectedValue) == -1\n );\n },\n greater: function(value: any, expectedValue: any) {\n return value > expectedValue;\n },\n less: function(value: any, expectedValue: any) {\n return value < expectedValue;\n },\n greaterorequal: function(value: any, expectedValue: any) {\n return value >= expectedValue;\n },\n lessorequal: function(value: any, expectedValue: any) {\n return value <= expectedValue;\n },\n };\n return Trigger.operatorsValue;\n }\n private conditionRunner: ConditionRunner;\n private usedNames: Array;\n private hasFunction: boolean;\n constructor() {\n super();\n this.usedNames = [];\n var self = this;\n this.registerFunctionOnPropertiesValueChanged(\n [\"operator\", \"value\", \"name\"],\n function() {\n self.oldPropertiesChanged();\n }\n );\n this.registerFunctionOnPropertyValueChanged(\"expression\", function() {\n self.onExpressionChanged();\n });\n }\n public getType(): string {\n return \"triggerbase\";\n }\n public toString(): string {\n var res = this.getType().replace(\"trigger\", \"\");\n var exp = !!this.expression ? this.expression : this.buildExpression();\n if (exp) {\n res += \", \" + exp;\n }\n return res;\n }\n public get operator(): string {\n return this.getPropertyValue(\"operator\", \"equal\");\n }\n public set operator(value: string) {\n if (!value) return;\n value = value.toLowerCase();\n if (!Trigger.operators[value]) return;\n this.setPropertyValue(\"operator\", value);\n }\n public get value(): any {\n return this.getPropertyValue(\"value\", null);\n }\n public set value(val: any) {\n this.setPropertyValue(\"value\", val);\n }\n public get name(): string {\n return this.getPropertyValue(\"name\", \"\");\n }\n public set name(val: string) {\n this.setPropertyValue(\"name\", val);\n }\n\n public get expression(): string {\n return this.getPropertyValue(\"expression\", \"\");\n }\n public set expression(val: string) {\n this.setPropertyValue(\"expression\", val);\n }\n public checkExpression(\n keys: any,\n values: HashTable,\n properties: HashTable = null\n ) {\n if (!this.isCheckRequired(keys)) return;\n if (!!this.conditionRunner) {\n this.perform(values, properties);\n }\n }\n public check(value: any) {\n var triggerResult = Trigger.operators[this.operator](value, this.value);\n if (triggerResult) {\n this.onSuccess({}, null);\n } else {\n this.onFailure();\n }\n }\n private perform(values: HashTable, properties: HashTable) {\n this.conditionRunner.onRunComplete = (res: boolean) => {\n this.triggerResult(res, values, properties);\n };\n this.conditionRunner.run(values, properties);\n }\n private triggerResult(\n res: boolean,\n values: HashTable,\n properties: HashTable\n ) {\n if (res) {\n this.onSuccess(values, properties);\n } else {\n this.onFailure();\n }\n }\n protected onSuccess(values: HashTable, properties: HashTable) {}\n protected onFailure() {}\n endLoadingFromJson() {\n super.endLoadingFromJson();\n this.oldPropertiesChanged();\n }\n private oldPropertiesChanged() {\n this.onExpressionChanged();\n }\n private onExpressionChanged() {\n this.usedNames = [];\n this.hasFunction = false;\n this.conditionRunner = null;\n }\n public buildExpression(): string {\n if (!this.name) return \"\";\n if (this.isValueEmpty(this.value) && this.isRequireValue) return \"\";\n return (\n \"{\" +\n this.name +\n \"} \" +\n this.operator +\n \" \" +\n OperandMaker.toOperandString(this.value)\n );\n }\n private isCheckRequired(keys: any): boolean {\n if (!keys) return false;\n this.buildUsedNames();\n if (this.hasFunction === true) return true;\n var processValue = new ProcessValue();\n for (var i = 0; i < this.usedNames.length; i++) {\n var name = this.usedNames[i];\n if (keys.hasOwnProperty(name)) return true;\n var firstName = processValue.getFirstName(name);\n if (!keys.hasOwnProperty(firstName)) continue;\n if (name == firstName) return true;\n var keyValue = keys[firstName];\n if (\n !keyValue.hasOwnProperty(\"oldValue\") ||\n !keyValue.hasOwnProperty(\"newValue\")\n )\n return true;\n var v: any = {};\n v[firstName] = keyValue[\"oldValue\"];\n var oldValue = processValue.getValue(name, v);\n v[firstName] = keyValue[\"newValue\"];\n var newValue = processValue.getValue(name, v);\n return !Helpers.isTwoValueEquals(oldValue, newValue);\n }\n return false;\n }\n private buildUsedNames() {\n if (!!this.conditionRunner) return;\n var expression = this.expression;\n if (!expression) {\n expression = this.buildExpression();\n }\n if (!expression) return;\n this.conditionRunner = new ConditionRunner(expression);\n this.hasFunction = this.conditionRunner.hasFunction();\n this.usedNames = this.conditionRunner.getVariables();\n }\n private get isRequireValue(): boolean {\n return this.operator !== \"empty\" && this.operator != \"notempty\";\n }\n}\n\nexport interface ISurveyTriggerOwner {\n getObjects(pages: string[], questions: string[]): any[];\n setCompleted(): any;\n setTriggerValue(name: string, value: any, isVariable: boolean): any;\n copyTriggerValue(name: string, fromName: string): any;\n focusQuestion(name: string): boolean;\n}\n\n/**\n * It extends the Trigger base class and add properties required for SurveyJS classes.\n */\nexport class SurveyTrigger extends Trigger {\n protected ownerValue: ISurveyTriggerOwner = null;\n constructor() {\n super();\n }\n public get owner(): ISurveyTriggerOwner {\n return this.ownerValue;\n }\n public setOwner(owner: ISurveyTriggerOwner) {\n this.ownerValue = owner;\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.owner && !!(this.owner)[\"getSurvey\"]\n ? (this.owner).getSurvey()\n : null;\n }\n public get isOnNextPage() {\n return false;\n }\n}\n/**\n * If expression returns true, it makes questions/pages visible.\n * Ohterwise it makes them invisible.\n */\nexport class SurveyTriggerVisible extends SurveyTrigger {\n public pages: string[] = [];\n public questions: string[] = [];\n constructor() {\n super();\n }\n public getType(): string {\n return \"visibletrigger\";\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n this.onTrigger(this.onItemSuccess);\n }\n protected onFailure() {\n this.onTrigger(this.onItemFailure);\n }\n private onTrigger(func: Function) {\n if (!this.owner) return;\n var objects = this.owner.getObjects(this.pages, this.questions);\n for (var i = 0; i < objects.length; i++) {\n func(objects[i]);\n }\n }\n protected onItemSuccess(item: any) {\n item.visible = true;\n }\n protected onItemFailure(item: any) {\n item.visible = false;\n }\n}\n/**\n * If expression returns true, it completes the survey.\n */\nexport class SurveyTriggerComplete extends SurveyTrigger {\n constructor() {\n super();\n }\n public getType(): string {\n return \"completetrigger\";\n }\n public get isOnNextPage() {\n return !settings.executeCompleteTriggerOnValueChanged;\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n if (this.owner) this.owner.setCompleted();\n }\n}\n/**\n * If expression returns true, the value from property **setValue** will be set to **setToName**\n */\nexport class SurveyTriggerSetValue extends SurveyTrigger {\n constructor() {\n super();\n }\n public getType(): string {\n return \"setvaluetrigger\";\n }\n public get setToName(): string {\n return this.getPropertyValue(\"setToName\", \"\");\n }\n public set setToName(val: string) {\n this.setPropertyValue(\"setToName\", val);\n }\n public get setValue(): any {\n return this.getPropertyValue(\"setValue\");\n }\n public set setValue(val: any) {\n this.setPropertyValue(\"setValue\", val);\n }\n public get isVariable(): boolean {\n return this.getPropertyValue(\"isVariable\", false);\n }\n public set isVariable(val: boolean) {\n this.setPropertyValue(\"isVariable\", val);\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n if (!this.setToName || !this.owner) return;\n this.owner.setTriggerValue(this.setToName, this.setValue, this.isVariable);\n }\n}\n/**\n * If expression returns true, the survey go to question **gotoName** and focus it.\n */\nexport class SurveyTriggerSkip extends SurveyTrigger {\n constructor() {\n super();\n }\n public getType(): string {\n return \"skiptrigger\";\n }\n public get gotoName(): string {\n return this.getPropertyValue(\"gotoName\", \"\");\n }\n public set gotoName(val: string) {\n this.setPropertyValue(\"gotoName\", val);\n }\n public get isOnNextPage() {\n return !settings.executeSkipTriggerOnValueChanged;\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n if (!this.gotoName || !this.owner) return;\n this.owner.focusQuestion(this.gotoName);\n }\n}\n/**\n * If expression returns true, the **runExpression** will be run. If **setToName** property is not empty then the result of **runExpression** will be set to it.\n */\nexport class SurveyTriggerRunExpression extends SurveyTrigger {\n constructor() {\n super();\n }\n public getType(): string {\n return \"runexpressiontrigger\";\n }\n public get setToName(): string {\n return this.getPropertyValue(\"setToName\", \"\");\n }\n public set setToName(val: string) {\n this.setPropertyValue(\"setToName\", val);\n }\n public get runExpression(): string {\n return this.getPropertyValue(\"runExpression\", \"\");\n }\n public set runExpression(val: string) {\n this.setPropertyValue(\"runExpression\", val);\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n if (!this.owner || !this.runExpression) return;\n var expression = new ExpressionRunner(this.runExpression);\n if (expression.canRun) {\n expression.onRunComplete = res => {\n this.onCompleteRunExpression(res);\n };\n expression.run(values, properties);\n }\n }\n private onCompleteRunExpression(newValue: any) {\n if (!!this.setToName && newValue !== undefined) {\n this.owner.setTriggerValue(this.setToName, newValue, false);\n }\n }\n}\n\n/**\n * If expression returns true, the value from question **fromName** will be set into **setToName**.\n */\nexport class SurveyTriggerCopyValue extends SurveyTrigger {\n constructor() {\n super();\n }\n public get setToName(): string {\n return this.getPropertyValue(\"setToName\", \"\");\n }\n public set setToName(val: string) {\n this.setPropertyValue(\"setToName\", val);\n }\n public get fromName(): string {\n return this.getPropertyValue(\"fromName\", \"\");\n }\n public set fromName(val: string) {\n this.setPropertyValue(\"fromName\", val);\n }\n public getType(): string {\n return \"copyvaluetrigger\";\n }\n protected onSuccess(values: HashTable, properties: HashTable) {\n if (!this.setToName || !this.owner) return;\n this.owner.copyTriggerValue(this.setToName, this.fromName);\n }\n}\n\nSerializer.addClass(\"trigger\", [\n { name: \"operator\", default: \"equal\", visible: false },\n { name: \"value\", visible: false },\n \"expression:condition\",\n]);\nSerializer.addClass(\n \"surveytrigger\",\n [{ name: \"name\", visible: false }],\n null,\n \"trigger\"\n);\nSerializer.addClass(\n \"visibletrigger\",\n [\"pages:pages\", \"questions:questions\"],\n function() {\n return new SurveyTriggerVisible();\n },\n \"surveytrigger\"\n);\nSerializer.addClass(\n \"completetrigger\",\n [],\n function() {\n return new SurveyTriggerComplete();\n },\n \"surveytrigger\"\n);\nSerializer.addClass(\n \"setvaluetrigger\",\n [\n { name: \"!setToName:questionvalue\" },\n {\n name: \"setValue:triggervalue\",\n dependsOn: \"setToName\",\n visibleIf: function(obj: any) {\n return !!obj && !!obj[\"setToName\"];\n },\n },\n { name: \"isVariable:boolean\", visible: false },\n ],\n function() {\n return new SurveyTriggerSetValue();\n },\n \"surveytrigger\"\n);\nSerializer.addClass(\n \"copyvaluetrigger\",\n [{ name: \"!setToName:questionvalue\" }, { name: \"!fromName:questionvalue\" }],\n function() {\n return new SurveyTriggerCopyValue();\n },\n \"surveytrigger\"\n);\nSerializer.addClass(\n \"skiptrigger\",\n [{ name: \"!gotoName:question\" }],\n function() {\n return new SurveyTriggerSkip();\n },\n \"surveytrigger\"\n);\nSerializer.addClass(\n \"runexpressiontrigger\",\n [{ name: \"setToName:questionvalue\" }, \"runExpression:expression\"],\n function() {\n return new SurveyTriggerRunExpression();\n },\n \"surveytrigger\"\n);\n","let _isMobile = false;\nlet vendor = null;\n\nif (\n typeof navigator !== \"undefined\" &&\n typeof window !== \"undefined\" &&\n navigator &&\n window\n) {\n vendor = navigator.userAgent || navigator.vendor || (window).opera;\n}\n\n(function (a: any) {\n if (!a) return;\n if (\n /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(\n a\n ) ||\n /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(\n a.substr(0, 4)\n )\n )\n _isMobile = true;\n})(vendor);\n\nexport const IsMobile = _isMobile;\n","export class PopupUtils {\n public static calculatePosition(\n targetRect: ClientRect,\n height: number,\n width: number,\n verticalPosition: string,\n horizontalPosition: string,\n showPointer: boolean\n ) {\n if (horizontalPosition == \"center\")\n var left = (targetRect.left + targetRect.right - width) / 2;\n else if (horizontalPosition == \"left\") left = targetRect.left - width;\n else left = targetRect.right;\n\n if (verticalPosition == \"middle\")\n var top = (targetRect.top + targetRect.bottom - height) / 2;\n else if (verticalPosition == \"top\") top = targetRect.top - height;\n else top = targetRect.bottom;\n\n if (showPointer) {\n if (horizontalPosition != \"center\" && verticalPosition != \"middle\") {\n if (verticalPosition == \"top\") {\n top = top + targetRect.height;\n } else {\n top = top - targetRect.height;\n }\n }\n }\n\n return { left: Math.round(left), top: Math.round(top) };\n }\n\n public static calculatePopupDirection(\n verticalPosition: string,\n horizontalPosition: string\n ) {\n var popupDirection: string;\n if (horizontalPosition == \"center\" && verticalPosition != \"middle\") {\n popupDirection = verticalPosition;\n } else if (horizontalPosition != \"center\") {\n popupDirection = horizontalPosition;\n }\n return popupDirection;\n }\n\n //called when showPointer is true\n public static calculatePointerTarget(\n targetRect: ClientRect,\n top: number,\n left: number,\n verticalPosition: string,\n horizontalPosition: string\n ) {\n var targetPos: any = {};\n if (horizontalPosition != \"center\") {\n targetPos.top = targetRect.top + targetRect.height / 2;\n targetPos.left = (targetRect)[horizontalPosition];\n } else if (verticalPosition != \"middle\") {\n targetPos.top = (targetRect)[verticalPosition];\n targetPos.left = targetRect.left + targetRect.width / 2;\n }\n targetPos.left = Math.round(targetPos.left - left);\n targetPos.top = Math.round(targetPos.top - top);\n return targetPos;\n }\n}\n","import { AdaptiveElement } from \"../action-bar\";\n\nexport class ResponsibilityManager {\n private previousSpace = 0;\n private previousItemCount = Number.MAX_VALUE;\n private _itemSizes: Array = undefined;\n public getItemSizes: () => Array;\n constructor(\n protected container: HTMLDivElement,\n private model: AdaptiveElement,\n private dotsItemSize: number = 48\n ) {}\n getComputedStyle: any = window.getComputedStyle.bind(window);\n\n protected getAvailableSpace() {\n var style = this.getComputedStyle(this.container);\n var width = this.container.offsetWidth - this.dotsItemSize;\n if (style.boxSizing == \"border-box\") {\n width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n }\n return width;\n }\n\n protected getDimensions(element: HTMLElement) {\n return {\n scrollDimension: element.scrollWidth,\n offsetDimension: element.offsetWidth,\n };\n }\n\n private getItemsCount(size: number) {\n var sum = 0;\n var itemSizes = this.itemSizes;\n for (var i = 0; i < itemSizes.length && size >= sum; i++) {\n sum += itemSizes[i];\n }\n if (i == this.itemSizes.length && this.dotsItemSize >= this.itemSizes[0]) {\n return i;\n }\n return i - 1;\n }\n\n get itemSizes() {\n if (!this._itemSizes) {\n this._itemSizes = this.getItemSizes();\n }\n return this._itemSizes;\n }\n\n process() {\n if (!!this.container) {\n var dimensions = this.getDimensions(this.container);\n var delta = dimensions.scrollDimension - dimensions.offsetDimension;\n if (this.previousItemCount < Number.MAX_VALUE) {\n delta -= this.dotsItemSize;\n }\n var parentSpace = this.getDimensions(this.container.parentElement)\n .offsetDimension;\n if (parentSpace != this.previousSpace) {\n if (delta > 5) {\n if (this.model.canShrink) {\n this.model.shrink();\n }\n var count = this.getItemsCount(this.getAvailableSpace());\n if (this.previousItemCount != count) {\n this.model.showFirstN(count);\n this.previousItemCount = count;\n }\n } else {\n if (\n this.model.canGrow &&\n delta <= 0 &&\n parentSpace - this.previousSpace > this.dotsItemSize\n ) {\n this.model.grow();\n }\n this.model.showFirstN(Number.MAX_VALUE);\n this.previousItemCount = Number.MAX_VALUE;\n }\n this.previousSpace = parentSpace;\n }\n }\n }\n}\n\nexport class VerticalResponsibilityManager extends ResponsibilityManager {\n constructor(\n container: HTMLDivElement,\n model: AdaptiveElement,\n dotsItemSize?: number\n ) {\n super(container, model, dotsItemSize);\n }\n\n protected getAvailableSpace() {\n var style = this.getComputedStyle(this.container);\n var width = this.container.offsetHeight;\n if (style.boxSizing == \"border-box\") {\n width -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\n }\n return width;\n }\n\n protected getDimensions() {\n return {\n scrollDimension: this.container.scrollHeight,\n offsetDimension: this.container.offsetHeight,\n };\n }\n}\n","import { settings } from \"./../settings\";\nfunction compareVersions(a: any, b: any) {\n var i, diff;\n var regExStrip0 = /(\\.0+)+$/;\n var segmentsA = a.replace(regExStrip0, \"\").split(\".\");\n var segmentsB = b.replace(regExStrip0, \"\").split(\".\");\n var l = Math.min(segmentsA.length, segmentsB.length);\n\n for (i = 0; i < l; i++) {\n diff = parseInt(segmentsA[i], 10) - parseInt(segmentsB[i], 10);\n if (diff) {\n return diff;\n }\n }\n return segmentsA.length - segmentsB.length;\n}\nfunction confirmAction(message: string): boolean {\n if (!!settings && !!settings.confirmActionFunc)\n return settings.confirmActionFunc(message);\n return confirm(message);\n}\nfunction detectIEBrowser() {\n if (typeof window === \"undefined\") return false;\n var ua = window.navigator.userAgent;\n var oldIe = ua.indexOf(\"MSIE \");\n var elevenIe = ua.indexOf(\"Trident/\");\n\n return oldIe > -1 || elevenIe > -1;\n}\nfunction detectIEOrEdge() {\n if (typeof window === \"undefined\") return false;\n if (typeof (detectIEOrEdge).isIEOrEdge == \"undefined\") {\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n var trident = ua.indexOf(\"Trident/\");\n var edge = ua.indexOf(\"Edge/\");\n (detectIEOrEdge).isIEOrEdge = edge > 0 || trident > 0 || msie > 0;\n }\n return (detectIEOrEdge).isIEOrEdge;\n}\nfunction loadFileFromBase64(b64Data: string, fileName: string) {\n try {\n var byteString = atob(b64Data.split(\",\")[1]);\n\n // separate out the mime component\n var mimeString = b64Data.split(\",\")[0].split(\":\")[1].split(\";\")[0];\n\n // write the bytes of the string to an ArrayBuffer\n var ab = new ArrayBuffer(byteString.length);\n var ia = new Uint8Array(ab);\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n // write the ArrayBuffer to a blob, and you're done\n var bb = new Blob([ab], { type: mimeString });\n if (\n typeof window !== \"undefined\" &&\n window.navigator &&\n window.navigator.msSaveBlob\n ) {\n window.navigator.msSaveOrOpenBlob(bb, fileName);\n }\n } catch (err) {}\n}\nfunction isMobile() {\n return (\n typeof window !== \"undefined\" && typeof window.orientation !== \"undefined\"\n );\n}\n\nfunction isElementVisible(\n element: HTMLElement,\n threshold: number = 0\n): boolean {\n if (typeof document === \"undefined\") {\n return false;\n }\n const elementRect = element.getBoundingClientRect();\n const viewHeight = Math.max(\n document.documentElement.clientHeight,\n window.innerHeight\n );\n const topWin = -threshold;\n const bottomWin = viewHeight + threshold;\n const topEl = elementRect.top;\n const bottomEl = elementRect.bottom;\n\n const maxTop = Math.max(topWin, topEl);\n const minBottom = Math.min(bottomWin, bottomEl);\n return maxTop <= minBottom;\n}\n\nfunction findScrollableParent(element: HTMLElement): HTMLElement {\n if (!element) {\n return document.documentElement;\n }\n if (\n element.scrollHeight > element.clientHeight &&\n (getComputedStyle(element).overflowY === \"scroll\" ||\n getComputedStyle(element).overflowY === \"auto\")\n ) {\n return element;\n } else {\n return findScrollableParent(element.parentElement);\n }\n}\n\nfunction createSvg(\n size: number,\n width: number,\n height: number,\n iconName: string,\n svgElem: any\n) {\n svgElem.style.width = (size || width || 16) + \"px\";\n svgElem.style.height = (size || height || 16) + \"px\";\n var node: any = svgElem.childNodes[0];\n node.setAttributeNS(\n \"http://www.w3.org/1999/xlink\",\n \"xlink:href\",\n \"#\" + iconName\n );\n}\n\nexport function unwrap(value: T | (() => T)): T {\n if (typeof value !== \"function\") {\n return value;\n } else {\n return (<() => T>value)();\n }\n}\n\nexport {\n compareVersions,\n confirmAction,\n detectIEOrEdge,\n detectIEBrowser,\n loadFileFromBase64,\n isMobile,\n isElementVisible,\n findScrollableParent,\n createSvg,\n};\n","import { Base, SurveyError, ISurveyErrorOwner, ISurvey } from \"./base\";\nimport { CustomError, RequreNumericError } from \"./error\";\nimport { surveyLocalization } from \"./surveyStrings\";\nimport { ILocalizableOwner, LocalizableString } from \"./localizablestring\";\nimport { Serializer } from \"./jsonobject\";\nimport { ConditionRunner } from \"./conditions\";\nimport { Helpers } from \"./helpers\";\n\nexport class ValidatorResult {\n constructor(public value: any, public error: SurveyError = null) {}\n}\n/**\n * Base SurveyJS validator class.\n */\nexport class SurveyValidator extends Base {\n public errorOwner: ISurveyErrorOwner;\n public onAsyncCompleted: (result: ValidatorResult) => void;\n constructor() {\n super();\n this.createLocalizableString(\"text\", this, true);\n }\n public getSurvey(live: boolean = false): ISurvey {\n return !!this.errorOwner && !!(this.errorOwner)[\"getSurvey\"]\n ? (this.errorOwner).getSurvey()\n : null;\n }\n public get text(): string {\n return this.getLocalizableStringText(\"text\");\n }\n public set text(value: string) {\n this.setLocalizableStringText(\"text\", value);\n }\n public get isValidateAllValues() {\n return false;\n }\n get locText(): LocalizableString {\n return this.getLocalizableString(\"text\");\n }\n protected getErrorText(name: string): string {\n if (this.text) return this.text;\n return this.getDefaultErrorText(name);\n }\n protected getDefaultErrorText(name: string): string {\n return \"\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n return null;\n }\n public get isRunning(): boolean {\n return false;\n }\n public get isAsync(): boolean {\n return false;\n }\n getLocale(): string {\n return !!this.errorOwner ? this.errorOwner.getLocale() : \"\";\n }\n getMarkdownHtml(text: string, name: string): string {\n return !!this.errorOwner\n ? this.errorOwner.getMarkdownHtml(text, name)\n : null;\n }\n getRenderer(name: string): string {\n return !!this.errorOwner ? this.errorOwner.getRenderer(name) : null;\n }\n getProcessedText(text: string): string {\n return !!this.errorOwner ? this.errorOwner.getProcessedText(text) : text;\n }\n protected createCustomError(name: string): SurveyError {\n return new CustomError(this.getErrorText(name), this.errorOwner);\n }\n public toString(): string {\n var res = this.getType().replace(\"validator\", \"\");\n if (!!this.text) {\n res += \", \" + this.text;\n }\n return res;\n }\n}\nexport interface IValidatorOwner {\n getValidators(): Array;\n validatedValue: any;\n getValidatorTitle(): string;\n getDataFilteredValues(): any;\n getDataFilteredProperties(): any;\n}\nexport class ValidatorRunner {\n private asyncValidators: Array;\n public onAsyncCompleted: (errors: Array) => void;\n public run(owner: IValidatorOwner): Array {\n var res = [];\n var values = null;\n var properties = null;\n this.prepareAsyncValidators();\n var asyncResults: Array = [];\n var validators = owner.getValidators();\n for (var i = 0; i < validators.length; i++) {\n var validator = validators[i];\n if (!values && validator.isValidateAllValues) {\n values = owner.getDataFilteredValues();\n properties = owner.getDataFilteredProperties();\n }\n if (validator.isAsync) {\n this.asyncValidators.push(validator);\n validator.onAsyncCompleted = (result: ValidatorResult) => {\n if (!!result && !!result.error) asyncResults.push(result.error);\n if (!this.onAsyncCompleted) return;\n for (var i = 0; i < this.asyncValidators.length; i++) {\n if (this.asyncValidators[i].isRunning) return;\n }\n this.onAsyncCompleted(asyncResults);\n };\n }\n }\n validators = owner.getValidators();\n for (var i = 0; i < validators.length; i++) {\n var validator = validators[i];\n\n var validatorResult = validator.validate(\n owner.validatedValue,\n owner.getValidatorTitle(),\n values,\n properties\n );\n if (!!validatorResult && !!validatorResult.error) {\n res.push(validatorResult.error);\n }\n }\n if (this.asyncValidators.length == 0 && !!this.onAsyncCompleted)\n this.onAsyncCompleted([]);\n return res;\n }\n private prepareAsyncValidators() {\n if (!!this.asyncValidators) {\n for (var i = 0; i < this.asyncValidators.length; i++) {\n this.asyncValidators[i].onAsyncCompleted = null;\n }\n }\n this.asyncValidators = [];\n }\n}\n/**\n * Validate numeric values.\n */\nexport class NumericValidator extends SurveyValidator {\n constructor(minValue: number = null, maxValue: number = null) {\n super();\n this.minValue = minValue;\n this.maxValue = maxValue;\n }\n public getType(): string {\n return \"numericvalidator\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (this.isValueEmpty(value)) return null;\n if (!Helpers.isNumber(value)) {\n return new ValidatorResult(\n null,\n new RequreNumericError(null, this.errorOwner)\n );\n }\n var result = new ValidatorResult(parseFloat(value));\n if (this.minValue !== null && this.minValue > result.value) {\n result.error = this.createCustomError(name);\n return result;\n }\n if (this.maxValue !== null && this.maxValue < result.value) {\n result.error = this.createCustomError(name);\n return result;\n }\n return typeof value === \"number\" ? null : result;\n }\n protected getDefaultErrorText(name: string) {\n var vName = name ? name : surveyLocalization.getString(\"value\");\n if (this.minValue !== null && this.maxValue !== null) {\n return surveyLocalization\n .getString(\"numericMinMax\")\n [\"format\"](vName, this.minValue, this.maxValue);\n } else {\n if (this.minValue !== null) {\n return surveyLocalization\n .getString(\"numericMin\")\n [\"format\"](vName, this.minValue);\n }\n return surveyLocalization\n .getString(\"numericMax\")\n [\"format\"](vName, this.maxValue);\n }\n }\n /**\n * The minValue property.\n */\n public get minValue(): number {\n return this.getPropertyValue(\"minValue\");\n }\n public set minValue(val: number) {\n this.setPropertyValue(\"minValue\", val);\n }\n /**\n * The maxValue property.\n */\n public get maxValue(): number {\n return this.getPropertyValue(\"maxValue\");\n }\n public set maxValue(val: number) {\n this.setPropertyValue(\"maxValue\", val);\n }\n}\n/**\n * Validate text values.\n */\nexport class TextValidator extends SurveyValidator {\n constructor(\n minLength: number = 0,\n maxLength: number = 0,\n allowDigits = true\n ) {\n super();\n this.minLength = minLength;\n this.maxLength = maxLength;\n this.allowDigits = allowDigits;\n }\n public getType(): string {\n return \"textvalidator\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (value !== \"\" && this.isValueEmpty(value)) return null;\n if (!this.allowDigits) {\n var reg = /^[A-Za-z\\s]*$/;\n if (!reg.test(value)) {\n return new ValidatorResult(null, this.createCustomError(name));\n }\n }\n if (this.minLength > 0 && value.length < this.minLength) {\n return new ValidatorResult(null, this.createCustomError(name));\n }\n if (this.maxLength > 0 && value.length > this.maxLength) {\n return new ValidatorResult(null, this.createCustomError(name));\n }\n return null;\n }\n protected getDefaultErrorText(name: string) {\n if (this.minLength > 0 && this.maxLength > 0)\n return surveyLocalization\n .getString(\"textMinMaxLength\")\n [\"format\"](this.minLength, this.maxLength);\n if (this.minLength > 0)\n return surveyLocalization\n .getString(\"textMinLength\")\n [\"format\"](this.minLength);\n return surveyLocalization\n .getString(\"textMaxLength\")\n [\"format\"](this.maxLength);\n }\n /**\n * The minLength property.\n */\n public get minLength(): number {\n return this.getPropertyValue(\"minLength\");\n }\n public set minLength(val: number) {\n this.setPropertyValue(\"minLength\", val);\n }\n /**\n * The maxLength property.\n */\n public get maxLength(): number {\n return this.getPropertyValue(\"maxLength\");\n }\n public set maxLength(val: number) {\n this.setPropertyValue(\"maxLength\", val);\n }\n /**\n * The allowDigits property.\n */\n public get allowDigits(): boolean {\n return this.getPropertyValue(\"allowDigits\", true);\n }\n public set allowDigits(val: boolean) {\n this.setPropertyValue(\"allowDigits\", val);\n }\n}\n\nexport class AnswerCountValidator extends SurveyValidator {\n constructor(minCount: number = null, maxCount: number = null) {\n super();\n this.minCount = minCount;\n this.maxCount = maxCount;\n }\n public getType(): string {\n return \"answercountvalidator\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (value == null || value.constructor != Array) return null;\n var count = value.length;\n if (this.minCount && count < this.minCount) {\n return new ValidatorResult(\n null,\n this.createCustomError(\n surveyLocalization\n .getString(\"minSelectError\")\n [\"format\"](this.minCount)\n )\n );\n }\n if (this.maxCount && count > this.maxCount) {\n return new ValidatorResult(\n null,\n this.createCustomError(\n surveyLocalization\n .getString(\"maxSelectError\")\n [\"format\"](this.maxCount)\n )\n );\n }\n return null;\n }\n protected getDefaultErrorText(name: string) {\n return name;\n }\n /**\n * The minCount property.\n */\n public get minCount(): number {\n return this.getPropertyValue(\"minCount\");\n }\n public set minCount(val: number) {\n this.setPropertyValue(\"minCount\", val);\n }\n /**\n * The maxCount property.\n */\n public get maxCount(): number {\n return this.getPropertyValue(\"maxCount\");\n }\n public set maxCount(val: number) {\n this.setPropertyValue(\"maxCount\", val);\n }\n}\n/**\n * Use it to validate the text by regular expressions.\n */\nexport class RegexValidator extends SurveyValidator {\n constructor(regex: string = null) {\n super();\n this.regex = regex;\n }\n public getType(): string {\n return \"regexvalidator\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (!this.regex || this.isValueEmpty(value)) return null;\n var re = new RegExp(this.regex);\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n var res = this.hasError(re, value[i], name);\n if (res) return res;\n }\n }\n return this.hasError(re, value, name);\n }\n private hasError(re: RegExp, value: any, name: string): ValidatorResult {\n if (re.test(value)) return null;\n return new ValidatorResult(value, this.createCustomError(name));\n }\n /**\n * The regex property.\n */\n public get regex(): string {\n return this.getPropertyValue(\"regex\");\n }\n public set regex(val: string) {\n this.setPropertyValue(\"regex\", val);\n }\n}\n/**\n * Validate e-mail address in the text input\n */\nexport class EmailValidator extends SurveyValidator {\n private re = /^(([^<>()\\[\\]\\.,;:\\s@\\\"]+(\\.[^<>()\\[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()=[\\]\\.,;:\\s@\\\"]+\\.)+[^<>()=[\\]\\.,;:\\s@\\\"]{2,})$/i;\n constructor() {\n super();\n }\n public getType(): string {\n return \"emailvalidator\";\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (!value) return null;\n if (this.re.test(value)) return null;\n return new ValidatorResult(value, this.createCustomError(name));\n }\n protected getDefaultErrorText(name: string) {\n return surveyLocalization.getString(\"invalidEmail\");\n }\n}\n\n/**\n * Show error if expression returns false\n */\nexport class ExpressionValidator extends SurveyValidator {\n private conditionRunner: ConditionRunner = null;\n private isRunningValue: boolean = false;\n constructor(expression: string = null) {\n super();\n this.expression = expression;\n }\n public getType(): string {\n return \"expressionvalidator\";\n }\n public get isValidateAllValues() {\n return true;\n }\n public get isAsync(): boolean {\n if (!this.ensureConditionRunner()) return false;\n return this.conditionRunner.isAsync;\n }\n public get isRunning(): boolean {\n return this.isRunningValue;\n }\n public validate(\n value: any,\n name: string = null,\n values: any = null,\n properties: any = null\n ): ValidatorResult {\n if (!this.ensureConditionRunner()) return null;\n this.conditionRunner.onRunComplete = res => {\n this.isRunningValue = false;\n if (!!this.onAsyncCompleted) {\n this.onAsyncCompleted(this.generateError(res, value, name));\n }\n };\n this.isRunningValue = true;\n var res = this.conditionRunner.run(values, properties);\n if (this.conditionRunner.isAsync) return null;\n this.isRunningValue = false;\n return this.generateError(res, value, name);\n }\n protected generateError(res: boolean, value: any, name: string) {\n if (!res) {\n return new ValidatorResult(value, this.createCustomError(name));\n }\n return null;\n }\n protected getDefaultErrorText(name: string) {\n return surveyLocalization\n .getString(\"invalidExpression\")\n [\"format\"](this.expression);\n }\n protected ensureConditionRunner(): boolean {\n if (!!this.conditionRunner) {\n this.conditionRunner.expression = this.expression;\n return true;\n }\n if (!this.expression) return false;\n this.conditionRunner = new ConditionRunner(this.expression);\n return true;\n }\n /**\n * The expression property.\n */\n public get expression(): string {\n return this.getPropertyValue(\"expression\");\n }\n public set expression(val: string) {\n this.setPropertyValue(\"expression\", val);\n }\n}\n\nSerializer.addClass(\"surveyvalidator\", [\n { name: \"text\", serializationProperty: \"locText\" },\n]);\nSerializer.addClass(\n \"numericvalidator\",\n [\"minValue:number\", \"maxValue:number\"],\n function() {\n return new NumericValidator();\n },\n \"surveyvalidator\"\n);\nSerializer.addClass(\n \"textvalidator\",\n [\"minLength:number\", \"maxLength:number\", \"allowDigits:boolean\"],\n function() {\n return new TextValidator();\n },\n \"surveyvalidator\"\n);\nSerializer.addClass(\n \"answercountvalidator\",\n [\"minCount:number\", \"maxCount:number\"],\n function() {\n return new AnswerCountValidator();\n },\n \"surveyvalidator\"\n);\nSerializer.addClass(\n \"regexvalidator\",\n [\"regex\"],\n function() {\n return new RegexValidator();\n },\n \"surveyvalidator\"\n);\nSerializer.addClass(\n \"emailvalidator\",\n [],\n function() {\n return new EmailValidator();\n },\n \"surveyvalidator\"\n);\n\nSerializer.addClass(\n \"expressionvalidator\",\n [\"expression:condition\"],\n function() {\n return new ExpressionValidator();\n },\n \"surveyvalidator\"\n);\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '